Back to AI Q&A
What should I do if OpenClaw always needs to approve an execution order?

What should I do if OpenClaw always needs to approve an execution order?

AI Q&A Admin 65 views

OpenClaw (lobster) execution commands are always subject to approval, indicating that the host, security or ask policy of the exec tool has been tightened. This isn't necessarily a bad thing: approvals prevent agents from directly executing high-risk commands. What you need to do is to adjust the policy based on task risk, rather than turning off approvals altogether.

Let's look at the current strategy first

  1. openclaw config get tools.exec.host
  2. openclaw config get tools.exec.security
  3. openclaw config get tools.exec.ask
  4. openclaw gateway restart and then take the test again

How to adjust it more appropriately

Goalsuggested
Just want to fix the execution locallySet tools.exec.host=gateway
Common security commands are exempt from approvalUse security=allowlist to explicit allowlist
Unfamiliar commands require confirmationUse ask=on-miss
The test environment is fully automatedConsider security=full + ask=off only on isolated machines

If the log appears SYSTEM_RUN_DENIED: approval required, go to the approval request to confirm the command content. Don't turn your production computer into an unlimited-privilege environment with a single click, especially if the agent can receive external messages.

Official open source address: https://github.com/openclaw/openclaw.

In actual use, you can put the "Read Status" command into the allowlist, such as viewing logs, column directories, and running tests. Keep the "write, delete, upload, send" command for approval. This will neither affect efficiency nor release the risk at once.

Recommended Tools

More