Free | No tracking | Every fact with a source|German and English

OpenAI Codex

Programming agent from OpenAI: as a command line, editor extension, Codex mode in the ChatGPT app, and cloud agent — the command line can officially also use local models.

Provider
OpenAI
Seats
USA
Free to use
yes, with limits
Apps
Browser, Windows, macOS, iPhone, Android
Training with your code
yes by default

What is OpenAI Codex?

Codex is available in several places: in Codex mode in the ChatGPT desktop app, as Codex CLI for the command line, as an editor extension, and as Codex Cloud. Locally, the agent works in the project folder, changes files, and runs commands in an isolated environment (sandbox) — on Windows directly in PowerShell.

In the cloud, each task gets its own workspace with your GitHub project; after that, you can open a pull request. You need a ChatGPT account for that.

The Codex CLI is open source (Apache 2.0) and can use local models with the --oss switch via Ollama or LM Studio.

Models: GPT-6.1 Sol (for difficult tasks), GPT-6 Luna, GPT-6 Astra; in Free and Go only GPT-6 Luna. Local: gpt-oss via --oss.

What can OpenAI Codex do?

In the editor (VS Code, JetBrains …)yes (VS Code and derivatives, Xcode, JetBrains)
In the command lineyes (Codex CLI, open source)
Own app / own windowyes (Codex mode in the ChatGPT desktop app)
Agent (changes multiple files, runs commands)yes (edit files, run commands in sandbox, approval levels)
Keep working in the cloud (pull requests)yes (Codex Cloud, pull requests; ChatGPT account required)
Models from other providers selectableOpenAI models only (own providers possible through configuration)
Local models can be connected (e.g. Ollama)yes (officially: codex --oss with Ollama or LM Studio)

What does OpenAI Codex cost?

Free: In ChatGPT Free and Go, Codex with GPT-6 Luna can be used in a limited way in the desktop app; OpenAI does not state exact limits. The Codex CLI with local models costs nothing.

LevelPriceWhat else is included
ChatGPT Go 8 € / MonthPrice for Germany according to the ChatGPT pricing page (10/26/2026) only GPT-6 Luna, limits not specified
ChatGPT Plus 23 € / MonthPrice for Germany according to the ChatGPT pricing page stronger models, limits every 5 hours (ranges according to docs), extra credit can be bought
ChatGPT Pro from €103 / MonthPrice for Germany according to the ChatGPT pricing page; three tiers no 5-hour limit, longer Codex sessions
API key as used / per tokenAPI prices no subscription limits; without cloud features

As of Oct 26, 2026. Prices change often – the provider's pricing page is what matters.

Privacy: Where does your data go?

Training with your codeBusiness and Enterprise: no training by default. Personal accounts: training according to the ChatGPT pricing page is on by default, can be turned off (exact rules for Codex not confirmed; OpenAI's help pages were blocked for our review).
How to turn it offLike in ChatGPT, turn off model improvement in Settings under "Data controls" (not rechecked). With local models (--oss), your code does not leave your PC.
Where the data is processednot confirmed (US provider); data residency only for business customers
How long it is storednot confirmed for personal accounts
Minimum agenot confirmed

For personal or business data, the rule is: if you wouldn’t write it in an email to strangers, it doesn’t belong in a cloud chat either. More at Privacy with local AI.

Examples: how to use OpenAI Codex

Have a script written

Write a PowerShell script that moves all photos from the Downloads folder into subfolders Year\Month based on the date taken. Test first, then run it.

Codex asks before running things — read the commands before you agree.

Add tests

Add tests for the file preise.py and run them. Fix any errors that come up.

For real projects, make a Git backup first.

Local without cloud

codex --oss "Explain the structure of this project to me"

With --oss, everything runs through Ollama on your PC (default: gpt-oss:20b, needs about 16 GB).

Strengths and weaknesses

Strengths

  • Local models officially supported (--oss with Ollama or LM Studio)
  • command line is open source
  • Runs on Windows directly in a sandbox
  • Included in the ChatGPT subscription

Weaknesses

  • Many interfaces and frequent model changes
  • Limits only given as rough ranges
  • Privacy rules for personal accounts are hard to verify
  • Cloud features only with a ChatGPT account

Our assessment: For you if you already use ChatGPT or want to use the same command line to control local models too.

This also works locally

Codex is the only major programming agent that officially supports local models: codex --oss uses Ollama or LM Studio, default gpt-oss:20b (16 GB VRAM). With 24 GB, qwen3-coder:30b is worth it.

gpt-oss-20bQwen3.6 35B-A3B (MoE)

What runs on my graphics card?

Sources

Checked on Oct 26, 2026. Found an error? Write to us in the Forum.