Skip to content

Instantly share code, notes, and snippets.

@hunzo
Last active June 30, 2026 06:38
Show Gist options
  • Select an option

  • Save hunzo/283c8e767487aef94ddb0b204359483d to your computer and use it in GitHub Desktop.

Select an option

Save hunzo/283c8e767487aef94ddb0b204359483d to your computer and use it in GitHub Desktop.
opencode exmaple config
{
"$schema": "https://opencode.ai/config.json",
"default_agent": "orchestrator",
"compaction": {
"auto": true,
"prune": true,
"reserved": 4096
},
"provider": {
"litellm-local": {
"name": "litellm-local",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://litellm.your.domain/v1",
"headers": {
"Authorization": "Bearer {env:API_KEY}"
}
},
"models": {
"z-ai/glm-5.2": {
"name": "glm-5.2",
"tool_call": true
},
"gemma4-12b": {
"name": "gemma4-12b",
"tool_call": true
},
"qwen3.6-35B-DGX": {
"name": "qwen3-35b-DGX",
"tool_call": true
},
"qwen3-27b-local": {
"name": "qwen3-27b-local",
"tool_call": true
},
"deepseek/deepseek-v4-flash": {
"name": "deepseek-v4-flash",
"tool_call": true
},
"deepseek/deepseek-v4-pro": {
"name": "deepseek-v4-pro",
"tool_call": true
}
}
}
},
"agent": {
"orchestrator": {
"model": "litellm-local/deepseek/deepseek-v4-pro"
},
"backend-dev": {
"model": "litellm-local/qwen3-27b-local"
},
"senior-dev": {
"model": "litellm-local/z-ai/glm-5.2"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment