About Codex CLI
Codex CLI is OpenAI's coding agent, and it runs locally in your terminal. It is open source under the Apache-2.0 license and written in Rust. Developers start it by running the codex command and then ask it to read, explain and change the code in their project.
It is installed through standalone scripts for Mac, Linux and Windows, through package managers, or by downloading a binary for your platform from GitHub Releases. You can sign in with a ChatGPT account to use it as part of a Plus, Pro, Business, Edu or Enterprise plan, or authenticate with an API key instead.
The README distinguishes the CLI from other Codex surfaces: an IDE extension for VS Code, Cursor and Windsurf, a desktop app launched with codex app, and the cloud-based Codex Web at chatgpt.com/codex. The CLI suits developers who prefer to stay in the terminal and want an agent whose client code is open.
Key features
- Terminal-based coding agent that runs locally
- Sign in with a ChatGPT plan or API key
- Installers for Mac, Linux and Windows
- Standalone binaries on GitHub Releases
- Related IDE extension and desktop app
- Open-source Rust codebase under Apache-2.0
Good fit for
- Terminal-first AI-assisted coding
- Delegating code changes from the command line
Codex CLI: questions and answers
- What is Codex CLI used for?
- Codex CLI is OpenAI's open-source coding agent for the terminal, written in Rust, which can sign in with a ChatGPT plan or use an API key. It is a good fit for terminal-first AI-assisted coding and delegating code changes from the command line.
- Is Codex CLI open source?
- Yes. Codex CLI is open source under the Apache-2.0 licence. Its source code is on GitHub at openai/codex and is written mainly in Rust.
- Is Codex CLI free?
- Yes. Codex CLI is open source, so the software itself is free to use. A managed cloud version is also available.
- What is Codex CLI an alternative to?
- Codex CLI is an open-source alternative to Claude Code, GitHub Copilot, Cursor and Devin. Other open-source alternatives to Claude Code include Aider, OpenCode and Continue.
- Is Codex CLI actively maintained?
- Yes. The most recent commit to Codex CLI was on 11 October 2026. The project has 129k stars on GitHub.
Open-source alternatives to Codex CLI
See all
Aider
AI Tools
aider is AI pair programming in your terminal
Apache-2.0vs Claude Code★ 49k
OpenCode
AI Tools
The open source coding agent.
MITvs Claude Code★ 213k
Continue
AI Tools
open-source coding agent
Apache-2.0vs GitHub Copilot★ 36k
Cline
AI Tools
Autonomous coding agent as an SDK, IDE extension, or CLI assistant.
Apache-2.0vs GitHub Copilot★ 70k
Kilo Code
AI Tools
Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with
MITvs Cursor★ 28k
Tabby
AI Tools
Self-hosted AI coding assistant
OSSvs GitHub Copilot★ 34k
SaaS alternatives to Codex CLI
See all
Claude Code
AI Tools
Anthropic coding agent for the terminal, IDEs and web that edits code and runs commands
SaaS
GitHub Copilot
AI Tools
GitHub Copilot is an AI coding assistant and agent that works in editors, the terminal, on desktop and on GitHub, from issue to pull request.
SaaS
Cursor
AI Tools
AI-first code editor with chat, multi-file edits and autonomous coding agents
SaaS
Devin
AI Tools
Autonomous AI software engineer that takes tickets and opens pull requests
SaaS
Augment Code
AI Tools
AI coding assistant for large codebases with context-aware chat and agents
SaaS
Jules
AI Tools
Asynchronous coding agent from Google that works on GitHub repositories
SaaS

Gemini Code Assist
Manus