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.
TL;DR
- 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 lets you BYOK ChatGPT to layer GPT-5.4 in for free.
- 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 does that locally on your machine instead of in OpenAI’s cloud, so your codebase never leaves your laptop, and the per-task cost is zero.
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 | DeepSeek V4 Pro, Kimi K2.6, MiniMax M2.7, GPT-5.4 (BYOK) | GPT-5.x family only |
| Subagents | 9 specialized | General agent only |
| Bring-your-own ChatGPT | Yes | You are already paying |
| Browser-use subagent | Built-in | Limited |
| Run on a private repo | No upload required | 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 do not want to upload your codebase. Freebuff is local-first.
- You want to pick the cheapest or fastest model per task.
/modelswitches mid-conversation. - You already have a ChatGPT subscription. Connect it and unlock GPT-5.4 inside Freebuff, free.
- You want subagents that specialize. Browser-use, code-reviewer, file-picker, thinker-gpt are all included.
Migrating from Codex CLI#
- 1Install:
npm install -g freebuff. - 2
cdinto the repo Codex was working on. - 3Run
freebuffand/connect-chatgptto layer GPT-5.4 in for deep thinking. - 4Hand 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.
See the install commandDoes Freebuff use GPT-5?+
/connect-chatgpt and Freebuff routes its deep-thinking subagent through GPT-5.4 on your account.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.