[sandbox]
name = "codex-sandbox"
base_image = "node:22-alpine"
init_script = """
set -e
npm install -g @openai/codex
"""
[agent]
preferred = "codex"
compatibility_mode = "codex"
[resources]
vcpus = 2
memory_mb = 1024
[secrets]
OPENAI_API_KEY = "api.openai.com"
[security]
profile = "moderate"
[security.domains]
allow = ["api.openai.com"]
[template]
description = "OpenAI Codex agent sandbox"
category = "Agent Sandboxes"
help_text = """
How to use: Start the sandbox and run your workflow inside /workspace.
Example command: ls -la /workspace
Binaries available: node, npm, npx, codex
Services and ports: No long-running service is configured by default; only explicitly mapped ports are exposed.
"""