Documentation Index
Fetch the complete documentation index at: https://docs.ollama.com/llms.txt
Use this file to discover all available pages before exploring further.
Install
Install the Codex CLI:Usage with Ollama
Codex requires a larger context window. It is recommended to use a context window of at least 64k tokens.
Quick setup
Manual setup
To usecodex with Ollama, use the --oss flag:
-m flag:
Profile-based setup
For a persistent configuration, add an Ollama provider and profiles to~/.codex/config.toml:

