Minimal template for a repo-cloning coding workspace that runs Codex via the Codex CLI.
The SDK + MCP server path does not currently support the latest Codex models (including codex-5.3-pro), so this template uses Codex CLI instead.
- Use baked
codex/config.toml(/app/codex/config.toml) as the source of truth for Codex runtime settings.
- Clones the target repository into
/workspace. - Optionally boots GitHub CLI auth when a token is provided.
- Supports optional
git_author_emailtask param for commit author/committer email. - Uses baked Codex config at
/app/codex/config.toml. - Points Codex CLI to
/app/codex/config.tomlviaCODEX_HOME=/app/codex. - Runs
codex execandcodex exec resume(JSON mode) to preserve thread state across task events.
sdk_type: codex_agent_sdk- Codex CLI (
@openai/codex) preinstalled git,gh,node, andnpmavailable in the container
- Multi-agent (Codex CLI): https://developers.openai.com/codex/multi-agent
- MCP with Codex CLI: https://developers.openai.com/codex/mcp
- AGENTS.md guide: https://developers.openai.com/codex/guides/agents-md
- Config basics: https://developers.openai.com/codex/config-basic
- Config advanced: https://developers.openai.com/codex/config-advanced
- Config reference: https://developers.openai.com/codex/config-reference/
- Config sample: https://developers.openai.com/codex/config-sample
- Agents SDK guide (background/reference): https://developers.openai.com/codex/guides/agents-sdk/
- Source in image:
codex/config.toml(from repo pathcodex/config.toml) - Runtime path:
/app/codex/config.toml