opensourcestartups

> /v1/alternatives/codex

Open source alternatives to Codex[010]

Codex is OpenAI's coding agent, running in a terminal, IDE or cloud sandbox to read a repository, write code and open pull requests. Below are 10 self-hostable open source alternatives, ranked by GitHub popularity.

// DEVELOPER TOOLS№ 001
opencode

opencode

TYPESCRIPT

Open source terminal coding agent that works with any LLM provider, from the SST team.

★ STARS

190.0k

⑂ FORKS

24.1k

OPEN PROJECT→
// DEVELOPER TOOLS№ 002
Zed

Zed

★ FEATUREDRUST

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

★ STARS

82.2k

⑂ FORKS

8.3k

OPEN PROJECT→
// AI & ML№ 003
OpenHands

OpenHands

★ FEATUREDPYTHON

AI-Driven Development

★ STARS

72.9k

⑂ FORKS

9.2k

OPEN PROJECT→
// AI & ML№ 004
Cline

Cline

★ FEATUREDTYPESCRIPT

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.

★ STARS

61.5k

⑂ FORKS

6.4k

OPEN PROJECT→
// AI & ML№ 005
Aider

Aider

★ FEATUREDPYTHON

Aider is AI pair programming in your terminal

★ STARS

44.5k

⑂ FORKS

4.4k

OPEN PROJECT→
// AI & ML№ 006
Tabby

Tabby

★ FEATUREDRUST

Self-hosted AI coding assistant

★ STARS

33.5k

⑂ FORKS

1.7k

OPEN PROJECT→
// AI & ML№ 007
kilocode

kilocode

TYPESCRIPT

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

★ STARS

19.0k

⑂ FORKS

2.5k

OPEN PROJECT→
// AI & ML№ 008
t3-code

t3-code

TYPESCRIPT

Advanced AI coding assistant that enhances development workflow with intelligent code suggestions, automated debugging, and seamless integration.

★ STARS

11.1k

⑂ FORKS

2.1k

OPEN PROJECT→
// AI & ML№ 009
Emdash

Emdash

TYPESCRIPT

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

★ STARS

4.3k

⑂ FORKS

413

OPEN PROJECT→
// AI & ML№ 010
OmoiOS

OmoiOS

PYTHON

Spec-driven multi-agent orchestration — autonomous development workforce powered by Claude & OpenHands

★ STARS

62

⑂ FORKS

4

OPEN PROJECT→

// EDITOR'S TAKE

opencode is the closest terminal-native equivalent, with the same agentic loop and TUI but pointed at whichever model provider you choose rather than one vendor's. Aider is the more conservative option, using repo maps and tight Git integration to keep diffs small and reviewable, while OpenHands is what you want if the appeal of Codex is the sandboxed cloud agent that takes a task and comes back with a pull request.

// FREQUENTLY ASKED

What is the best open source Codex alternative?

opencode is the most popular open source Codex alternative by GitHub stars (190,000 stars). The other 9 options are ranked above.

Are these Codex alternatives self-hostable?

Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.

Are they free?

All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.

// PART OF THESE COLLECTIONS