# Codex

> Lightweight coding agent that runs in your terminal

Source: https://talira.ai/catalog/codex-8m7d8cdk
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Command-line tool, Web app, Desktop app, Mobile app
- Categories: [developer tools / ai coding / agents](https://talira.ai/categories/developer-tools/ai-coding/agents), [ai / agents](https://talira.ai/categories/ai/agents)
- Platforms: macos, linux, windows, web, cli, ios, android
- Licence: Apache-2.0
- Pricing: Free tier
- Pricing notes: Free and Go include limited Codex; Plus expanded; Pro longer sessions; also in Business, Edu and Enterprise (chatgpt.com/pricing). With an API key, pay per token.
- Free tier: yes
- Self-hostable: yes
- Cloud hosted: yes
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^4], [AGENTS.md](https://talira.ai/standards/agents-md.md)[^5], [Agent Skills](https://talira.ai/standards/agent-skills.md)[^6]
- Backed by: [OpenAI](https://talira.ai/orgs/openai.md)

Codex is OpenAI's coding agent. The Codex CLI runs in the terminal, reads and edits code, and runs commands in a sandbox; the same agent is available as an extension for VS Code, [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md) and Windsurf, as a desktop app (`codex app`) and in [ChatGPT](https://talira.ai/catalog/chatgpt-9yedgr0z.md) on the web. Sign in with a ChatGPT Plus, Pro, Business, Edu or Enterprise plan to use it as part of the plan, or use an API key. The CLI is written in Rust and is open source under Apache-2.0.

## Links

- Website: https://chatgpt.com/codex
- GitHub: https://github.com/openai/codex
- Docs: https://developers.openai.com/codex

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/cask/codex>[^1]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/codex>[^2]

## Problems it solves

- want an AI agent that edits my code and runs commands, using my existing ChatGPT subscription
- an open source terminal coding agent I can read and audit
- let an AI run commands in my repo without giving it free rein over my machine
- second-opinion code review of my branch from a different AI model
- hand off a coding task and come back to a finished diff
- coding agent in my editor that uses OpenAI's models
- run a coding agent unattended in a script or CI job
- reopen my last coding agent conversation in this folder and keep going, or pick an older one by ID
- get a terminal notification when the coding agent needs my approval or has finished its turn
- let the coding agent run some commands outside its sandbox without asking, prompt for others and forbid the rest
- make the coding agent propose an execution plan before it starts changing code
- check how many tokens my current coding agent session has used
- export my coding agent's API requests, token counts and approval decisions to OpenTelemetry

## Features

- terminal CLI
- IDE extension (VS Code, Cursor, Windsurf)
- desktop app
- cloud tasks in ChatGPT
- sandboxed command execution
- sign in with ChatGPT or an API key
- standalone installers and GitHub release binaries
- codex resume and codex exec resume (--last, --all)
- plan mode (/plan)
- rules for commands outside the sandbox: allow, prompt or forbidden
- approval policies and sandbox modes (read-only, workspace-write, danger-full-access)
- TUI notifications and a notify program on turn completion
- /status token usage and OpenTelemetry log export

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.82 out of 1.
Signals: maintenance 1.00, adoption 1.00, momentum 1.00, community 1.00, backing 0.30, extensibility 0.20.

- last commit 8 days ago
- 4209 commits in the last 90 days
- latest release rust-v0.169.0 11 days ago
- 135.4k GitHub stars
- 727 contributors
- backed by OpenAI

## Forks

- [Open Interpreter](https://talira.ai/catalog/open-interpreter-6txx3z98.md): Terminal coding agent tuned for low-cost and open models. Its own project.

## Related

- Works with [ChatGPT](https://talira.ai/catalog/chatgpt-9yedgr0z.md)
- Works with [OpenAI API](https://talira.ai/catalog/openai-api-t57ph5ck.md)

## Alternatives

- [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md): The open source coding agent.
- [Codewhale](https://talira.ai/catalog/codewhale-4v3r8wrx.md): Open source terminal coding agent for any model
- [Gemini CLI](https://talira.ai/catalog/gemini-cli-xq86svf2.md): An open-source AI agent that brings the power of Gemini directly into your terminal.
- [Aider](https://talira.ai/catalog/aider-c2r6skq8.md): AI pair programming in your terminal
- [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md): An agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools
- [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md): Cursor is your coding agent for building ambitious software.

## Sources

[^1]: https://formulae.brew.sh/api/cask.json (checked 21 Nov 2026)
[^2]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
[^3]: https://learn.chatgpt.com/docs/mcp-server (checked 17 Nov 2026)
[^4]: https://learn.chatgpt.com/docs/extend/mcp (checked 17 Nov 2026)
[^5]: https://learn.chatgpt.com/docs/agent-configuration/agents-md (checked 17 Nov 2026)
[^6]: https://learn.chatgpt.com/docs/build-skills (checked 17 Nov 2026)
