diff --git a/README.md b/README.md index 544eee5..081b780 100644 --- a/README.md +++ b/README.md @@ -536,6 +536,28 @@ network_access = true --- +### Q5: Permission denied or sandbox restrictions during execution + +**Problem:** +Execution fails with permission errors or sandbox restrictions when running codeagent-wrapper. + +**Solution:** +Set the following environment variables: +```bash +export CODEX_BYPASS_SANDBOX=true +export CODEAGENT_SKIP_PERMISSIONS=true +``` + +Or add them to your shell profile (`~/.zshrc` or `~/.bashrc`): +```bash +echo 'export CODEX_BYPASS_SANDBOX=true' >> ~/.zshrc +echo 'export CODEAGENT_SKIP_PERMISSIONS=true' >> ~/.zshrc +``` + +**Note:** These settings bypass security restrictions. Use with caution in trusted environments only. + +--- + **Still having issues?** Visit [GitHub Issues](https://github.com/cexll/myclaude/issues) to search or report new issues. --- diff --git a/README_CN.md b/README_CN.md index 9c05083..fb34dbc 100644 --- a/README_CN.md +++ b/README_CN.md @@ -408,6 +408,28 @@ network_access = true --- +### Q5: 执行时遇到权限拒绝或沙箱限制 + +**问题描述:** +运行 codeagent-wrapper 时出现权限错误或沙箱限制。 + +**解决方案:** +设置以下环境变量: +```bash +export CODEX_BYPASS_SANDBOX=true +export CODEAGENT_SKIP_PERMISSIONS=true +``` + +或添加到 shell 配置文件(`~/.zshrc` 或 `~/.bashrc`): +```bash +echo 'export CODEX_BYPASS_SANDBOX=true' >> ~/.zshrc +echo 'export CODEAGENT_SKIP_PERMISSIONS=true' >> ~/.zshrc +``` + +**注意:** 这些设置会绕过安全限制,请仅在可信环境中使用。 + +--- + **仍有疑问?** 请访问 [GitHub Issues](https://github.com/cexll/myclaude/issues) 搜索或提交新问题。 ---