danger-full-access, the approval policy is set to never, and the model defaults to gpt-5.4. Authentication is deliberately deferred — the pack never embeds your OpenAI credentials in the instance, so you authenticate yourself after deploy by SSM-ing in and running codex login.
Experimental pack. Codex CLI uses OpenAI’s API — not Amazon Bedrock. Your prompts and code leave your AWS account and are processed under OpenAI’s terms of service. Expect rough edges as the upstream CLI evolves.
What makes Codex CLI different
- OpenAI provider. Uses OpenAI’s API instead of Bedrock. Auth is via ChatGPT browser login or an API key.
- Builder-mode pre-configured. The pack writes
~/.codex/config.tomlwithsandbox_mode = "danger-full-access"andapproval_policy = "never"— the agent runs commands without asking permission. - Post-install auth. The pack never stores your OpenAI key in deploy templates or shell history. You authenticate interactively after deploy by SSM-ing into the instance.
Compatible profiles
All three profiles are supported, butbuilder is the recommended default for Codex CLI since the agent is configured with full filesystem and network access.
Prerequisites
- AWS CLI configured with admin access in a dedicated sandbox account
- An OpenAI account with ChatGPT Plus or an API key from platform.openai.com
- No Bedrock access, Docker, or interactive AWS login needed
Install
Post-install: authenticate
Codex auth is intentionally deferred. SSM into the instance and choose one of these methods:- ChatGPT login (browser)
- OpenAI API key
Use the agent
Configuration options
The managed block in
~/.codex/config.toml looks like this:
Resource requirements
Notes and limitations
- Codex CLI is a pure CLI pack — no background service runs between sessions.
- Authentication is not headless — you must SSM into the instance after deploy to complete the
codex loginstep. Fully headless auth (e.g., via Secrets Manager) is not yet supported. - Your prompts and code leave your AWS account and go to OpenAI’s infrastructure. Review OpenAI’s data usage policy before use.
- When you tear down the stack, Codex credentials on the instance vanish with the EBS volume. If the OpenAI key was shared with other systems, rotate it separately.