Breaking Out of the Codex Sandbox
vincentschmalbach.com·12w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help