Alternatives / OpenAI Codex
Open-source alternatives to OpenAI Codex
11 genuinely open-source alternatives. The projects are compared by license, workflow, self-hosting, and pricing.
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 | — | MIT | Yes | Open source and free to run; model-provider costs may apply. |
| Pi | — | MIT | Yes | Open source; model-provider costs may apply. |
| OpenHands | — | MIT core | Yes | Open-source core and self-hosting available; hosted and enterprise options may be paid. |
| Zed | — | GPL-3.0-or-later / Apache-2.0 components | Yes | Open source editor; hosted AI usage may be paid. |
| Cline | — | Apache-2.0 | Yes | Open source; bring your own provider key and pay provider costs directly. |
| Aider | — | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| Kilo | — | MIT | Yes | Open source with bring-your-own-key support; some workflows may use hosted services. |
| Tabby | — | Apache-2.0 | Yes | Free and self-hosted; infrastructure and model costs are your responsibility. |
| Paseo | — | AGPL-3.0 | Yes | Open source and self-hosted; requires external coding agents. |
| Forgecode | — | Apache-2.0 | Yes | Open source; model-provider costs may apply. |
| 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.