Skip to content

Instantly share code, notes, and snippets.

@rubenvarela
Created August 21, 2026 14:56
Show Gist options
  • Select an option

  • Save rubenvarela/072b3390db2868949ef52fc1ba87c2a7 to your computer and use it in GitHub Desktop.

Select an option

Save rubenvarela/072b3390db2868949ef52fc1ba87c2a7 to your computer and use it in GitHub Desktop.
{
"$schema": "https://opencode.ai/config.json",
// ---------------------------------------------------------------------------
// Providers
// ---------------------------------------------------------------------------
// "opencode" is the OpenCode Zen catalog (grok-code, qwen3-coder, etc.). It is
// loaded automatically with no API key, so it has to be disabled explicitly.
// Add "anthropic" here too if you want the ANTHROPIC_API_KEY models hidden.
"disabled_providers": ["opencode"],
// Defaults — change freely, refs are "ollama/<key from the models map below>".
"model": "ollama/qwen3.6:latest",
"small_model": "ollama/qwen3.5:4b",
"provider": {
"ollama": {
"name": "Ollama (local)",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://localhost:11434/v1",
"apiKey": "ollama", // Ollama ignores this; the SDK wants it present.
"headerTimeout": 300000, // big MLX models can be slow to first token
"chunkTimeout": 300000
},
// Context limits below match each model's full trained window. Verified:
// ollama 0.32.14 on this machine auto-sizes num_ctx to the full 262144
// (checked via /api/ps). If you ever see silent truncation, pin the server
// side with OLLAMA_CONTEXT_LENGTH=<n> before `ollama serve`.
"models": {
// --- Qwen 3.6 / 3.8 / next -------------------------------------------
"qwen3.6:latest": {
"name": "Qwen3.6 36B MoE",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"qwen3-next:latest": {
"name": "Qwen3-Next 80B",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"qwen3.8:27b-mlx": {
"name": "Qwen3.8 27B (MLX)",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"qwen3.8-abliterated": {
"id": "jobhub/Qwen3.8-abliterated:latest",
"name": "Qwen3.8 27B (abliterated)",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
// --- Qwen 3.5 ---------------------------------------------------------
"qwen3.5:27b": {
"name": "Qwen3.5 27B",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"qwen3.5:4b": {
"name": "Qwen3.5 4B (fast)",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 262144, "output": 16384 }
},
"qwen3:1.7b": {
"name": "Qwen3 1.7B (tiny)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 40960, "output": 8192 }
},
// --- Opus-distilled Qwen MoE variants ---------------------------------
"qwen3.6-opus-distill": {
"id": "yanjia/Qwen3.6-35B-A3B-Opus4.7-Reasoning-Distilled:q4km",
"name": "Qwen3.6 35B-A3B Opus-distilled (q4km)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"qwen3.5-opus-distil": {
"id": "gag0/qwen35-opus-distil:latest",
"name": "Qwen3.5 35B-A3B Opus-distilled",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
// --- Laguna ------------------------------------------------------------
"laguna-xs-2.1:mlx-bf16": {
"name": "Laguna XS 2.1 34B (MLX bf16)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"laguna-xs-2.1:mxfp8": {
"name": "Laguna XS 2.1 34B (mxfp8)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"laguna-xs.2:latest": {
"name": "Laguna XS.2 33B",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 131072, "output": 32768 }
},
// --- Gemma 4 -----------------------------------------------------------
"gemma4:31b-mlx": {
"name": "Gemma4 31B (MLX)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"gemma4:26b-mlx": {
"name": "Gemma4 26B (MLX)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
},
"gemma4:12b-mlx": {
"name": "Gemma4 12B (MLX)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 262144, "output": 16384 }
},
"gemma4:latest": {
"name": "Gemma4 8B (vision+audio)",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 131072, "output": 16384 }
},
// --- GPT-OSS -----------------------------------------------------------
"gpt-oss:120b": {
"name": "GPT-OSS 120B (MXFP4)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 131072, "output": 32768 }
},
"gpt-oss:20b": {
"name": "GPT-OSS 20B (MXFP4)",
"tool_call": true,
"reasoning": true,
"attachment": false,
"temperature": true,
"limit": { "context": 131072, "output": 32768 }
},
// --- Nemotron ----------------------------------------------------------
"nemotron3:33b": {
"name": "Nemotron3 33B",
"tool_call": true,
"reasoning": true,
"attachment": true,
"temperature": true,
"limit": { "context": 131072, "output": 32768 }
}
// nomic-embed-text:latest is intentionally absent — embedding-only model,
// no chat/completion capability, so opencode can't use it.
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment