Lightweight coding agent that runs in your terminal
Codex CLI v0.36.0 adds GPT-5-Codex, session resumption, JSON-RPC expansions, MCP interface, and experimental context compaction.
$ git clone --branch rust-v0.36.0 https://github.com/openai/codex.git # already have the repo? check out this version: $ git checkout rust-v0.36.0
$ codex login --api-key "sk-...your-key..."
- ›Adds GPT-5-Codex model support: faster on easy tasks, harder on complex tasks, with improved code quality and better AGENTS.md steerability.
- ›New
codex resumecommand lets practitioners pick up old conversations where they left off. - ›New
codex login --api-keycommand stores API credentials inCODEX_HOME/auth.jsonfor explicit, persistent authentication. - ›Adds initial MCP (Model Context Protocol) interface and documentation for integrating external tool servers.
- ›Expands JSON-RPC server with
SetDefaultModel(passing None clears the default),UserInfo, andreasoning_effortfield inNewConversationResponse.
+6 moreshow less
- ›Introduces experimental automatic context compaction to handle long sessions without manual intervention.
- ›New TUI onboarding flow with animations, consistent session headers on resume, and reasoning-level display in the header.
- ›Expands default sandbox permissions to cover a broader set of operations out of the box.
- ›Command output is now included when a timeout is sent to the model, giving it context on what ran before the cutoff.
- ›Adds Review Mode core capability for reviewing changes before applying them.
- ›Workspace roots are now injected into the environment context automatically.
- !
OPENAI_API_KEYis no longer read from the environment; runcodex login --api-key "your-api-key-here"once to store the key inCODEX_HOME/auth.json, or runcodex loginto use ChatGPT auth.