Codex CLI
OpenAI's open-source terminal coding agent
Codex CLI is a coding agent from OpenAI that runs locally in the terminal, where it inspects code, edits files and runs commands using tools already installed on the machine. It can review uncommitted changes, a commit or a base branch without modifying the working tree, resume saved chats, accept images, delegate to subagents, search the web, connect MCP servers and hand work to Codex Cloud. A non-interactive codex exec mode targets scripts and CI. The code is published under the Apache-2.0 license, and users sign in with a ChatGPT account or an API key.
- Filed under
- Code Assistance
- Pricing
- Free
- Platforms
- desktop · api
- Last updated
- November 10, 2026
What Codex CLI does
- Terminal coding agent. Inspects code, edits files and runs commands from the terminal.
- Code review. Reviews uncommitted changes, a commit or a base branch without touching the working tree.
- codex exec. Non-interactive runs for scripts and CI pipelines.
- MCP and plugins. Connects MCP servers and installs skills and plugins.
- Permissions control. Manage what the agent may do with the /permissions command.
- Cloud handoff. Delegates tasks to Codex Cloud from the CLI.
Who it’s for
- Developers who work mainly in the terminal
- Teams scripting coding-agent tasks in CI
- Existing ChatGPT plan holders wanting a local agent
Codex CLI pricing
Open-source (Apache-2.0) CLI; model use is via a ChatGPT plan (Plus, Pro, Business, Edu, Enterprise) or an API key billed separately
As listed on November 9, 2026. Check github.com for current prices.
Things to know
- Needs a ChatGPT sign-in or an API key to run models
- Install paths shown cover macOS, Linux and Windows via different installers
- API-key use needs extra setup
Quick answers
- What is Codex CLI?
- Codex CLI is a coding agent from OpenAI that runs locally in the terminal, where it inspects code, edits files and runs commands using tools already installed on the machine.
- Is Codex CLI free?
- Yes. Codex CLI is free to use. (As listed on November 9, 2026.)
- Who makes Codex CLI?
- Codex CLI is made by OpenAI.
- Where can you use Codex CLI?
- Codex CLI is available on desktop (apps, editor plugins or browser extensions) and an API for developers.
- What are some alternatives to Codex CLI?
- Other tools filed in the same section include Warp, Cline and Amazon Q Developer.
Tags
See also
Cross-referenced entriesWarp
Agentic development platform with an open-source terminal
terminalcoding-agentcli
Cline
Open-source coding agent for editors, terminal and SDK
coding-agentopen-sourcevs-code
Amazon Q Developer
AWS coding assistant for IDEs and the command line
awscode-completionide-plugin
Sourcegraph Cody
Codebase-aware AI coding assistant for Enterprise
code-contextenterpriseide-extension