AIO Sandbox includes the OpenAI Codex CLI. Codex is a terminal-first AI coding agent, so you can run it directly inside the sandbox or launch it through the built-in terminal page.
http://localhost:8080/codex to redirect to the built-in terminal and start codexcodex inside the containerYou can generate the Codex configuration at container startup with environment variables:
| Variable | Default | Description |
|---|---|---|
CODEX_API_KEY | None | General API key, recommended for Responses-compatible gateways |
ARK_API_KEY | None | Compatible with existing Volcengine Ark API key setups |
OPENAI_API_KEY | None | Official OpenAI API key |
CODEX_MODEL | deepseek-v4-flash-260425 | Model ID written in custom provider mode |
CODEX_BASE_URL | https://ark.cn-beijing.volces.com/api/v3 | Responses API endpoint written in custom provider mode |
For most setups, prefer CODEX_API_KEY.
Official OpenAI API:
Other Responses-compatible endpoint:
At startup, AIO Sandbox selects the API key in this order:
CODEX_API_KEYARK_API_KEYOPENAI_API_KEYIf no API key is available, AIO Sandbox does not generate or overwrite Codex configuration.
After startup, you can edit ~/.codex/config.toml directly. If the container is restarted with one of the API key environment variables above, the startup script regenerates the configuration. To keep manual edits, restart without those API key environment variables.