Oriel — AI & technology worth noticing, every day.

The Codex Sandbox

Web page · https://openai.com/index/inside-the-codex-sandbox

See how Codex runs commands on your machine while enforcing the filesystem and network limits you control across macOS, Linux, and Windows.

First seen by Oriel on .

AI summary

This article explains how Codex uses OS-native sandboxing, permission profiles, and a network proxy to constrain agent commands while preserving access to developers’ existing environments.

  • :workspace allows writes within the workspace while keeping .git and .codex read-only, permits broad reads under OS permissions, and disables network access.
  • The harness runs commands through spawn_command_under_sandbox(), inheriting restrictions across descendants, and evaluates requests for additional or escalated permissions.
  • Users define profiles in config.toml, layer them across projects, and enterprises can use requirements.toml to limit selectable profiles.
  • The network proxy supports HTTP and SOCKS5, applies domain allow and deny rules, and defers unmatched requests for approval before resolving hostnames.
  • The codex sandbox command lets other tools, including MCP servers, reuse these restrictions, preventing unsandboxed writes or network access.

#sandboxing #network proxy #agent security #mcp

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 11, latest observation ; +7 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 3, latest observation ; +2 over observed period since

Aliases

SourceExternal IDURL
Hacker News50549758https://openai.com/index/inside-the-codex-sandbox/ Read discussion
OpenAI Bloghttps://openai.com/index/inside-the-codex-sandboxhttps://openai.com/index/inside-the-codex-sandbox Read discussion