← All agents

Coding agents

OpenAI Codex

OpenAI's coding agent in the CLI, IDE and cloud.

Official site →

Best for

terminal codingcloud agentspull request automation

Recent updates

  • 2026-10-26 GPT-6.1 Terra is available in Codex for Plus, Pro, Enterprise and Edu, and in the API at $1/M input and $5/M output tokens. Source
  • 2026-10-26 GPT-6.1 Terra (gpt-6.1-terra) has a 1,050,000-token context window, at a standard price of $1/M input and $5/M output tokens. Source
  • 2026-10-29 Codex CLI 0.166.0 adds keyboard-driven transcript selection with word, line and page motions, built-in search and configurable shortcuts. It adds GPT-6.1 Terra to the bundled, Vertex AI and Amazon Bedrock model catalogs, codex queue --resume to resume unloaded threads after queueing a message, and codex doctor --network-only for focused configuration, connectivity and WebSocket checks. 0.166.0, published Oct 29, was still the latest stable release on Nov 2, 2026. Source
  • 2026-11-04 On November 4, 2026, Codex CLI 0.166.0 (published October 29) was still the latest stable release. Newer tags that day, including rust-v0.168.0-alpha.1, were prereleases. Source
  • 2026-11-04 OpenAI's help center says that starting in December, Plus, Pro, and Business plans share one usage allowance across ChatGPT and Codex, measured in tokens. How much a task uses depends on the model and the task. Instant chat does not draw from that allowance. Combined remaining usage and reset times will show in Settings → Usage. At the limit, you can wait for a reset, upgrade, or buy credits. Source
  • 2026-10-28 Android Studio Rabbit 2 (stable, Oct 28, 2026) can run Claude Agent, OpenAI Codex, and Google Antigravity inside the IDE via Bring Your Own Agent. Source
  • 2026-11-04 OpenAI announced it will acquire Pierre Computer Company, Inc. to expand Codex's tools for building, understanding, and reviewing code. Pierre's Trees and Diffs libraries are already used to browse files and review changes in the Codex app. Code Storage customers can keep using it after closing while those features move into Codex. The acquisition has not closed and is subject to customary closing conditions, including regulatory approvals. Until then, OpenAI and Pierre stay separate companies. Source
  • 2026-11-04 Images 2.6, including GIF generation, is available in Codex. OpenAI says it is available globally across all Codex subscription tiers, and also in ChatGPT and the API. Source
  • 2026-11-05 On November 5, 2026, Codex CLI 0.166.0 (published October 29) was still the latest stable release. Newer tags, including rust-v0.168.0-alpha.3, were prereleases. Source
  • 2026-11-06 Codex CLI 0.167.0, published November 6, 2026, opens an agent command center with `codex agents --no-daemon`. The command center and session picker mark unread results. You can switch between connected backends from the terminal session picker and keep drafts when switching. On supported terminals, the composer previews local image attachments, and viewed local images open from clickable transcript paths. Under "Sign in another way," enable `gcp_setup_wizard` to set up Google Cloud Vertex AI with Application Default Credentials or a credential file. Source
  • 2026-11-10 On November 10, 2026, Codex CLI 0.167.0 (published November 6) was still the latest stable release. Newer tags, including rust-v0.169.0-alpha.7, were prereleases. Source
  • 2026-11-10 Codex CLI 0.167.1, published November 10, 2026, is a stable patch on 0.167.0 and was the latest stable release on November 11, 2026. The release notes do not list changes; they link the compare range rust-v0.167.0...rust-v0.167.1. That range adds a disabled-by-default incremental_tools_legacy feature and limits it to the amazon-bedrock and amazon-bedrock-runtime providers. Responses Lite still uses incremental_tools. Newer tags, including rust-v0.169.0-alpha.11, were prereleases. Source

Setup example

npm install -g @openai/codex && cd my-repo && codex

Compare OpenAI Codex

vs Claude Codevs Gemini CLIvs Cursor