can i fork it?
✨ ai assistants

Codex costs $15/mo.
These cost $0.

23 free alternatives to Codex, checked for license, recent activity and real adoption. Each one tells you the catch, so you can switch with your eyes open.

⚡ Quick Verdict · 2027 Guide

The top-rated free, open-source replacement for Codex is OpenCode (MIT Open Source). Across this category, 10 self-hostable tools are available (including pi and OpenHands). Switching a 5-person team saves up to $900/year compared to Codex's $15/mo subscription.

The catch: It gives you one agent with tools rather than an orchestrator that splits a task across research, coding, browser and review workers.

See the 23 picks ↓

Codex vs Free Alternatives

Quick side-by-side comparison · $0/mo vs $15/mo

AlternativeTypeLicenseWhere It RunsStarsHead-to-Head
OpenCodeopen sourceMITLocal★ 225kCodex vs OpenCode →
Orcaopen sourceOpen SourceLocal★ 117.7kCodex vs Orca →
piopen sourceOpen SourceSelf-host★ 120.5kCodex vs pi →
OpenHandsopen sourceOpen SourceSelf-host★ 92.8kCodex vs OpenHands →
Clineopen sourceApache-2.0Local★ 71.4kCodex vs Cline →
Open Interpreteropen sourceOpen SourceSelf-host★ 68.8kCodex vs Open Interpreter →
T3 Codeopen sourceOpen SourceLocal★ 49.5kCodex vs T3 Code →
Gooseopen sourceApache-2.0Self-host★ 56.3kCodex vs Goose →
Aideropen sourceOpen Source—★ 50kCodex vs Aider →
Grok Buildopen sourceOpen SourceLocal★ 27.7kCodex vs Grok Build →
Kiloopen sourceOpen SourceLocal★ 27.9kCodex vs Kilo →
Qwen Codeopen sourceOpen SourceLocal★ 29kCodex vs Qwen Code →
Tabbyopen sourceApache-2.0Self-host★ 33.9kCodex vs Tabby →
Paseoopen sourceAGPL-3.0Self-host★ 23.3kCodex vs Paseo →
Orchestrator.incopen sourceOpen SourceSelf-host★ 14.2kCodex vs Orchestrator.inc →
Paradevopen sourceOpen SourceLocal★ 16kCodex vs Paradev →
Forgecodeopen sourceOpen SourceLocal★ 7.6kCodex vs Forgecode →
Emdashopen sourceOpen SourceLocal★ 6.2kCodex vs Emdash →
Synaraopen sourceOpen SourceLocal★ 2.2kCodex vs Synara →
Zeroopen sourceOpen SourceSelf-host★ 1.8kCodex vs Zero →
Jeanopen sourceOpen SourceSelf-host★ 1.4kCodex vs Jean →
Roomoteopen sourceOpen SourceSelf-host★ 328Codex vs Roomote →
Drayopen sourceOpen SourceLocal★ 126Codex vs Dray →

The picks

23 open source · ranked by fit

  1. 01

    OpenCode

    open sourceMITLocal
    225knov 2026

    Open source AI coding agent that works in your terminal, IDE, or desktop app, supporting 75+ LLM providers with no code storage.

    The catch vs Codex

    It gives you one agent with tools rather than an orchestrator that splits a task across research, coding, browser and review workers.

    Install, platforms & data +
    platforms
    desktopclione-click install
    install
    Install script, Homebrew or npm
    setup
    You bring and pay for provider API keys, one account per vendor
    engines
    Dozens of providers via AI SDK and Models.dev, including hosted APIs and local OpenAI-compatible or Ollama backends
    your data
    Source files stay in the working repo; credentials and session data live under the local OpenCode data directory
    checked
    2026-11-07
  2. 02

    Orca

    open sourceOpen SourceLocal
    117.7knov 2026

    Agent Development Environment that runs Claude Code, Codex, Gemini, and other CLI agents in parallel across isolated git worktrees, with terminals, browser, diff review, and git tools built in.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/stablyai/orca or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  3. 03

    pi

    open sourceOpen SourceSelf-host
    120.5knov 2026

    Terminal-based coding agent with a minimal core, 15+ LLM providers, tree-structured session history, and a TypeScript extension system for building your own workflows.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/earendil-works/pi or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  4. 04

    OpenHands

    open sourceOpen SourceSelf-host
    92.8knov 2026

    AI agent platform that runs autonomous coding agents to plan, write, and ship changes across codebases end-to-end, with support for any model and self-hosted deployment.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hostedclidocker to self-host
    install
    Clone https://github.com/openhands/openhands or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  5. 05

    Cline

    open sourceApache-2.0Local
    71.4knov 2026

    AI coding agent that runs inside VS Code and the terminal, supporting multi-file edits, bash execution, and any LLM provider via bring-your-own-key.

    The catch vs Codex

    No worker-agent delegation and no browser verification step, so long multi-stage tasks stay a manual relay.

    Install, platforms & data +
    platforms
    desktopcliextensionone-click install
    install
    VS Code or JetBrains extension, or npm-installed CLI
    setup
    Sign in for Cline inference or bring your own key
    engines
    Anthropic, OpenAI, Google, OpenRouter, Bedrock, Azure, Vertex, Groq, Ollama, LM Studio and OpenAI-compatible endpoints
    your data
    Code stays in the repo and task history is stored locally; prompts and context go to the chosen provider
    checked
    2026-11-07
  6. 06

    Open Interpreter

    open sourceOpen SourceSelf-host
    68.8knov 2026

    Coding agent that lets LLMs write and execute code, manage files, and control your computer using local or low-cost models.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/openinterpreter/openinterpreter or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  7. 07

    T3 Code

    open sourceOpen SourceLocal
    49.5knov 2026

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

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/pingdotgg/t3code or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  8. 08

    Goose

    open sourceApache-2.0Self-host
    56.3knov 2026

    Local AI agent with a desktop app, CLI, and API that connects to 15+ LLM providers and 70+ extensions for code, research, automation, and data tasks.

    The catch vs Codex

    Sub-recipes cover some delegation but there is no benchmark-tuned orchestration layer or clustered review output.

    Install, platforms & data +
    platforms
    desktopclione-click install
    install
    Desktop installer or curl-installed CLI
    setup
    A provider key, subscription or local model must be connected before anything runs
    engines
    Anthropic, OpenAI, Google, Ollama, OpenRouter, Azure, Bedrock and other providers
    your data
    Files stay local; sessions and config live in Goose application data
    checked
    2026-11-07
  9. 09

    Aider

    open sourceOpen Source
    50knov 2026

    Terminal-based AI coding tool that lets you edit existing codebases or start new projects using LLMs like Claude, GPT, and DeepSeek.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    clione-click install
    install
    Clone https://github.com/aider-ai/aider or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  10. 10

    Grok Build

    open sourceOpen SourceLocal
    27.7knov 2026

    Terminal-based coding agent powered by Grok 4.5 that plans, builds, tests, and deploys across any codebase with parallel subagents and plugin support.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/xai-org/grok-build or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  11. 11

    Kilo

    open sourceOpen SourceLocal
    27.9knov 2026

    Open source AI coding agent with 500+ models, bring-your-own-key support, and specialized modes for writing, debugging, and planning code across IDEs and CLI.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/kilo-org/kilocode or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  12. 12

    Qwen Code

    open sourceOpen SourceLocal
    29knov 2026

    Terminal-based AI coding agent that reads your codebase, edits files and runs commands, with support for Qwen, OpenAI, Anthropic, Gemini and local models.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/QwenLM/qwen-code or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  13. 13

    Tabby

    open sourceApache-2.0Self-host
    33.9knov 2026

    Self-hosted AI coding assistant that enhances productivity with context-aware suggestions and privacy-focused implementation.

    The catch vs Codex

    Completion quality and latency depend on the chosen model and hardware, and the GitHub and editor experience is less turnkey than Copilot.

    Install, platforms & data +
    platforms
    self-hostedextensiondocker to self-host
    install
    Run the server from Docker or a standalone binary, then connect an editor extension
    setup
    Download and size suitable models, provide enough GPU or RAM, start the server, and configure each editor client
    engines
    Local llama.cpp-backed completion, chat and embedding models or separately configured remote HTTP model endpoints
    your data
    Models, configuration, logs, indexed source and Tabby's database live under TABBY_ROOT, which defaults to the user's .tabby directory
    checked
    2026-11-07
  14. 14

    Paseo

    open sourceAGPL-3.0Self-host
    23.3knov 2026

    Self-hosted orchestrator for coding agents like Claude Code, Codex, and Cursor, controlled from phone, desktop, web, or CLI.

    The catch vs Codex

    Paseo supports more terminal agents, but its daemon-and-client interface lacks Aight’s polished Apple-native voice, group-chat, gateway-health, and token-cost experience.

    Install, platforms & data +
    platforms
    desktopmobilewebself-hostedclione-click install
    install
    Install the desktop app or CLI; its local daemon supervises installed agents, while optional remote clients pair to that host
    setup
    Requires supported agent CLIs to be installed and authenticated; remote control also requires pairing and an online host daemon
    engines
    Native support for Claude Code, Codex, OpenCode, and Pi, plus a larger catalog including Gemini CLI, GitHub Copilot, Cursor, Amp, Aider, and custom ACP agents
    your data
    Repositories and agent processes remain on the host computer; clients communicate with a local daemon and, for remote access, an optional relay that can be self-hosted
    checked
    2026-11-07
  15. 15

    Orchestrator.inc

    open sourceOpen SourceSelf-host
    14.2knov 2026

    Manages multiple AI coding agents in parallel, tracking branches, CI results, and review comments so you can merge work without babysitting each session.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/OrchestratorInc/agent-orchestrator or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  16. 16

    Paradev

    open sourceOpen SourceLocal
    16knov 2026

    Desktop app for macOS and Linux that orchestrates multiple AI coding agents simultaneously, each in its own isolated Git worktree, so you can work on many tasks at once.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/ParadevAI/Paradev or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  17. 17

    Forgecode

    open sourceOpen SourceLocal
    7.6knov 2026

    AI coding harness that runs inside your terminal, mixes LLMs per task, and uses multi-agent architecture to handle large codebases without bloating context.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/tailcallhq/forgecode or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  18. 18

    Emdash

    open sourceOpen SourceLocal
    6.2knov 2026

    Desktop app that runs 25+ coding agents simultaneously, each isolated in its own Git worktree, so you can orchestrate code changes without switching tools.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/generalaction/emdash or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  19. 19

    Synara

    open sourceOpen SourceLocal
    2.2knov 2026

    Desktop coding workspace that connects to AI subscriptions you already have, with parallel agents, worktrees, one-click PRs, and multi-project management.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/Emanuele-web04/synara or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07
  20. 20

    Zero

    open sourceOpen SourceSelf-host
    1.8knov 2026

    Open-source AI coding agent for the terminal that works with 25+ model providers, keeps sessions on your disk, and ships as a single Go binary with no telemetry.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/Gitlawb/zero or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  21. 21

    Jean

    open sourceOpen SourceSelf-host
    1.4knov 2026

    Run multiple AI coding agents in isolated Git worktrees, with cross-repo context, GitHub/Linear integrations, and support for Claude, Codex, Cursor, and more.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/coollabsio/jean or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  22. 22

    Roomote

    open sourceOpen SourceSelf-host
    328nov 2026

    Source-available, self-hosted AI coding agent that connects to your repo, tools, and chat to investigate issues and open reviewable PRs on your own infrastructure.

    The catch vs Codex

    Requires self-hosting setup, updates, and server maintenance compared to managed Codex.

    Install, platforms & data +
    platforms
    webself-hosteddocker to self-host
    install
    Clone https://github.com/RooCodeInc/Roomote or deploy with Docker Compose
    setup
    Deploy via Docker or binary release from GitHub and configure environment variables.
    your data
    All application data and configuration live on your own server or local database.
    checked
    2026-11-07
  23. 23

    Dray

    open sourceOpen SourceLocal
    126nov 2026

    A Mac app that brings multiple AI coding agents into a single window, running on your existing subscriptions with parallel agent sessions, PR management, and a built-in browser.

    The catch vs Codex

    Community-driven open source project without dedicated enterprise SLAs.

    Install, platforms & data +
    platforms
    desktopcross-platformone-click install
    install
    Clone https://github.com/monorepo-labs/dray or deploy with Docker Compose
    setup
    Download the native package or installer for your operating system.
    your data
    All application data lives locally on your own machine.
    checked
    2026-11-07

Codex Head-to-Head Comparisons (2027)

Side-by-side trade-off breakdowns · 23 free alternatives

Frequently Asked Questions

Direct answers · Codex open-source replacements

What is the best free alternative to Codex?+

The top free alternative to Codex is OpenCode (open source, MIT). Open source AI coding agent that works in your terminal, IDE, or desktop app, supporting 75+ LLM providers with no code storage. Other popular Codex replacements include Orca, pi, OpenHands.

Can I self-host a free replacement for Codex?+

Yes. Of the 23 free alternatives to Codex, 10 can be self-hosted on your own server or local machine: pi (Open Source), OpenHands (Open Source), Open Interpreter (Open Source), Goose (Apache-2.0), Tabby (Apache-2.0), Paseo (AGPL-3.0), Orchestrator.inc (Open Source), Zero (Open Source), Jean (Open Source), Roomote (Open Source).

How much does switching from Codex to a free alternative save?+

Codex starts at $15/month per seat ($180/year). Switching a 5-person team to a free alternative like OpenCode saves $900 per year in software subscription fees.

Should I vibe-code or build my own Codex clone from scratch?+

Our build verdict for Codex is NO (use a free alternative, save the tokens). Instead of paying recurring SaaS fees for Codex or rebuilding it from scratch, deploy one of the 23 battle-tested open-source alternatives like OpenCode.

What is the catch when switching from Codex to OpenCode?+

It gives you one agent with tools rather than an orchestrator that splits a task across research, coding, browser and review workers.