In short.
Ollama's Codex CLI guide teaches developers to use Ollama models in a terminal coding assistant, but hardware requirements, costs and practical reliability are not established. It documents a quick launcher, manual model selection and persistent provider configuration using the Responses API format. The guide recommends at least 64k tokens of context and explains that Ollama handles web-search requests for both local and cloud models. Coding quality, performance and successful execution are not demonstrated.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete documentation page at [https://docs.ollama.com/integrations/codex.md]: its documentation-index notice, installation command, context recommendation, quick setup, model switching, configuration and removal commands, manual local and cloud examples, persistent profile configuration and web-search controls. The linked documentation index, Codex CLI page and ChatGPT Desktop page are excluded. Installation, model execution, switching, search, persistent configuration and removal behavior remain untested.
The overview
identity
The resource is Ollama's documentation page titled Codex CLI at [https://docs.ollama.com/integrations/codex.md]. It explains how to connect Codex CLI to Ollama through launch commands, model-selection flags and a persistent configuration file.
It is a setup guide rather than a downloadable assistant, model or software library. The page links to Codex CLI installation information and separate ChatGPT Desktop instructions.
assessment
The guide is useful for developers who already use, or intend to use, Ollama and want concrete connection instructions for Codex. Its practical strengths are the short launch command, explicit local and cloud examples, configuration controls and removal command.
It is insufficient for deciding which model will handle a particular coding workload or whether a computer can support the recommended context window. There are no measured results, hardware estimates or troubleshooting examples.
users
Developers comfortable entering terminal commands can use the quick-launch and manual examples. Beginners receive an installation command and starting commands, but the page does not explain how to install Ollama, configure npm or resolve installation failures.
Experienced developers get the provider endpoint, API format, model-catalog setting and persistent configuration path. The guide also supports developers who want to switch between installed models during a Codex session.
capabilities
The page documents launching Codex through Ollama, configuring without launching, removing the launch profile and generated catalog, selecting named local or cloud models, and disabling web search.
When launched through Ollama, Codex can use /model to switch among installed, tool-capable Ollama models without restarting. The starting model remains selected, and each model retains its own context-window, vision and thinking settings. This does not establish that every model supports vision or thinking.
Using it
requirements
The documented setup uses Ollama and Codex CLI. The Codex installation command requires npm. Models offered in the launcher's picker must be installed and tool-capable; additional models should be pulled before launching.
The page recommends at least 64k tokens of context, meaning the amount of text a model can consider at once. It does not specify supported software versions, operating systems, memory, GPU capacity or storage. Using Ollama's web-search service requires signing in with ollama signin.
mechanism
The quick launcher refreshes the model catalog and uses a dedicated Codex profile for that session. The persistent configuration example names the provider ollama-launch, points base_url to [http://localhost:11434/v1/] and sets wire_api to responses.
The localhost address identifies an Ollama endpoint on the same computer; it does not establish where every operation executes. The guide supports cloud model selection and states that Ollama executes Codex web-search requests for both local and cloud models.
setup
The documented Codex installation command is npm install -g @openai/codex. Quick setup then uses ollama launch codex. To prepare configuration without starting Codex, use ollama launch codex --config. Additional models can be installed beforehand with ollama pull <model>.
Manual setup uses codex --oss, optionally adding -m followed by a model name. For persistent setup, the page specifies ~/.codex/ollama-launch.config.toml, with model, model_provider and model_catalog_json settings plus the Ollama provider definition. Its catalog-path example is /Users/you/.codex/model.json. The associated launch command is codex --profile ollama-launch.
The removal command, ollama launch codex --restore, is described as removing the Ollama launch profile and generated model catalog.
example
The guide's explicit local-model example is codex --oss -m gpt-oss:120b. Its cloud-model example is codex --oss -m gpt-oss:120b-cloud. These names illustrate model selection; the page does not establish that either choice fits a particular computer, budget or coding task.
To disable search for a profile-based session, the documented command is codex --profile ollama-launch -c 'web_search="disabled"'. No resulting session output or coding example is supplied.
Assessment & evidence
limitations
There are no benchmarks, completed coding tasks, tool-call traces or installation results. Model accuracy, coding quality, latency, resource consumption and integration reliability remain unassessed.
The page does not explain data retention, search-request contents or privacy guarantees. Its local-model support should not be treated as proof of an entirely offline session, because web search is a separately described service and cloud models are also supported.
Compatibility boundaries, error recovery and the effects of smaller context windows are not documented.
reasoning
The guide's value comes from its concrete connection details: commands, provider settings, endpoint, model selection and search control. Those details make it useful as a configuration reference.
A working configuration recipe alone cannot establish the quality of the selected model. Suitability depends on model tool support, available context and hardware capacity, none of which the page evaluates for a specific workload.
alternatives
The documented setup choices are the Ollama launcher, manual --oss invocation and persistent profile configuration. The launcher supplies catalog refresh and in-session model switching; manual invocation exposes model choice directly; the profile example records provider settings for repeated use.
The page points desktop-app users to separate ChatGPT Desktop documentation at [https://docs.ollama.com/integrations/chatgpt.md]. That page's instructions are outside this resource. No comparison with other coding assistants or model runners is provided.
evidence
The evidence is the complete Codex CLI documentation page from [https://docs.ollama.com/integrations/codex.md]. It supports the described commands and configuration behavior, but supplies no independent measurements or execution results.
Linked documentation and the documentation index are separate sources and do not establish additional capabilities here.
Access & freshness
costs
Costs are unknown. The page gives no prices, free allowances, subscription requirements or billing rules for cloud models or web search. Requiring sign-in for search does not establish its price.
The page also provides no hardware sizing, electricity-use figures or operating-cost estimates for local models, including the named 120b example.
rights
The page does not state licensing terms for the documentation, Codex CLI, Ollama or the named model variants. Commercial-use, modification and redistribution permissions cannot be established from this evidence.
The installation and configuration examples do not supply a licence grant or terms for cloud models and web search.
freshness
The documentation snapshot was captured on 23 November 2026 at 05:12:33.833 UTC. The page itself gives no publication date, update date or supported Codex and Ollama version numbers.
Its commands and model names describe that snapshot. Compatibility with other software releases and continued availability of the named models are unknown.
actions
Choose a tool-capable model and determine whether the intended hardware can support it with the recommended context window. The guide does not provide the information needed to size that hardware or estimate costs.
Use ollama launch codex for the documented quick start, or ollama launch codex --config to configure without launching. Pull additional models before starting if they should appear in /model.
Decide whether web search is needed, use the documented disabling command when appropriate, and establish applicable service prices and usage rights before adoption.
