About Codex CLI
Codex CLI is a coding agent from OpenAI that runs on your own computer from the terminal. The repository describes it as lightweight and written mainly in Rust. Once installed, you start it by running the codex command.
Installation on Mac or Linux uses a curl script, and on Windows a PowerShell script. The installers download from releases.openai.com and fall back to GitHub Releases, and an environment variable can force GitHub Releases. It can also be installed with npm or Homebrew, or from release archives for Apple Silicon and Intel macOS and for x86_64 and arm64 Linux.
For sign-in, the README recommends choosing Sign in with ChatGPT so Codex counts as part of a Plus, Pro, Business, Edu or Enterprise plan. An API key also works but needs extra setup. Related products are named too: an IDE install for VS Code, Cursor and Windsurf, a desktop app opened with codex app, and the cloud agent Codex Web.
Key features
- Coding agent that runs locally in a terminal
- Install script for Mac and Linux
- Install script for Windows via PowerShell
- Also installable with npm and Homebrew
- Sign in with a ChatGPT account
- Available in editors such as VS Code, Cursor and Windsurf
- Desktop app launched with the codex app command
Good fit for
- Coding assistance from the command line
- Working with a ChatGPT plan or an API key
Codex CLI: questions and answers
- What is Codex CLI used for?
- Codex CLI is OpenAI's Apache-2.0 coding agent written in Rust that runs locally in your terminal, with IDE, desktop and cloud counterparts. It is a good fit for coding assistance from the command line and working with a ChatGPT plan or an API key.
- 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.
- 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 November 2026. The project has 135k stars on GitHub, with 6.2k added in the last 30 days.
Open-source alternatives to Codex CLI
See all
Aider
AI Tools
aider is AI pair programming in your terminal
Apache-2.0vs Claude Code★ 50k
OpenCode
AI Tools
The open source coding agent.
MITvs Claude Code★ 226k
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★ 72k
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