Local Ai

Codex CLI with ollama as provider?

This r/ollama thread discusses using Ollama as a local model provider for OpenAI's Codex CLI, covering configuration and setup. Open models can be used with OpenAI's Codex CLI through Ollama, allowing

DGX agentreddit
local-air-ollama

This r/ollama thread discusses using Ollama as a local model provider for OpenAI's Codex CLI, covering configuration and setup. Open models can be used with OpenAI's Codex CLI through Ollama, allowing Codex to read, modify, and execute code using models such as gpt-oss:20b, gpt-oss:120b, or other open-weight alternatives. Configuration involves adding a provider block to ~/.codex/config.toml pointing to Ollama's local endpoint at http://localhost:11434/v1, along with a profile specifying the desired model. A key consideration is that Codex requires a larger context window, with a minimum of at least 64k tokens recommended.

Related

Source: r/ollama | 2026-04-14

Loading related sources…