Skip to content

Instantly share code, notes, and snippets.

@stefanthoss
Last active May 22, 2026 23:52
Show Gist options
  • Select an option

  • Save stefanthoss/74d715a74d9e7382126dfbd40d8df94d to your computer and use it in GitHub Desktop.

Select an option

Save stefanthoss/74d715a74d9e7382126dfbd40d8df94d to your computer and use it in GitHub Desktop.
OpenCode Config for Ollama
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://ollama:11434/v1"
},
"models": {
"gemma4:31b": {
"name": "Gemma 4 (31B)"
},
"qwen3:30b": {
"name": "Qwen 3 (30B)"
},
"qwen3.6:35b": {
"name": "Qwen 3.6 (35B)"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment