Free to list, always.No paid rankings. Every recommendation explains its trade-offs.
OpenSourceChoice

Open-source alternatives guide · Updated 2026

Best open-source alternatives to Codex

Compare the best free and open-source alternatives to Codex — 20 verified projects with explicit catalog relationships. Inspect licenses, GitHub activity, self-hosting signals, and migration fit before you switch.

Official product reference Codex
  • 20verified alternatives
  • 3self-hosted signals
  • 5categories

Only explicit alternative relationships are shown—never inferred competitor claims.

Overview

This guide compares 20 verified open-source alternatives to Codex, including OpenCode, Codex, Zed, and OpenHands.

Projects appear across Infrastructure, Developer Tools, and Content & Collaboration. 3 options include a self-hosting signal — see the self-hosted catalog. Ranking follows public GitHub stars and recorded momentum—not vendor marketing. Compare projects side by side, then confirm license fit, migration effort, and operational ownership before adopting any option.

Developers searching open-source Codex alternatives, Codex MCP plugins, OpenAI Codex CLI comparisons, and terminal coding agents after recent Codex updates.

Migration tip: Separate three things: OpenAI’s open-source Codex CLI repo, hosted Codex/ChatGPT coding features, and third-party agents (Cline, OpenHands, Aider, Goose). Pilot one real repository with tests and secrets policy, then attach MCP servers for plugins.

Strongest repository-activity signal: OpenCode · Jump to ranking · 190.7K stars

About Codex

Codex is OpenAI’s AI coding agent line—terminal/CLI workflows, repository edits, and agentic coding. Search interest spiked as OpenAI published an open-source Codex CLI while also offering hosted Codex experiences. The viral follow-on is Codex + MCP plugins: portable tools for git, docs, and browsers that outlive any one client.

Visit Codex

Ranked open-source alternatives to Codex

Compare capabilities, licensing, and ownership model. Stars help with discovery; they are not a security or product-fit guarantee.

#3

Zed

Open-source alternative to Codex

Content & CollaborationLicense not declared

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. Review the official repository, license, release activi

Best for
Knowledge teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 27 hours ago
#4

OpenHands

Open-source alternative to Codex

AI & Machine LearningLicense not declaredAI-native

🙌 OpenHands: AI-Driven Development

🙌 OpenHands: AI-Driven Development Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 27 hours ago
#5

pi

Open-source alternative to Codex

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI Review the official repository, license, release activity, and deployment documentation before production adopt

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 27 hours ago
#6

Warp

Open-source alternative to Codex

Warp is an agentic development environment, born out of the terminal.

Warp is an agentic development environment, born out of the terminal. Review the official repository, license, release activity, and deployment documentation before production adop

Best for
AI product teams
Deployment
Inspectable source
License
AGPL-3.0
Activity
Updated 26 hours ago

Key capabilities

#7

Goose

Open-source alternative to Codex

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM Review the official repository, license, release activity, and

Best for
AI product teams
Deployment
Inspectable source
License
Apache-2.0
Activity
Updated 26 hours ago

Key capabilities

#8

Aider

Open-source alternative to Codex

aider is AI pair programming in your terminal

aider is AI pair programming in your terminal Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Self-hostable
License
Apache-2.0
Activity
Updated 2 months ago
#9

Multica

Open-source alternative to Codex

InfrastructureLicense not declared

The open-source managed agents platform. Turn coding agents into real teammates — assign tasks, track progress, compound skills.

The open-source managed agents platform. Turn coding agents into real teammates — assign tasks, track progress, compound skills. Review the official repository, license, release ac

Best for
Infrastructure teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 26 hours ago
#11

Tabby

Open-source alternative to Codex

AI & Machine LearningLicense not declaredSelf-hostedAI-native

Self-hosted AI coding assistant

Self-hosted AI coding assistant Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Self-hostable
License
License not declared
Activity
Updated 16 days ago

Key capabilities

#12

codebase-memory-mcp

Open-source alternative to Codex

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens.

Best for
Data teams
Deployment
Inspectable source
License
MIT
Activity
Updated 45 hours ago
#13

Kilo

Open-source alternative to Codex

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent.

Kilo is the all-in-one agentic engineering platform. Build, ship, and iterate faster with the most popular open source coding agent. Review the official repository, license, releas

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 26 hours ago

Key capabilities

#14

Plandex

Open-source alternative to Codex

Open source AI coding agent. Designed for large projects and real world tasks.

Open source AI coding agent. Designed for large projects and real world tasks. Review the official repository, license, release activity, and deployment documentation before produc

Best for
AI product teams
Deployment
Inspectable source
License
MIT
Activity
Updated 10 months ago

Key capabilities

#16

Forgecode

Open-source alternative to Codex

AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models

AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models Review the official repository, license, release activity, and deployment documentation

Best for
AI product teams
Deployment
Inspectable source
License
Apache-2.0
Activity
Updated 26 hours ago
#17

Emdash

Open-source alternative to Codex

Emdash is the Open-Source Agentic Development Environment (🧡 YC W26). Run multiple coding agents in parallel. Use any provider.

Emdash is the Open-Source Agentic Development Environment (🧡 YC W26). Run multiple coding agents in parallel. Use any provider. Review the official repository, license, release ac

Best for
AI product teams
Deployment
Self-hostable
License
Apache-2.0
Activity
Updated 26 hours ago

Key capabilities

#19

PearAI

Open-source alternative to Codex

AI & Machine LearningLicense not declaredAI-native

Master Repo For PearAI

Master Repo For PearAI Review the official repository, license, release activity, and deployment documentation before production adoption.

Best for
AI product teams
Deployment
Inspectable source
License
License not declared
Activity
Updated 28 days ago

Key capabilities

#20

Cody

Open-source alternative to Codex

Cody for Visual Studio - an AI code assistant that uses advanced search and codebase context to help you write and fix code.

Cody for Visual Studio - an AI code assistant that uses advanced search and codebase context to help you write and fix code. Review the official repository, license, release activi

Best for
AI product teams
Deployment
Inspectable source
License
APACHE-2
Activity
Updated Jul 12, 2026
How to choose a Codex alternative
01

Map must-have capabilitiesList the workflows in Codex you cannot drop during migration.

02

Verify the licenseConfirm it fits your use, distribution, and compliance model. Browse license briefs.

03

Run a proof of conceptTest real data, integrations, clients, and failure modes. Use Compare for side-by-side checks.

04

Plan ownershipAssess upgrades, backups, support, and an exit path. Read when self-hosting is worth it.

Frequently asked questions about Codex alternatives

Is OpenAI Codex open source?

OpenAI publishes an open-source Codex coding agent/CLI on GitHub. Hosted Codex experiences and models can still be proprietary. Always verify the repo LICENSE and which runtime you are comparing.

Does Codex support MCP plugins?

Compatibility depends on the client/runtime. The open strategy is MCP servers plus whichever agent speaks MCP—so tools stay portable if you switch from Codex CLI to Goose, Continue, or Cline.

What are the best open-source Codex alternatives?

OpenAI Codex CLI itself, plus Cline, Aider, OpenHands, Continue, Goose, and Zed depending on terminal-first versus IDE-first workflows. Match tool-use quality on your monorepo—not star counts alone.

Codex vs Cursor vs Claude Code—what should I compare?

Codex is agent/CLI oriented; Cursor is an AI editor; Claude Code is Anthropic’s agentic coding assistant. Many teams evaluate all three classes, then pick one primary daily tool and share MCP plugins across them.

Can I run Codex-like agents with local models?

Many open agents support BYO keys or local runners. Expect trade-offs in reasoning quality, context size, and latency versus frontier hosted models.

Browse and filter the catalog

Narrow the same alternatives by search, license, tags, or self-hosting signals when you need a tighter shortlist.

The open source coding agent.

FreePricingFree and open sourceFree190.7K24.3K7 minutes ago
Apache-2.0

Lightweight coding agent that runs in your terminal

FreePricingFree and open sourceFree102.2K15.3K16 minutes ago
License not declared

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

FreePricingFree and open sourceFree87K9.5K27 hours ago
License not declared

🙌 OpenHands: AI-Driven Development

FreePricingFree and open sourceFree80.9K10.3K27 hours ago
MIT

AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI

FreePricingFree and open sourceFree71.4K8.8K27 hours ago
AGPL-3.0

Warp is an agentic development environment, born out of the terminal.

FreePricingFree and open sourceFree63.2K5.2K26 hours ago
Apache-2.0

an open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM

FreePricingFree and open sourceFree51.2K5.7K26 hours ago
Apache-2.0

aider is AI pair programming in your terminal

FreePricingFree and open sourceFree47.4K4.7K2 months ago
License not declared

The open-source managed agents platform. Turn coding agents into real teammates — assign tasks, track progress, compound skills.

FreePricingFree and open sourceFree40.6K5.1K26 hours ago
Apache-2.0

open-source coding agent

FreePricingFree and open sourceFree34.9K5.1K34 hours ago
License not declared

Self-hosted AI coding assistant

FreePricingFree and open sourceFree33.7K1.8K16 days ago

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

FreePricingFree and open sourceFree31.8K2.5K45 hours ago
Showing 12 of 20