`I am sandboxed` 无法安装依赖时的权限/审批排查清单
解决 EC2 上代理提示“无终端权限、无法安装”的问题:先确认 exec 安全模式与审批策略,再分离“构建环境安装”和“代理运行权限”。
REDDITDiscovered 2026-02-13Author u/rajpal007
Prerequisites
- You can run `openclaw status` and view gateway config on the host.
- You have sudo/admin rights on the target machine for package installation.
Steps
- Reproduce with one explicit command request (e.g., install gh/vercel) and capture the exact refusal text in logs.
- Check runtime mode via `openclaw status`; if command execution is sandboxed/denied, adjust policy to allow approved host-side commands rather than broad unrestricted execution.
- Install required CLIs manually on host (outside agent turn), then let agent invoke them only for project-local tasks.
- For sensitive commands, keep ask/approval enabled and validate command scope before confirming.
Commands
openclaw statusopenclaw gateway statusopenclaw helpVerify
Agent can run previously blocked CLI command after host prerequisites are installed, while approval prompts still appear for risky actions.
Caveats
- Do not switch permanently to fully unrestricted execution in production without threat review.
- Exact policy knobs depend on deployment profile/version and should be matched with current docs(需验证)。
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗