Codex CLI Alternatives
13 alternatives to Codex CLI — free and paid AI tools covering similar jobs, with pricing, trade-offs, and standout strengths.
Related roundup: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Looking for an alternative to Codex CLI? Codex CLI is listed under CLI (open source). The 13 tools below cover similar jobs, closest matches first — the table compares pricing, license, and platforms so you can shortlist quickly, and each entry further down adds a fuller summary and a link to the full profile.
| Tool | Pricing | License | Platforms | Category |
|---|---|---|---|---|
| Aider | open source | Apache-2.0 | macOS, Windows, Linux | CLI |
| Claude Code | paid | — | macOS, Windows, Linux, Web | CLI |
| Gemini CLI | open source | — | — | CLI |
| OpenCode | open source | MIT | macOS, Windows, Linux | CLI |
| Crush | free | FSL-1.1-MIT | macOS, Windows, Linux, Android | CLI |
| Qwen Code | open source | Apache-2.0 | macOS, Windows, Linux | CLI |
| Spec Kit | open source | MIT | macOS, Windows, Linux | CLI |
| Amp | freemium | — | — | Agent |
| Factory | paid | — | — | Agent |
| Goose | open source | — | — | Agent |
| Jules | freemium | — | Web | Agent |
| Kiro | freemium | — | macOS, Windows, Linux, Web | IDE |
| Warp | freemium | — | — | Terminal |
Free and open-source alternatives to Codex CLI
Codex CLI alternatives in detail
Aider
open sourceApache-2.0macOS, Windows, LinuxCLIAider is a free, Apache-2.0 terminal tool for AI pair programming. Run it inside a Git repository, describe a change, and it edits the files and commits each change, so /undo or git revert takes anything back. You bring an API key for Claude, GPT, DeepSeek or a local model. Releases have slowed: the latest on PyPI is 0.86.2, from February 2026.
Read: AI Coding Agents in 2026: The Open-Source & CLI Edition
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Claude Code
paidmacOS, Windows, Linux, WebCLIClaude Code is Anthropic's agentic coding tool: it reads your codebase, edits files, runs commands and iterates on test output. It runs in the terminal, VS Code, JetBrains, a desktop app and the browser, and extends through CLAUDE.md, skills, subagents, hooks, MCP and plugins. It needs a paid Claude plan, a Console account or a cloud provider.
Read: Claude Code vs Codex CLI: Terminal Agents Compared (2026)
Read: Claude vs GPT vs Gemini for Coding in 2026
Read: Best Background & Async Coding Agents in 2026: Devin vs Claude Code vs Codex vs Cursor
Read: AI Coding Agents in 2026: The Open-Source & CLI Edition
Read: The Best GitHub Copilot Alternatives in 2026 (Free and Paid)
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Gemini CLI
open sourceCLIGemini CLI is Google's open-source (Apache-2.0) terminal agent for Gemini models, with file and shell tools, Google Search grounding, MCP, and GEMINI.md files. There is no free tier: since June 18, 2026 it serves only Gemini Code Assist Standard and Enterprise licenses and paid API keys. Google points everyone else, and Gemini 4 users, to Antigravity CLI.
Read: Claude vs GPT vs Gemini for Coding in 2026
Read: AI Coding Agents in 2026: The Open-Source & CLI Edition
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
OpenCode
open sourceMITmacOS, Windows, LinuxCLIOpenCode is an MIT-licensed open-source coding agent from Anomaly (formerly SST) with about 229,600 GitHub stars as of November 2026. OpenCode 2 runs as a terminal TUI, desktop app and mobile app, works with 200+ model providers including local ones, and runs parallel sessions. Bring your own keys or use the optional OpenCode Console or Go plans.
Read: AI Coding Agents in 2026: The Open-Source & CLI Edition
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Crush
freeFSL-1.1-MITmacOS, Windows, Linux, AndroidCLICrush is Charm's free terminal coding agent. It continues opencode-ai/opencode (archived; last push September 2025), not today's OpenCode. It runs nearly any model, including local ones, switches models mid-session and adds LSP context, MCP and Agent Skills. It is source-available under FSL-1.1-MIT, not OSI open source; releases turn MIT after two years.
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Qwen Code
open sourceApache-2.0macOS, Windows, LinuxCLIQwen Code is the Qwen team's free, Apache-2.0 coding agent, originally forked from Gemini CLI. It speaks OpenAI, Anthropic, Gemini and Qwen APIs, runs local models via Ollama or vLLM, and ships subagents, hooks, MCP and plan mode. The free Qwen OAuth quota ended April 15, 2026, so bring an API key, an Alibaba Cloud plan or a local model.
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Spec Kit
open sourceMITmacOS, Windows, LinuxCLISpec Kit (GitHub, MIT, about 152k stars as of November 2026) productized spec-driven development: specify init scaffolds a project, then /speckit.constitution, .specify, .plan, .tasks, .implement and .converge walk your coding agent through the pipeline, each phase emitting a markdown artifact that feeds the next. It works with 40+ agent integrations.
Amp
freemiumAgentAmp is an agentic coding tool that spun out of Sourcegraph in December 2025: a CLI plus apps for the web, Mac, iPhone, and iPad that run frontier models to read, edit, and run commands across a repository. Subagents parallelize independent sub-tasks, the Oracle adds a second-opinion reasoning model, and threads can be shared with a workspace.
Read: Best Background & Async Coding Agents in 2026: Devin vs Claude Code vs Codex vs Cursor
Read: The Best GitHub Copilot Alternatives in 2026 (Free and Paid)
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Factory
paidAgentFactory is an agent-native software development platform. Its autonomous coding agents, called Droids, plan, write, test, and ship code across the terminal (Droid CLI), IDE, and web, pulling in organizational context from GitHub, Jira, Slack, and your codebase. It targets individual developers and enterprise engineering teams.
Read: Best Background & Async Coding Agents in 2026: Devin vs Claude Code vs Codex vs Cursor
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Goose
open sourceAgentGoose is an open-source (Apache-2.0), general-purpose AI agent that runs entirely on your machine — it executes shell commands, edits files, runs tests, and chains multi-step tasks. MCP-native with 70+ documented extensions and model-agnostic across 15+ providers including local models, it ships as a Rust CLI and a desktop app for macOS, Linux, and Windows.
Read: AI Coding Agents in 2026: The Open-Source & CLI Edition
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Jules
freemiumWebAgentJules is Google Labs' asynchronous coding agent, free for up to 15 tasks a day. You connect a GitHub repo and describe a task; Jules works in a Google-hosted VM, proposes a Gemini-built plan, shows diffs for approval and opens a pull request. It is proprietary and labeled experimental, and its changelog's latest entry is March 9, 2026.
Read: Best Background & Async Coding Agents in 2026: Devin vs Claude Code vs Codex vs Cursor
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Kiro
freemiummacOS, Windows, Linux, WebIDEKiro is AWS's spec-driven coding agent for the IDE, terminal and web, with a free plan. It turns a prompt into requirements, a design and sequenced tasks, then checks the code against them with property-based tests. It is proprietary, and one agent harness carries specs, hooks and MCP servers across the IDE, the kiro-cli agent and Kiro Web.
Read: The Best GitHub Copilot Alternatives in 2026 (Free and Paid)
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)
Warp
freemiumTerminalWarp is an AI-powered terminal whose agent can plan, run, and chain commands while you approve what executes. Output is grouped into navigable blocks, workflows share vetted commands, and the agent grounds itself in your indexed codebase. A standalone Warp Agent CLI followed in August 2026. The client is open source (mostly AGPL-3.0), with a free tier.
Read: The Best Claude Code Alternatives in 2026 (Free, Open-Source, and Paid)