Skip to content

Instantly share code, notes, and snippets.

@deepakness
Created May 18, 2026 02:17
Show Gist options
  • Select an option

  • Save deepakness/41cc040f1cbda2014de0bd1c4f03b442 to your computer and use it in GitHub Desktop.

Select an option

Save deepakness/41cc040f1cbda2014de0bd1c4f03b442 to your computer and use it in GitHub Desktop.
A format for adding custom models to OpenCode, in this case adding Kimi K2.6 from NVIDIA.
{
"$schema": "https://opencode.ai/config.json",
"model": "nvidia/moonshotai/kimi-k2.6",
"provider": {
"nvidia": {
"npm": "@ai-sdk/openai-compatible",
"name": "NVIDIA",
"api": "https://integrate.api.nvidia.com/v1",
"options": {
"baseURL": "https://integrate.api.nvidia.com/v1",
"apiKey": "YOUR_NVIDIA_API_KEY_HERE",
"timeout": 600000,
"chunkTimeout": 60000,
"extraBody": {
"chat_template_kwargs": {
"thinking": true
}
}
},
"models": {
"moonshotai/kimi-k2.6": {
"name": "Kimi K2.6",
"reasoning": true,
"tool_call": true,
"temperature": true,
"attachment": true,
"interleaved": {
"field": "reasoning_content"
},
"modalities": {
"input": ["text", "image", "video"],
"output": ["text"]
},
"limit": {
"context": 262144,
"output": 65536
},
"options": {
"chat_template_kwargs": {
"thinking": true
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment