Created
April 24, 2026 01:30
-
-
Save hunzo/53ade3bca3dd078a288f4f1cb51c8af9 to your computer and use it in GitHub Desktop.
example opencode with ollama config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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