You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opencode won't recognize the model and will fallback to other models. The :nitro is a openrouter shortcut to sort all openrouter providers by throughput.
2. Configure authentication:
Run opencode auth login and choose "Custom Provider" to set up your OpenRouter API key for the openrouter-shortcut provider.
This approach lets you use OpenRouter shortcuts until native support is added.
--posted from claude code MCP (until my opencode is fully configured)
You can then either select that model interactively via /model command and select "Kimi K2.6 Nitro", or put "model": "openrouter/moonshotai/kimi-k2.6" into the config (root level).
This feels like a particularly useful thing to have in OpenCode. Depending on which model you select, the standard (non-nitro) response times can be unworkably slow.
Activity
backkem commentedon Jul 16, 2025
You can work around this by creating a custom provider configuration. Here's how to set it up:
1. Configure the provider in your
opencode.json:{ "$schema": "https://opencode.ai/config.json", "provider": { "openrouter-shortcut": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://openrouter.ai/api/v1" }, "models": { "moonshotai/kimi-k2:nitro": { "id": "moonshotai/kimi-k2:nitro", "name": "Kimi K2 Nitro", "attachment": false, "reasoning": true, "temperature": true, "tool_call": true, "limit": { "context": 200000, "output": 4096 } } } } } }2. Configure authentication:
Run
opencode auth loginand choose "Custom Provider" to set up your OpenRouter API key for theopenrouter-shortcutprovider.This approach lets you use OpenRouter shortcuts until native support is added.
--posted from claude code MCP (until my opencode is fully configured)
drewbitt commentedon Jul 17, 2025
Related #749
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
feat(install): add CodeBuddy(Tencent) adaptation with installation sc…
philippgille commentedon Apr 26, 2026
This is still not officially supported, right? Or am I doing something wrong?
Thanks backkem for the workaround! But it seems you don't even need the custom provider. The following works:
And regular OpenRouter auth config.
You can then either select that model interactively via
/modelcommand and select "Kimi K2.6 Nitro", or put"model": "openrouter/moonshotai/kimi-k2.6"into the config (root level).refactor: repo folder structure (anomalyco#1038)
tavurth commentedon Jul 22, 2026
Can we reopen this? @rekram1-node
garymoon commentedon Jul 29, 2026
This feels like a particularly useful thing to have in OpenCode. Depending on which model you select, the standard (non-nitro) response times can be unworkably slow.