Is Codex free? What the free plans include, and how to run Codex on local models
Codex's free plans only include a small model in the desktop app. Full Codex starts at Plus, but the CLI can run local models for free with Ollama or LM Studio.


The short answer
Only a little of Codex is free. The Free and Go plans get GPT-6 Luna at Standard speed in the ChatGPT desktop app, as it rolls out. Codex in the CLI, the IDE extension, on the web and on iOS, with the stronger models, starts at Plus for $20 a month, or runs on an API key at API prices. To spend nothing, run the Codex CLI on a local model through Ollama or LM Studio.
| Option | What you pay | Good to know |
|---|---|---|
| ChatGPT Free or Go | $0 or $8 a month | GPT-6 Luna in the desktop app only |
| ChatGPT Plus or higher | From $20 a month | Full Codex, within the plan's usage limits |
| OpenAI API key | Per token | CLI, SDK and IDE extension, no cloud features |
Local model with --oss | Nothing but your own hardware | Ollama or LM Studio; use a 64k+ context; weaker than GPT-6.2 on most machines |
| Codex for Open Source | Free if accepted | For open-source maintainers: six months of ChatGPT Pro with Codex, and API credits |
Article · Codex pricing: what each ChatGPT plan includes, what an API key costs, and paying only for what you use → What each ChatGPT plan and an API key cost for Codex.
Run Codex on a local model
# Ollama's launcher sets up a Codex profile and starts it
ollama launch codex
# or use Codex's own local mode
codex --oss
codex --oss -m gpt-oss:120b
codex --oss --local-provider lmstudio--ossuses a local open-source provider: the one you pass with--local-provider, theoss_providerin your config, or, if neither is set, the CLI asks you to choose Ollama or LM Studio.codex execstops with an error instead of asking.- To make it the default, add
oss_provider = "ollama"(or"lmstudio") to Codex's config.toml. - Give the model at least a 64k context window. Inside Codex,
/modelswitches between your installed models that support tools. - Ollama's cloud models, such as
gpt-oss:120b-cloud, run larger models without downloading them.
Article · Codex config.toml: where it is, and the settings worth changing → Codex's config.toml: where it lives and the settings worth knowing.
Pick the model per session in Mira
Mira runs the Codex CLI itself, and its free plan includes the whole local workspace. Sessions on your own ChatGPT sign-in, API keys or local models use no Mira credit, and you choose the model for each session instead of editing config.toml.
- Local models: Mira detects Ollama (and mlx-lm on macOS), can start the backend and pull models, and adds it as a model provider.
- Other providers: add any OpenAI-compatible endpoint and key in Settings › Models, then set the session's “Paying with” to “API key”.
- Or use GPT-6.2 on Mira credit, charged per use: Astra Limited time: 90% off, Sol Limited time: 90% off off the official API price.
Chapter 16 · Models, accounts and quota › Local models → Local models in Mira: Ollama and mlx-lm.
Questions
- Is the Codex CLI free to install?
- Yes, installing it costs nothing. Using it needs a ChatGPT plan that includes it, an API key, or a local model with
--oss. - Does a local model use my ChatGPT limits?
- No. With
--ossthe model runs on your machine through Ollama or LM Studio. - Who can get Codex for Open Source?
- Core maintainers and people running widely used public projects; OpenAI also asks projects that play an important role but don't fit the criteria to apply and explain why.
Article · Is Claude Code free? What it costs, and how to run it for free or for less → The same question for Claude Code.
Article · Running Claude Code and Codex with Ollama: local models, 64k context, and setup → Full setup guide for running Claude Code and Codex with Ollama and local models.
Sources
Checked on November 27, 2026 against OpenAI's Codex documentation (learn.chatgpt.com/docs: Pricing, Command line options, Advanced Configuration), the Codex for Open Source page (developers.openai.com/community/codex-for-oss) and Ollama's Codex guide (docs.ollama.com/integrations/codex). Check those pages for current plans and flags.
Keep reading

Fixing OpenAI and Codex 403 “unsupported_country_region_territory”
Why OpenAI and Codex return 403 unsupported_country_region_territory, how to fix false positives on VPNs or cloud IPs, and compliant alternatives.

Running Claude Code and Codex on Amazon Bedrock, Vertex AI, and Microsoft Foundry
Connect Claude Code and Codex to Amazon Bedrock, Vertex AI, and Microsoft Foundry: env vars, config.toml, auth, model pinning, and limits.

Using Claude Code with Chrome and Codex Browser: live debugging, Playwright, and previews
How to connect Claude Code to Chrome (extension, console logs, login limits) and use Codex Browser or Playwright, plus live dev-server previews in Mira.