Best free OpenAI Codex CLI alternatives

Looking for a free alternative to OpenAI Codex CLI? Here are 9 terminal & cli agents worth trying — 9 with a free tier. OpenAI Codex CLI itself is free tier + paid.

ToolOpenAI Codex CLI (you searched)Gemini CLIAiderCline
Pricingfreemiumfreefreefree
Best for#1 on Terminal-Bench with GPT-5-seriesOpen-source terminal agent from GoogleOpen-source AI pair programmer in your terminalOpen-source autonomous coding agent for VS Code
VisitOpen ↗Open ↗Open ↗Open ↗

OpenAI Codex CLI alternatives — straight answers

What is the best free alternative to OpenAI Codex CLI?

Gemini CLI is the closest free alternative to OpenAI Codex CLI: same Terminal & CLI Agents sub-category, and it is free. Open-source terminal agent from Google

Are there free OpenAI Codex CLI alternatives?

Yes — 9 of the 9 alternatives listed here are free or freemium: Gemini CLI, Aider, Cline, OpenCode, Crush. None of them are paid-only.

Is OpenAI Codex CLI free?

OpenAI Codex CLI is free tier + paid. There is a free tier you can work in, with paid plans above it.

How were these OpenAI Codex CLI alternatives chosen?

They are the other tools in Terminal & CLI Agents, then the rest of Code & Development, ordered free tiers first and capped at 9. There is no sponsorship and no paid placement in that ordering — only the pricing tier decides.

All OpenAI Codex CLI alternatives

Browse Terminal & CLI Agents →

Gemini CLI

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Open-source terminal agent from Google.

  • Open-source terminal agent from Google
  • Huge free daily model quota
  • Built-in tools and MCP support
  • Great value for everyday coding

Aider

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Open-source AI pair programmer in your terminal.

  • Open-source AI pair programmer in your terminal
  • Git-aware commits and edits
  • Works with any model (bring your key)
  • Free to use

Cline

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Open-source autonomous coding agent for VS Code.

  • Open-source autonomous coding agent for VS Code
  • Plan/Act modes with approvals
  • Bring your own API key or model
  • MCP tool support

OpenCode

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Fully open-source terminal/IDE/desktop coding agent, MIT licensed.

  • Fully open-source terminal/IDE/desktop coding agent, MIT licensed
  • Bring-your-own model across 75+ providers, free models included
  • Parallel agent sessions with shareable session links

Crush

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Terminal coding agent from Charm with LSP-aware context.

  • Terminal coding agent from Charm with LSP-aware context
  • Cross-platform incl. Android/BSD, MCP server support over HTTP/stdio/SSE
  • Agent Skills standard support for extensibility

Goose

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Open-source agent (now under Agentic AI Foundation/Linux Foundation) usable as CLI, desktop app or API.

  • Open-source agent (now under Agentic AI Foundation/Linux Foundation) usable as CLI, desktop app or API
  • 70+ MCP extensions, 15+ LLM providers supported
  • Apache-2.0 licensed, built in Rust

Qwen Code

Terminal & CLI Agents
free

✦ WhyA OpenAI Codex CLI alternative — Open-source terminal CLI adapted from Gemini CLI, tuned for Qwen3-Coder models.

  • Open-source terminal CLI adapted from Gemini CLI, tuned for Qwen3-Coder models
  • OpenAI-SDK compatible for flexible model backends
  • Free npm install, agentic coding workflows

Amp

Terminal & CLI Agents
freemium

✦ WhyA OpenAI Codex CLI alternative — Multi-model routing across frontier models with no artificial usage caps.

  • Multi-model routing across frontier models with no artificial usage caps
  • Four agent reasoning modes (low/medium/high/ultra) plus parallel subagents
  • Remote 'Orbs' execution machines and an Oracle deep-reasoning tool

Warp

Terminal & CLI Agents
freemium

✦ WhyA OpenAI Codex CLI alternative — Terminal rebuilt as an agentic development environment for any coding agent.

  • Terminal rebuilt as an agentic development environment for any coding agent
  • Multi-agent orchestration with model routing and codebase indexing
  • Oz cloud agent platform for moving from local to cloud execution

OpenAI Codex CLI head-to-head