Best Free OpenAI Codex CLI Alternatives

30 alternatives to OpenAI Codex CLI with a free plan or free tier, ranked by how closely they match. The percentage is a match score, not a popularity score.

Replacing: OpenAI Codex CLI — OpenAI Codex CLI brings the Codex coding agent to the terminal and to scripts.Input: text, images, code · Output: code
1
AI pair programming in your terminal
Input: text, images, audio, code, web pages · Output: code
Free plan
AI Coding Assistant
2
It can query and edit large codebases, generate new apps from PDFs, images, or sketches using multimodal input, and debug problems when you describe them in plain language.
Input: text, images, documents, code · Output: code
Free plan
AI Coding Assistant
3
Writing code means constantly jumping between your editor and browser tabs stuffed with documentation
Input: text, code · Output: code
Free planFrom $15/mo
AI Coding Assistant
4
opcode is a free, open-source desktop application that gives Anthropic's command-line coding agent a graphical interface.
Input: text, code · Output: code
Free plan
AI Coding Assistant
5
Qwen Code is an open-source AI coding agent that lives in the terminal and also runs in editors, a desktop app, a Web UI and chat apps.
Input: text, code · Output: code
Free planAPITeams
AI Coding Assistant

Can it really replace OpenAI Codex CLI? Vote on each alternative — no account needed. Votes gently reorder the list; they never change the match score.

Missing an alternative? Suggest it

Only tools already listed and live can be suggested. Not on the site yet? Submit it first.

At a glance: top OpenAI Codex CLI alternatives

ToolMatchInputOutputPricingFree planRatingCategory
Aider 93% text, images, audio, code, web pages code Free Yes — AI Coding Assistant
Gemini CLI 100% text, images, documents, code code Free Yes — AI Coding Assistant
Kimi Code 90% text, code code From $15/mo Yes — AI Coding Assistant
opcode 96% text, code code Free Yes — AI Coding Assistant
Qwen Code 96% text, code code Free Yes — AI Coding Assistant
OpenCode 96% text, code code Free Yes — AI Coding Assistant

Frequently asked

What is the best free OpenAI Codex CLI alternative?
Aider (93% match) is the closest free alternative to OpenAI Codex CLI: AI pair programming in your terminal. Gemini CLI (100% match) and Kimi Code (90% match) come next.
How is the match percentage calculated?
It measures how much of OpenAI Codex CLI's job a tool can take over: shared core category, how many of the same use cases it covers and how similar its feature set is. Popularity and ratings never change the percentage; they only break ties in the order. Lists are recomputed nightly and reviewed by editors for the most-visited tools.

How this list is ranked

The match score measures how much of OpenAI Codex CLI's job each tool can take over: shared core category, how many of the same use cases it covers, and how similar its feature set is. Popularity and ratings do not change the score; they only break ties in the order.

Lists are recomputed nightly from the live catalog and reviewed by our editors for the most-visited tools. Sponsored placements are marked and sit outside the ranking.