OpenAI's open-source terminal coding agent; sign in with a ChatGPT plan or API key, or run local models through Ollama or LM Studio.
Open-source alternative toClaude CodeCursor
OpenAI Codex CLI at a glance
Checked 21 Oct 2026Codex CLI is an Apache-2.0 coding agent from OpenAI that runs on your computer. From the terminal it inspects, edits and runs code, connects tools through MCP servers, and runs scripted or CI jobs with codex exec or the Codex GitHub Action. There is also an IDE extension for VS Code, Cursor and Windsurf. Sign in with ChatGPT (Codex is included in Free, Go, Plus, Pro, Business, Edu and Enterprise plans, with usage limits) or use an OpenAI API key; the --oss flag runs local open models through LM Studio or Ollama. Runs on macOS, Linux and Windows, with a native Windows sandbox.
RepoQuarry. “OpenAI Codex CLI.” Checked 21 Oct 2026. https://repoquarry.dev/projects/codex-cliHow much of Claude Code does it replace?
- Personal use
- Confirmed: Yes
- For a business
- Confirmed: Yes
5 of 6 jobs. Very close match for terminal, IDE, MCP and CI use; the docs do not describe writing commits or opening pull requests from the CLI.
For write commits and pull requests, see other Claude Code alternatives. You may also need to build an interface, an API server and hosting yourself.
How much of Cursor does it replace?
- Personal use
- Confirmed: Yes
- For a business
- Confirmed: Yes
3 of 7 jobs. Agent edits and commands from the terminal or an IDE extension; not an editor, so no tab completion. Cloud agents are the separate Codex Web product.
For code in an AI-first editor, multi-line tab completion and next-edit prediction, ask questions about your whole codebase, run agents in the cloud in the background, see other Cursor alternatives. You may also need to build an interface, an API server and hosting yourself.
Facts, with sources
Every answer links to where we found it. We read the documentation; we did not install it.
Codex CLI is a coding agent from OpenAI that runs locally on your computer.github.com · codex#readme ↗ today
Apache License Version 2.0, January 2004github.com · LICENSE ↗ today
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright licensegithub.com · LICENSE ↗ today
Use a local open source model provider. Codex uses --local-provider, your configured oss_provider, or prompts you to choose between LM Studio and Ollama.learn.chatgpt.com · developer-commands ↗ today
Run the following on Windows to install Codex CLI:github.com · codex#readme ↗ today
Then simply run `codex` to get started.github.com · codex#readme ↗ today
No licence changes since we started watching. Licence watch: follow OpenAI Codex CLI and we email you if its licence terms change.
Growth and activity in detail
Is it popular, and is anyone still working on it? From GitHub.
Numbers appear after the first nightly fetch from GitHub.