Alternatives / OpenAI Codex
Open-source alternatives to OpenAI Codex
11 alternatives are compared by license, workflow, self-hosting, pricing, and fit for different use cases.
Written by Maxime DERAME
Last updated:

Why look for a OpenAI Codex alternative?
OpenAI Codex is an AI coding agent that understands repositories, edits files, executes commands, runs tests, and completes multi-step software development tasks. People look for alternatives when they want open-source software, multiple model providers, local execution, self-hosting, local session storage, parallel agents, or more control over agent permissions and automation.
Compare OpenAI Codex alternatives
| Tool | Stars | License | Self-hosted | Pricing |
|---|---|---|---|---|
| OpenCode | 211.6K | MIT | Yes | Open source and free to run; model-provider costs may apply. |
| Pi | 111.9K | MIT | Yes | Open source; model-provider costs may apply. |
| Zed | 91.2K | GPL-3.0-or-later / Apache-2.0 components | Yes | Open source editor; hosted AI usage may be paid. |
| OpenHands | 89.8K | MIT core | Yes | Open-source core and self-hosting available; hosted and enterprise options may be paid. |
| Cline | 69.8K | Apache-2.0 | Yes | Open source; bring your own provider key and pay provider costs directly. |
| Aider | 49.3K | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| Tabby | 33.9K | Apache-2.0 | Yes | Free and self-hosted; infrastructure and model costs are your responsibility. |
| Kilo | 27.5K | MIT | Yes | Open source with bring-your-own-key support; some workflows may use hosted services. |
| Forgecode | 7.6K | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| Paseo | — | AGPL-3.0 | Yes | Open source and self-hosted; requires external coding agents. |
| Jean | — | Apache-2.0 | Yes | Open source workspace; depends on external agents or subscriptions. |
Which one should you choose?
Want a direct open-source coding agent
OpenCode provides terminal, desktop, and IDE workflows with multiple providers, local models, LSP integration, and parallel sessions.
Want a lightweight extensible terminal agent
Pi keeps a small MIT-licensed core that can be extended with TypeScript tools, prompts, commands, and workflows.
Want autonomous software engineering
OpenHands is designed for larger tasks involving repository inspection, implementation, command execution, testing, and reviewable changes.
Want AI inside a complete editor
Zed combines a native editor with AI, debugging, Git, collaboration, remote development, and multiple providers.
Want a terminal-first Git workflow
Aider focuses on repository-aware pair programming, multi-file edits, tests, linting, and Git commits.
Want to run several agents in parallel
Paseo orchestrates agents such as Codex, Claude Code, Cursor, OpenCode, and Pi across desktop, web, mobile, and CLI interfaces.
Want self-hosted coding assistance
Tabby runs on infrastructure you control and focuses on private code completion and repository-aware assistance.










