Skip to content

Instantly share code, notes, and snippets.

@ntorga
Created September 17, 2026 15:44
Show Gist options
  • Select an option

  • Save ntorga/a2ff4d5f4abb0cb2e2b5fe6d4ef86ed1 to your computer and use it in GitHub Desktop.

Select an option

Save ntorga/a2ff4d5f4abb0cb2e2b5fe6d4ef86ed1 to your computer and use it in GitHub Desktop.
OpenCode's Command Code Provider Configuration
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"plan": {
"disable": true
},
"build": {
"temperature": 0.3,
"brainstorm": {
"top_p": 0.85
},
"thinking": {
"type": "enabled",
"budgetTokens": 14336
},
"reasoningEffort": "max",
"mode": "primary"
},
"general": {
"temperature": 0.2,
"brainstorm": {
"top_p": 0.75
},
"thinking": {
"type": "enabled",
"budgetTokens": 8192
},
"reasoningEffort": "high",
"mode": "subagent",
"hidden": true
},
"explore": {
"temperature": 0.2,
"brainstorm": {
"top_p": 0.7
},
"thinking": {
"type": "enabled",
"budgetTokens": 6144
},
"reasoningEffort": "medium",
"mode": "subagent",
"hidden": true
},
"reviewer": {
"temperature": 0.25,
"brainstorm": {
"top_p": 0.8
},
"thinking": {
"type": "enabled",
"budgetTokens": 12288
},
"reasoningEffort": "xhigh",
"mode": "subagent",
"hidden": true
}
},
"provider": {
"command-code": {
"npm": "@ai-sdk/openai-compatible",
"name": "Command Code",
"options": {
"baseURL": "https://api.commandcode.ai/provider/v1",
"apiKey": "{file:~/.ssh/command-code.key}",
"headers": {
"x-cmd-zdr": "1"
}
},
"models": {
"deepseek/deepseek-v4.1-flash": {
"name": "DeepSeek v4.1 Flash",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
},
"z-ai/glm-5.3-flash": {
"name": "GLM-5.3 Flash",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
},
"Qwen/Qwen3.8-Flash": {
"name": "Qwen3.8 Flash",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment