Skip to content

Instantly share code, notes, and snippets.

@csghone
Last active April 27, 2026 05:41
Show Gist options
  • Select an option

  • Save csghone/e9a20a4066725026a3ff474a723f07de to your computer and use it in GitHub Desktop.

Select an option

Save csghone/e9a20a4066725026a3ff474a723f07de to your computer and use it in GitHub Desktop.
codex with ollama
# ~/.codex/config.toml
# Sample command: codex --oss -m gemma4:26b --dangerously-bypass-approvals-and-sandbox
model_provider = "ollama_local"
model = "gemma4:26b"
model_context_window = 131072
[model_providers.ollama_local]
name = "ollama_local"
base_url = "http://localhost:11434/v1"
model = "gemma4:26b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment