# OpenAI Codex — card for AI agents

OpenAI's coding agent, offered as an open-source terminal CLI, an IDE extension, a desktop app and a cloud agent that works on repositories. Users sign in with a ChatGPT account or use an OpenAI API key; with an API key, Codex works in the CLI, SDK and IDE extension without cloud features such as GitHub code review and Slack. On the Free and Go plans Codex runs in the desktop app (subject to rollout); the web, CLI and IDE extension come with Plus and higher.

Maker: OpenAI · category: Terminal coding agents · open source (Apache-2.0)

## Price
- Included in ChatGPT plans: Free $0, Go $8/month, Plus $20/month, Pro from $100/month ($100, $200 or $500 tiers), Business $20/user/month billed annually ($25 monthly), Enterprise and Edu by contact. API-key use is billed at API rates (no cloud features).
- Free tier: yes
- Paid from $8/month with monthly billing
- Pricing page: https://learn.chatgpt.com/docs/pricing
- Checked: 2026-11-05

## Install
- npm: `npm install -g @openai/codex`
- Homebrew: `brew install --cask codex`
- VS Code: `code --install-extension openai.chatgpt`

## Facts
- Interfaces: CLI, IDE extension, Desktop, Web, Mobile, SDK
- Platforms: macOS, Linux, Windows
- Bring your own API key: yes
- Repository: https://github.com/openai/codex
- Status page: https://status.openai.com

## Numbers (AgentGid data)
- Gid Score: 84 (rank #2) (public popularity and activity, not quality)
- Downloads last 7 days: 26,638,818
- VS Code installs: 16,926,387
- GitHub stars: 135,817

## Details (plan limits, live status, safety; from AgentGid's data)
OpenAI Codex by OpenAI. Category: Terminal coding agents. Type: terminal agent + IDE extension + cloud agent. OpenAI's coding agent, offered as an open-source terminal CLI, an IDE extension, a desktop app and a cloud agent that works on repositories. Users sign in with a ChatGPT account or use an OpenAI API key; with an API key, Codex works in the CLI, SDK and IDE extension without cloud features such as GitHub code review and Slack. On the Free and Go plans Codex runs in the desktop app (subject to rollout); the web, CLI and IDE extension come with Plus and higher. Open source (Apache-2.0) Pricing (checked 2026-11-05): Included in ChatGPT plans: Free $0, Go $8/month, Plus $20/month, Pro from $100/month ($100, $200 or $500 tiers), Business $20/user/month billed annually ($25 monthly), Enterprise and Edu by contact. API-key use is billed at API rates (no cloud features). Free tier: yes. Interfaces: CLI, IDE extension, Desktop, Web, Mobile, SDK Platforms: macOS, Linux, Windows Models: OpenAI GPT models (GPT-6 family per current docs) via ChatGPT sign-in or an OpenAI API key Supports: mcp, local, byok, multi_agent, headless Data: Gid Score 84/100, #2 overall; #2 in its category; 135,817.0 GitHub stars; usage +7% over 30 days; latest release 0.168.0 (2026-11-13). Live status now: All systems operational. Incidents in the last 30 days: 1 (0 major). Last incident: Degraded performance in ChatGPT, Codex, and APIs on 2026-10-21. Safety: sandbox built-in – OS-enforced sandbox (Seatbelt on macOS, bwrap+seccomp on Linux, native on Windows): read-only, workspace-write or danger-full-access; no network and writes limited to the workspace by default. Approvals: --ask-for-approval (on-request, never or granular) plus --sandbox <mode>; --dangerously-bypass-approvals-and-sandbox (--yolo) removes both. Default: In a git repo: edits and runs commands inside the workspace sandbox and asks for anything beyond it; read-only in untrusted folders. Usage limits (5-hour limit, weekly limits may apply): Free $0: GPT-6 Luna at Standard speed in the desktop app, subject to rollout; limits not published; Go $8: GPT-6 Luna in the desktop app; limits not published; Plus $20: Local messages per 5 hours: GPT-6.1 Sol 15-160, GPT-6 Astra 5-45, GPT-6 Luna 350-3,000; Pro $100: From $100 a month, with plans at $100, $200 or $500; no 5-hour limit at present; Business $25: Same 5-hour ranges as Plus, per user ($20 billed annually). When you run out: Buy ChatGPT credits, or run more local sessions with an API key at API prices. News: 2026-03: OpenAI introduced Codex Security; Codex reported at more than 2 million weekly active users (per Wikipedia)

## Alternatives in the same category
- Claude Code: https://agentgid.com/agents/claude-code/agent.md
- OpenCode: https://agentgid.com/agents/opencode/agent.md
- Pi: https://agentgid.com/agents/pi/agent.md
- Gemini CLI: https://agentgid.com/agents/gemini-cli/agent.md
- Cline: https://agentgid.com/agents/cline/agent.md
- GitHub Copilot CLI: https://agentgid.com/agents/github-copilot-cli/agent.md

## Links
- AgentGid page: https://agentgid.com/agents/openai-codex/
- Source: https://learn.chatgpt.com/docs
- Source: https://learn.chatgpt.com/docs/pricing
- Source: https://learn.chatgpt.com/docs/changelog
- Source: https://registry.npmjs.org/@openai/codex/latest
- Source: https://formulae.brew.sh/api/cask/codex.json
- Source: https://marketplace.visualstudio.com/items?itemName=openai.chatgpt

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
