Breaking Out of the Codex Sandbox
vincentschmalbach.com·5h·
Discuss: Hacker News
Flag this post

If you’re using OpenAI’s Codex CLI, you might want it to work like Claude Code does by default: able to run powerful commands, but asking for your approval first.

Understanding the Codex Sandbox

Codex CLI has a safety feature called sandbox mode that restricts what the AI can do:

  • It can’t modify files outside specific directories
  • It can’t make network requests
  • It can’t execute arbitrary shell commands
  • It can’t access sensitive system resources

This is great for security, but it also means Codex can’t do much useful work on real projects.

Codex Ships Too Locked Down (or Too Autonomous)

By default, Codex CLI either:

  • Runs in the restrictive sandbox (safe but limited)
  • Runs with full autonomy outside the sandbox (powerful but scary)

Neither setup gives you …

Similar Posts

Loading similar posts...