openclaw - 💡(How to fix) Fix exec: chicken-and-egg problem when configuring approval policy [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59087Fetched 2026-04-08 02:28:51
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1locked ×1

Fix Action

Workaround

User must manually SSH into the server and run config commands in a local terminal. Not ideal for remote/headless setups where the agent is the primary interface.

RAW_BUFFERClick to expand / collapse

Problem

When trying to configure OpenClaw to run exec commands without requiring approval every time, there is a chicken-and-egg problem:

  • Running openclaw config set tools.exec.ask "off" itself requires exec approval
  • Running openclaw config set tools.exec.security "full" also requires exec approval
  • There is no way to configure this from the agent side without already having prior approved exec access

Steps to reproduce

  1. Start with default OpenClaw config
  2. Agent tries to run shell commands via exec tool
  3. Every command requires /approve <id> allow-once|allow-always|deny
  4. Agent tries to fix this by running openclaw config set tools.exec.security "full"
  5. This command itself also requires approval — circular dependency

Expected behavior

One of:

  • openclaw config set should be exempt from exec approval (it's a config change, not an arbitrary shell command)
  • Provide a way to set exec policy via direct config file edit that is documented clearly
  • Or the docs should explain how to bootstrap the allowlist from scratch without needing prior approval

Workaround

User must manually SSH into the server and run config commands in a local terminal. Not ideal for remote/headless setups where the agent is the primary interface.

Environment

  • OpenClaw on Linux (Debian, production server)
  • Channel: WhatsApp
  • Model: anthropic/claude-sonnet-4-6

extent analysis

TL;DR

Configure OpenClaw to exempt openclaw config set commands from exec approval or provide a direct config file edit method to set the exec policy.

Guidance

  • Identify a way to modify the OpenClaw configuration to allow openclaw config set commands to run without requiring exec approval, potentially by adding an exemption for config changes.
  • Explore the possibility of setting the exec policy via a direct config file edit, which could bypass the approval requirement.
  • Consider updating the documentation to include a clear bootstrap process for setting up the allowlist from scratch without needing prior approval.
  • Investigate alternative methods for configuring OpenClaw in headless or remote setups where SSH access is not feasible.

Example

No code snippet is provided as the issue does not imply a specific code-based solution.

Notes

The provided workaround of manually SSHing into the server may not be suitable for all environments, particularly those that are headless or remote. A more robust solution would be to modify the OpenClaw configuration or provide an alternative configuration method.

Recommendation

Apply workaround: Manually configure the server via SSH, as this is the currently known method to bypass the approval requirement, although it is acknowledged that this is not ideal for all setups.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

One of:

  • openclaw config set should be exempt from exec approval (it's a config change, not an arbitrary shell command)
  • Provide a way to set exec policy via direct config file edit that is documented clearly
  • Or the docs should explain how to bootstrap the allowlist from scratch without needing prior approval

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING