{"data":{"slug":"openai-codex-cli","name":"OpenAI Codex CLI","tagline":"Apache-2.0 OpenAI agent: CLI, IDE, app and cloud","category":"agents","categoryName":"AI Agents","url":"https://developers.openai.com/codex","github":"https://github.com/openai/codex","pricing":"freemium","hook":"Codex is OpenAI’s coding agent that runs locally on your computer: a Rust CLI in the terminal that reads files, writes code, runs commands and iterates, with the same agent available in your editor, as a desktop app and as the cloud-based Codex Web.","whatsGood":"Apache-2.0 (openai/codex), very active (release rust-v0.163.0, 2026-10-15). Install with the chatgpt.com/codex install.sh script (install.ps1 on Windows), npm install -g @openai/codex, brew install --cask codex, or a binary from GitHub Releases. Sign in with ChatGPT to use it on a Plus, Pro, Business, Edu or Enterprise plan, or set it up with an API key. The IDE extension covers VS Code, Cursor and Windsurf, codex app opens the desktop app, and Codex Web lives at chatgpt.com/codex. The CLI is open, so you can read exactly how the agent loop works. ★~129.8k.","theCatch":"The CLI is open source, but the models are not free: you pay through ChatGPT plan quotas or API spend. Codex Web runs on OpenAI’s cloud, not on your machine. The install.sh, brew and npm routes are supply-chain choices, so pin a release binary when that matters. Vs Claude Code or OpenCode: this is OpenAI’s first-party agent, tied to ChatGPT plans or OpenAI API keys.","verdict":"OpenAI’s answer to terminal agents — open CLI, paid models; budget the plan or the API.","addedAt":"2026-08-19","featured":false,"domain":"AI Agents","subSpecialty":"Coding Agents","subcategory":"Coding Agents","tags":["cli","desktop-app","local-first","free-tier","permissive","coding-agents","active","fast-stars"],"capabilities":["terminal","coding","cli"],"surfaces":["CLI","Hosted"],"ecosystem":["Multi-platform"],"licenseModel":"Freemium","githubStars":130206,"starsPerWeek":1638,"access":"free","archived":false,"repo":{"createdAt":"2025-04-13","pushedAt":"2026-10-21","license":"Apache-2.0","archived":false,"checkedAt":"2026-10-21"}},"related":[{"slug":"claude-code","name":"Claude Code","tagline":"Terminal-first coding agent with deep repository context"},{"slug":"cursor","name":"Cursor","tagline":"The AI-first code editor that understands your codebase"},{"slug":"devin","name":"Devin","tagline":"Autonomous AI engineer for defined engineering tasks"},{"slug":"stagehand","name":"Stagehand","tagline":"AI-native browser automation that mixes code and natural language"},{"slug":"browser-use","name":"Browser Use","tagline":"Open-source framework for LLM-driven browser agents"}],"links":{"self":"/api/gems/openai-codex-cli","html":"/gems/openai-codex-cli","markdown":"/gems/openai-codex-cli.md","category":"/api/gems?category=agents","categoryPage":"/stacks/agents"}}