The free alternative to OpenAI Codex (and the Codex CLI)
A free CLI coding agent that runs your code, edits your repo, and ships PRs.
In short
- Freebuff is the free alternative to OpenAI Codex and the Codex CLI.
- Codex requires ChatGPT Plus ($20/mo) or higher to run the cloud agent.
- Freebuff runs locally, ships with 9 subagents, and has a model picker with MiMo 2.6 Flash (the default), GLM 5.3 Flash, DeepSeek V4.1 Flash, GPT-6 Luna, and more. Freebuff Desktop can also run Codex on your own ChatGPT subscription.
- Same shape: read repo, plan, edit, run, verify, PR.
OpenAI Codex is brilliant. It is also gated behind a ChatGPT Plus subscription, with cloud-only execution and limited control over which model handles each turn. Freebuff is the same loop, free, local, and model-agnostic.
What "free version of Codex" actually looks like
Codex (the cloud agent and the Codex CLI) is OpenAI’s answer to autonomous coding: hand it a repo and a task, and it plans, edits, runs the test suite, and opens a PR. Freebuff runs commands and edits files locally on your machine, and the per-task cost is zero. Freebuff edits files locally but sends relevant prompts, code, files, and repository context to its servers and model providers. See the Privacy Policy for details.
Feature-by-feature: Freebuff vs Codex
| Feature | Freebuff | OpenAI Codex |
|---|---|---|
| Price | Free | ChatGPT Plus ($20+/mo) required |
| Execution location | Local — your machine, your filesystem | OpenAI cloud sandbox |
| Model choice | MiMo 2.6 Flash (default), GLM 5.3 Flash, DeepSeek V4.1 Flash, GPT-6 Luna, and more; Codex harness in Desktop with your own ChatGPT subscription | GPT-5.x family only |
| Subagents | 9 specialized | General agent only |
| Use your ChatGPT subscription | Yes, as the Codex harness in Freebuff Desktop | You are already paying |
| Browser-use subagent | Built-in | Limited |
| Run on a private repo | Edits run locally, but relevant prompts, code, files, and repository context are sent to Freebuff and model providers. | Cloud sandbox uploads |
When Codex is still the better pick
- You want pure cloud execution. Codex spins up sandboxes; nothing to install. Freebuff runs locally.
- You want OpenAI’s exact agent loop and prompt taste. Freebuff has its own opinions.
When Freebuff is the better pick
- You want work to run locally. Freebuff edits files locally but sends relevant prompts, code, files, and repository context to its servers and model providers. See the Privacy Policy for details.
- You want to pick the cheapest or fastest model per task.
/modelswitches mid-conversation. - You already have a ChatGPT subscription. Freebuff Desktop can run Codex on it, next to the free Freebuff harness.
- You want subagents that specialize. Browser-use, code-reviewer, file-picker, thinker-with-files-gemini are all included.
Migrating from Codex CLI
- Install:
npm install -g freebuff. cdinto the repo Codex was working on.- Hand it the same prompt you would give Codex. The shape of the loop is the same.
Get the free alternative to OpenAI Codex
No ChatGPT Plus required. Runs locally on your machine.
Questions
Do I need a ChatGPT subscription?
Will Freebuff open a PR for me like Codex?
/pr and the agent will create a branch, write a commit message, push, and open a pull request with a summary.