GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support openrouter shortcut · Issue #1038 · anomalyco/opencode

Support openrouter shortcut #1038

New issue
Copy link
New issue
Copy link
Closed
Closed
Support openrouter shortcut#1038
Copy link
Assignees
thdxr

Description

@kkpattern
kkpattern
opened on Jul 16, 2025
Issue body actions

Currently, opencode doesn't support shortcut. Given the following config:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "openrouter/moonshotai/kimi-k2:nitro"
}

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.

It would be nice if opencode can support it.

Reacted by Gavin Fuller, Michiel De Backker, wienans, Guilherme Tabuada, Marcel Bochtler, Florian Herrengt, Ralf Stephan, pixlguru, Lucas Arthur Felgueiras, stefanof-sevio and 1 more

Activity

  1. backkem commented on Jul 16, 2025

    @backkem
    backkem
    on Jul 16, 2025
    More actions

    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 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)

    Reacted by Florian Herrengt and Philipp Gillé
  2. thdxr
    self-assigned this
    on Jul 16, 2025
  3. drewbitt commented on Jul 17, 2025

    @drewbitt
    drewbitt
    on Jul 17, 2025
    More actions

    Related #749

  4. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    rekram1-node
    on Dec 28, 2025
    Member
    More actions

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

  5. rekram1-node
    closed this as completedon Dec 28, 2025
  6. andreipromarketing-dev
    added a commit that references this issue on Apr 7, 2026

    feat(install): add CodeBuddy(Tencent) adaptation with installation sc…

    c38bc79
  7. philippgille commented on Apr 26, 2026

    @philippgille
    philippgille
    on Apr 26, 2026
    More actions

    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:

    	"provider": {
    		"openrouter": {
    			"models": {
    				"moonshotai/kimi-k2.6": {
    					"id": "moonshotai/kimi-k2.6:nitro",
    					"name": "Kimi K2.6 Nitro"
    				}
    			}
    		}
    	},

    And regular OpenRouter auth config.

    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).

    Reacted by Wei Zhu and Alex Kosh
  8. bussard76
    added a commit that references this issue on May 12, 2026

    refactor: repo folder structure (anomalyco#1038)

    2b91b4d
  9. tavurth commented on Jul 22, 2026

    @tavurth
    tavurth
    on Jul 22, 2026
    More actions

    Can we reopen this? @rekram1-node

    Reacted by Gary Moon, Matt Reid and ian
  10. garymoon commented on Jul 29, 2026

    @garymoon
    garymoon
    on Jul 29, 2026
    More actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.