OpenAI Codex with Ollama
What changed
OpenAI Codex with Ollama January 15, 2026 Open models can be used with OpenAI’s Codex CLI through Ollama. Codex can read, modify, and execute code in your working directory using models such as gpt-oss:20b, gpt-oss:120b, or other open-weight alternatives. Get started Install Codex CLI: npm install -g @openai/codex Start Codex with the --oss flag: codex --oss By default, Codex will use the local gpt-oss:20b model.
Why it matters
A concrete addition to Practical AI: Tools, Models & Frameworks: it changes what's available to builders today rather than being general commentary.
How it compares
Related prior coverage to compare against:
- gpt-oss-120b & gpt-oss-20b Model Card
- gpt-oss-safeguard technical report
- Introducing Codex
Sources
- OpenAI Codex with Ollama (ollama-blog)primary