Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created April 24, 2026 01:30
Show Gist options
  • Select an option

  • Save hunzo/53ade3bca3dd078a288f4f1cb51c8af9 to your computer and use it in GitHub Desktop.

Select an option

Save hunzo/53ade3bca3dd078a288f4f1cb51c8af9 to your computer and use it in GitHub Desktop.
example opencode with ollama config
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "build",
"model": "ollama/qwen3.6:27b",
"small_model": "ollama/qwen3.6:27b",
"compaction": {
"auto": true,
"prune": true,
"reserved": 4096
},
"provider": {
"ollama": {
"name": "Ollama-local",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://localhost:11434/v1",
"headers": {
"Authorization": "Bearer your_api_key"
}
},
"models": {
"qwen3.6:27b": {
"name": "qwen3.6:27b",
"_launch": true,
"id": "qwen3.6:27b",
"tool_call": true,
"options": {
"temperature": 0,
"top_p": 1,
"num_predict": 4096,
"num_ctx": 32768
}
}
}
}
},
"agent": {
"build": {
"description": "Main coding agent",
"model": "ollama/qwen3.6:27b"
},
"plan": {
"description": "Planning agent",
"model": "ollama/qwen3.6:27b"
},
"review": {
"description": "Code review agent",
"model": "ollama/qwen3.6:27b"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment