Guides

Free Codex Alternatives: Open-Source & Paid Coding Agents Compared (2026)

The main free Codex alternatives are the open-source opencode (MIT), Aider (Apache-2.0) and Cline (Apache-2.0) with a free or local model via Ollama, alongside $0 hosted tiers from Google Antigravity, Google's Jules (15 tasks a day) and GitHub Copilot Free. For paid upgrades or multi-provider work, compare Claude Code, Cursor, Devin and Folsom—which runs OpenAI models on your existing ChatGPT plan and keeps going on your other connected accounts or Folsom credits when one hits its limit.

Folsom runs in the Mac app and on the web.

  1. 1
    Open FolsomSign in on the web, or in the Mac app.
  2. 2
    Settings › ModelsConnect the plans you already pay for.
  3. 3
    In the composerGive Folsom the branch and what's next.

Eight agents. Keep the one that fits.

Loved by 20,000+ engineers at

  • Databricks
  • Zoom
  • Docker
  • Framer
  • ByteDance
  • PlanetScale
Folsom’s Agents view: sessions in the sidebar, a finished session in the middle, and its progress on the right
Folsom’s Agents view, with sample data.
Try Folsom on your code

Codex alternatives compared: price, plans and background runs

ToolWhat it isPricing (official)Subscriptions or keys it can useRuns in background
CodexOpenAI's coding agent: CLI, IDE extension, desktop and web app, Codex cloudLimited in ChatGPT Free and Go ($8); Plus $20; Pro $100, $200 or $500 a monthChatGPT plan sign-in, or an OpenAI API key (no cloud features)Yes: Codex cloud, on Plus and higher plans
Claude CodeAnthropic's coding agent for the terminal, IDE, desktop and webPro $20 a month ($17 billed annually); Max $100; Ultra $200Claude Pro, Max or Ultra sign-in, or an Anthropic API keyYes: cloud sessions keep running after you close your laptop (paid plans, claude.ai sign-in)
CursorAI code editor with Cloud Agents and a CLIFree; Plus $8 (Grok models only); Premium $30; Super $100; Ultra $200 a monthA Cursor or X Subscription plan; your own OpenAI, Anthropic, Google, Azure or Bedrock key for chat modelsYes: Cloud Agents, on Premium and higher
GitHub CopilotGitHub's coding assistant: IDE, Copilot CLI, Copilot app and Copilot in the cloudFree; Pro $10; Copilot Pro+ $39; Max $100 a month; Business $19 per seatA Copilot plan, billed in AI credits; Copilot CLI also takes your own provider keysYes: Copilot in the cloud; sessions on GitHub Actions run at most 59 minutes
DevinCognition's AI software engineer: Devin Desktop and Devin CloudFree; Pro $20; Max $200 a month; Teams $80 a month for up to 100 usersA Devin plan; Pro, Max and Teams also list using your ChatGPT planYes: Devin Cloud, on Pro and higher
JulesGoogle's experimental coding agent for GitHub repositories15 tasks a day free; 100 with Google AI Pro; 300 with Google AI UltraA Google account; Google AI Pro or Ultra for more tasksYes: runs in a virtual machine, so you can move on while it works
opencodeOpen-source (MIT) coding agent: a terminal interface and desktop, mobile and web appsFree; optional OpenCode Go $10 or Go Plus $40 a monthChatGPT Plus or Pro or GitHub Copilot sign-in, OpenCode Go, or your own keys for 200+ providersNo hosted runner documented; runs on your computer
AiderOpen-source (Apache-2.0) AI pair programmer in your terminalFree; you pay your model providerAPI keys for OpenAI, Anthropic, Gemini, xAI, DeepSeek, OpenRouter and others, local models, or a GitHub Copilot tokenNo: runs on your computer
FolsomAlways-on teammate and coding agent: its own cloud computer per Session, memory, Loops and SlackPro $50 and Max $200 a month; no free planChatGPT, Claude, SuperGrok or X Premium+ and GitHub Copilot sign-ins, or your own API keysYes: Sessions run on Folsom's cloud computers with your laptop closed

Prices and plans from each vendor's official pricing page or docs, checked Nov 20, 2026; US list prices. Sources are listed at the end of the page.

Free Codex alternatives

A coding agent can be free in two ways: open-source software where you bring a local model or pay per token, or a hosted $0 tier with weekly, daily or monthly caps (checked Nov 22, 2026).

ToolFree tier or licenseModels on the $0 routeLimits and catchesSource
opencodeFree open source (MIT)Local models via Ollama, LM Studio or vLLM; free models in OpenCode; BYOK for 200+ providersHosted API providers bill per token; optional OpenCode Go starts at $10/monthopencode.ai · github.com/anomalyco/opencode
AiderFree open source (Apache-2.0)Local models via Ollama or llama.cpp, or your own API keysTerminal only; hosted API keys bill per tokenaider.chat · github.com/Aider-AI/aider
ClineFree open source (Apache-2.0; JetBrains plugin excepted)Local models via Ollama or LM Studio, or your own API keysHosted model inference bills per tokencline.bot · github.com/cline/cline
Google Antigravity$0 individual planGemini models (pricing page also lists Claude models)Basic weekly rate limits; no BYOKantigravity.google/pricing
Google Jules$0 tier (15 tasks a day)Gemini models in Google's cloud VMExperimental; 15 tasks/day cap unless on Google AI Pro or Ultrajules.google/docs/usage-limits
GitHub Copilot Free$0 tierAuto model selection only2,000 completions and a limited AI credits allowance per monthdocs.github.com/en/copilot/get-started/plans
Cursor Free$0 tierCursor's free-tier selectionLimited agent and chat requests per monthcursor.com/pricing
Devin Free$0 tierLimited model availabilityLight trial quota; full models and Devin Cloud start on Pro ($20/mo)devin.ai/pricing

Codex itself also has a $0 entry route: ChatGPT Free includes limited Codex access with GPT-6 Luna in the ChatGPT desktop app (subject to rollout, without Codex Cloud), and Codex CLI is Apache-2.0 and runs local models with codex --oss and Ollama.

Try a Codex alternative on a real task in Folsom

  1. Open Folsom on the web or the Mac app

    Sign in at reasonmachines.com, or download the Folsom app for macOS from reasonmachines.com/download. Both open the same Sessions. Sending work to Folsom needs a Pro or Max plan.

  2. Connect the plans you already pay for

    In Settings › Models, connect subscriptions such as Claude (Pro or Max), ChatGPT (Plus, Pro or Business), Grok (SuperGrok or X Premium+) or GitHub Copilot, or add API keys. Choose a connected model or account in the composer to use it. Automatic routing starts with Folsom; subscriptions are not always used before API keys.

  3. Give it a task you know the answer to

    In the composer, name the repository and paste a task you've already solved, such as a failing test. Folsom works on its own cloud computer, runs the tests and opens a pull request, so you can compare its diff with your other agent's.

  4. Switch the model and compare

    Start a second Session on the same branch with a model from another provider, and ask it to review the first diff. Each Session shows the model and account it ran on.

Codex alternatives at a glance

Made byOpen sourceWhere it runsPrice
Claude CodeAnthropicNot open sourceTerminal, IDE, desktop, web; cloud sessions keep running with the laptop closedClaude Pro $20, Max $100, Ultra $200 a month
CursorAnysphereNot open sourceAI code editor; Cloud Agents run in cloud VMs, from the editor, web, iOS or SlackFree; Plus $8 (Grok models only); Premium $30; Super $100; Ultra $200 a month
DevinCognitionNot open sourceCloud workspace with shell, IDE and browser; CLI, desktop; Slack and TeamsFree; Pro $20; Max $200 a month; Teams $80 a month for up to 100 users
GitHub Copilot in the cloud (older: Copilot cloud agent)GitHubNot statedWorks in the background in a cloud environment; sessions on Actions run at most 59 minutesCopilot paid plans from $10 to $100 a month; Business $19 per seat
JulesGoogleNot statedExperimental; runs tasks in a virtual machine15 tasks a day free; more with Google AI Pro and Ultra
opencodeThe opencode projectMITTerminal, desktop and mobile apps; 200+ providers and local modelsFree; optional OpenCode Go from $10 a month
AiderAider-AI (GitHub)Apache-2.0Pair programming in your terminal; almost any LLM, local ones includedFree; you pay your model provider
FolsomFolsom AINot open sourceWeb, Mac and iOS apps, Slack, command line; its own cloud computer per Session, or yoursPro $50, Max $200 a month; credits

From each vendor's own pages, checked Nov 20, 2026; prices are US list prices. For reference, Codex itself is included in ChatGPT Free and Go, Plus is $20 a month, and its CLI is open source under Apache-2.0.

Which alternative for which reason

A higher index score than Codex: Claude Code. On Artificial Analysis's Coding Agent Index v2.1 (November 2026: FrontierCode-AA 2.0, Terminal-Bench 4.1 and SWE-Atlas-QnA-AA), Claude Code on Fable 5.2 scores 58, Codex on GPT-6.2 Astra 53 and Grok Build on Grok 4.7 42, as listed on its comparison pages, checked Nov 20, 2026. Scores measure a harness and model together; try the same task in each on your own repository.

An editor instead of a terminal: Cursor. A teammate you tag in Slack that works in its own cloud workspace: Devin, or Folsom. Already pay for GitHub: Copilot in the cloud. Free and open source with any model, local ones included: opencode or Aider.

Related alternatives

For more options by editor workflow, compare free Cursor alternatives.

To see open-source tools for autonomous software work, read about an open source Devin alternative.

What people on Reddit say

Two Reddit threads on the same question, read in full:

In a small r/GithubCopilot thread from June 2026 (18 replies) asking which assistant developers actually use, the top reply likes both Claude Code and Codex, several say they moved to Codex for its limits, a few call Cursor the default answer, and several use Copilot because it's the tool their employer approves. Others mention opencode with DeepSeek and Antigravity for lower cost.

In an r/LocalLLaMA thread from April 2026 (over 150 replies) asking for a Claude Code-style agent for local models, many replies recommend opencode as the most plug-and-play option, several prefer pi for its small system prompt on consumer hardware, and others suggest Cline, Kilo Code or Roo Code in VS Code. A few point out that Claude Code itself can talk to a local model once its base URL is set.

Folsom: all your AI subscriptions in one coding agent

Use the subscriptions you already pay for (ChatGPT, Claude, SuperGrok/X Premium+, Copilot) or your own API keys in one coding agent. Hit your limit and Folsom keeps going on your other connected accounts or Folsom credits.

Folsom is an always-on teammate that is also a coding agent: its own cloud computer per Session, memory across Sessions, Loops and Slack, with the model picked per task. Work that runs on your own subscription or API key is billed by that provider and keeps its limits; Folsom's plans are Pro at $50 and Max at $200 a month, with no free plan, and it isn't open source.

On cost: in Folsom's published benchmark on GPT-6 Astra at xhigh effort, with the same tasks and graders, Folsom 1.1 scored 65.1 against Codex's 62.5 on Coding Agent Index v1.5, at 22% lower cost per solved task. That's Folsom's own reproduction on GPT-6 Astra, not endorsed by Artificial Analysis, with the runner published to reproduce it.

Sources (checked Nov 20, 2026; Reddit threads checked Nov 5, 2026)

Questions

What is the best alternative to Codex?

For a higher score on a public index, Claude Code: on Artificial Analysis's Coding Agent Index v2.1 it scores 58 on Fable 5.2 against Codex's 53 on GPT-6.2 Astra. For an editor, Cursor; for a free open-source tool, opencode or Aider.

Is there a free open-source Codex alternative?

Yes. opencode (MIT), Aider (Apache-2.0) and Cline (Apache-2.0) are free and work with almost any model provider or a local model via Ollama. For hosted $0 tiers without running models locally, Google Antigravity, Google Jules (15 tasks a day) and GitHub Copilot Free each include limited usage.

Is Claude Code better than Codex?

On Artificial Analysis's Coding Agent Index v2.1, Claude Code on Fable 5.2 scores 58 and Codex on GPT-6.2 Astra 53, and the two tie on its Terminal-Bench 4.1 part at 64. Codex is cheaper to start, since ChatGPT Free and Go include it.

Can I keep using my ChatGPT plan in another agent?

In Folsom, yes: Settings › Models has Sign in with ChatGPT for Plus, Pro and Business plans. opencode also supports ChatGPT Plus. That plan's own limits still apply.

What happens when an agent hits its usage limit?

Claude Code, Codex and Cursor stop or offer paid usage at their plan's limits. Hit your limit? Folsom keeps going on your other connected accounts or Folsom credits.

Is Folsom affiliated with these vendors?

No. Folsom is built by Folsom AI and is not affiliated with or endorsed by Anthropic, OpenAI, Anysphere, Cognition, GitHub, Google or SpaceXSI (xAI). Facts about their products come from their own pages, linked under Sources.

Is Codex free?

Partly. ChatGPT Free and Go ($8 a month) include limited Codex in the desktop app; the CLI, IDE extension, web and iOS start with Plus at $20.

How much does Codex cost?

It comes with ChatGPT: Plus $20 a month, Pro $100, $200 or $500, and Business $20 per user billed annually ($25 monthly) for a Standard seat or $100 ($125 monthly) for a Premium seat. With an API key you pay per token, without the cloud features.

Can I use Codex with my Copilot plan?

Yes, on GitHub: the OpenAI Codex coding agent runs on a Copilot subscription (public preview), and the Codex extension for VS Code has Sign in with Copilot on Copilot Pro+ and Max.

More guides