mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-14 03:31:58 +08:00
docs: add FAQ Q5 for permission/sandbox env vars
Add CODEX_BYPASS_SANDBOX and CODEAGENT_SKIP_PERMISSIONS environment variables to FAQ section in both EN and CN READMEs. Generated with SWE-Agent.ai Co-Authored-By: SWE-Agent.ai <noreply@swe-agent.ai>
This commit is contained in:
22
README.md
22
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.
|
**Still having issues?** Visit [GitHub Issues](https://github.com/cexll/myclaude/issues) to search or report new issues.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
22
README_CN.md
22
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) 搜索或提交新问题。
|
**仍有疑问?** 请访问 [GitHub Issues](https://github.com/cexll/myclaude/issues) 搜索或提交新问题。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user