OpenAI Codex CLI alternatives (2026)
OpenAI Codex CLI is a coding tool: OpenAI's open-source coding agent for the terminal; also runs in the cloud. Pricing, as the maker states it: Open source; uses ChatGPT plan or API. Its GitHub repo has 129,112 stars. We found 141 tools in the directory that do overlapping work (writing code, coding in the terminal, open-source agents); 106 of them are open source and 9 list a free or freemium plan. Below are the 10 closest, ranked by how many tasks and sub-tasks they share with OpenAI Codex CLI, then by GitHub stars.
- opencode (Open source): Open-source terminal coding agent that works with many model providers. Consider it because it has more GitHub stars (213,329 vs 129,112).
- Gemini CLI (Open source): Google's open-source terminal agent powered by Gemini. Consider it because it does the same job with a different approach (open source).
- Qwen Code (Open source): Open-source terminal coding agent from the Qwen team. Consider it because it does the same job with a different approach (open source).
- Grok CLI (Open source): Open-source coding agent for the Grok API. Consider it because it does the same job with a different approach (open source).
- Claude Code (Paid): Anthropic's terminal coding agent that edits code, runs commands and handles git. Consider it because it is a managed commercial product, if you'd rather not run it yourself; it has more GitHub stars (150,707 vs 129,112). OpenAI Codex CLI vs Claude Code →
- CC Switch (Open source): Desktop manager for Claude Code, Codex, Gemini CLI, OpenCode, OpenClaw and other coding agents that switches API providers in one click and manages MCP servers, skills and prompts. Consider it because it is ready to use without building anything; it also covers computer and desktop control and MCP servers; it has more GitHub stars (145,685 vs 129,112).
- Open Interpreter (Open source): Terminal coding agent forked from OpenAI's Codex and tuned for low-cost and open-weight models, with switchable harness modes that imitate tools like Claude Code. Consider it because it also covers agent frameworks and SDKs.
- Open Code Review (Open source): Alibaba's AI code review CLI that combines deterministic pipelines with an LLM agent to post line-level comments on Git diffs, using OpenAI or Anthropic models. Consider it because it also covers code review.
- Codewhale (Open source): Rust agent engine and terminal coding client with model choice, tool approvals and review flows. Consider it because it does the same job with a different approach (open source).
- Oh My Pi (Open source): Terminal coding agent with IDE features wired in, from Stencil Labs. Consider it because it also covers IDE and editor agents.
OpenAI Codex CLI vs alternatives at a glance
| Tool | Pricing | Open source / licence | GitHub stars | Good for |
|---|---|---|---|---|
| OpenAI Codex CLI | Open source | Apache License 2.0 | 129,112 | writing code, coding in the terminal |
| opencode | Open source | MIT | 213,329 | writing code, coding in the terminal |
| Gemini CLI | Open source | Apache License 2.0 | 107,334 | writing code, coding in the terminal |
| Qwen Code | Open source | Apache License 2.0 | 28,529 | writing code, coding in the terminal |
| Grok CLI | Open source | MIT | 3,497 | writing code, coding in the terminal |
| Claude Code | Paid | Proprietary (All rights reserved; Anthropic Commercial Terms of Service) | 150,707 | writing code, coding in the terminal |
| CC Switch | Open source | Yes | 145,685 | writing code, coding in the terminal |
| Open Interpreter | Open source | Apache License 2.0 | 68,591 | writing code, coding in the terminal |
| Open Code Review | Open source | Yes | 47,560 | writing code, reviewing pull requests |
| Codewhale | Open source | MIT | 41,093 | writing code, coding in the terminal |
| Oh My Pi | Open source | MIT | 35,686 | writing code, coding in the terminal |
Written comparisons: Claude Code vs OpenAI Codex CLI
More: OpenAI Codex CLI listing · All coding tools · All alternatives pages
Related searches: AI coding agents for the terminal (CLI) · Free AI coding agents · Open-source AI coding agents
Alternatives are picked from directory data only: same category plus shared tasks and sub-tasks. Pricing is as each maker states it; GitHub stars as recorded on each listing.