
codex
Lightweight coding agent that runs in your terminal
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated Sep 2026
Codex CLI is OpenAI's coding agent for the terminal. Point it at a repo and it reads files, writes code, and runs commands while you approve each step or let it run. The client is Rust, Apache 2.0, and free to install with a single command.
There is nothing to host. The sandboxing is real rather than decorative: Seatbelt on macOS, bubblewrap on Linux and WSL2, with an approval mode that asks before the agent reaches the internet. The escape hatch is the part worth knowing about. Run `codex --oss` and it drives Ollama or LM Studio on your own machine, and the provider config accepts any OpenAI-compatible base URL.
Anyone already paying for ChatGPT gets this at no extra cost. Teams weighing it against Copilot or Cursor should know it does no inline completion. It is a terminal agent plus an IDE extension, not an autocomplete engine.
The catch is what Apache 2.0 actually covers. The license is on the wrapper, not the model. Out of the box Codex wants a paid ChatGPT plan, $20 a month for Plus at the low end, or an API key billed per token. The local model route is the only free one, and it does not perform the same.
Free vs Self-Hosted vs Paid
fully freeFree tier
The CLI is Apache 2.0 and free to install. Running it against local models costs nothing: codex --oss targets Ollama or LM Studio on your own hardware, and the model_providers config accepts any OpenAI-compatible base URL. Output quality is whatever the local model gives you.
Self-hosted There is no server to run, so self-hosting here means supplying your own inference. A local runtime or any third-party OpenAI-compatible endpoint works.
Paid The default path is a paid ChatGPT plan. OpenAI lists Plus, Pro, Business, Edu, and Enterprise as the plans that include Codex; ChatGPT Free is not on that list. Plus is $20/mo. The alternative is an OpenAI API key billed at standard per-token API rates through your OpenAI Platform account, which covers local workflows but leaves some workspace and cloud features unavailable.
Free, open source client. The bill is a paid ChatGPT plan starting at $20/mo for Plus, or per-token API rates. Local models via `--oss` are the only zero-cost path.
What to do by team size
- Solo
- free with a local model, otherwise the $20/mo ChatGPT Plus you likely already pay for
- Small team
- Paid ChatGPT seats, or run it against an existing API key budget
- Medium team
- Paid seats plus managed hook policy so agent config stays consistent
- Large team
- Business or Enterprise ChatGPT seats for admin controls and workspace policy
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools

The open source coding agent.

An open-source AI coding agent that lives in your terminal.

⌥ AI Coding agent for the terminal: hash-anchored edits, optimized tool harness, LSP, Python, browser, subagents, and more

Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.

DeepSeek + MiMo coding agent in terminal

The free coding agent
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: Apache License 2.0
Use freely. Patent grant included.
Commercial use: ✓ Yes
About
- Owner
- OpenAI (Organization)
- Backed by
- Microsoft
- Stars
- 122,947
- Forks
- 18,916
Also by OpenAI
Lean certificates accompanying Navier-Stokes and Euler results
Conditional Lean formalization and numerical certificate for prime gaps at most 186.
Lean certificates accompanying ten proofs in mathematics and theoretical computer science
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
389.3k ★everything-claude-code
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
255.4k ★hermes-agent
The agent that grows with you
244.0k ★