model-compare

Best value-for-money LLM on OpenRouter

OpenCode plugin

Adds three live aliases to OpenCode v2 that follow model-compare ranking, steer requests to OpenRouter to the ranked endpoint, and pin the scored reasoning depth.

Installation

Add model-compare-opencode-plugin to opencode.jsonc (project or global). OpenCode installs and loads the npm package automatically:


  "$schema" "https://opencode.ai/config.json"
  "plugins" 
    
      "package" "model-compare-opencode-plugin"
      "options"  "source" "auto" "defaultPriority" "balanced" 
    
  

All options are optional. See the plugin README for fallback, custom weights, pinDays, and minLead.

The aliases

Each priority registers as a model inside the openrouter provider and refreshes every 30 minutes while OpenCode runs:

Alias Resolves to
openrouter/model-compare/balanced best all-round value pick
openrouter/model-compare/price best price pick (bulk or mechanical work)
openrouter/model-compare/quality best quality pick (planning or code review)

Set one as your root "model" in opencode.jsonc, switch an open session with alt+u (or /use-best [priority]), or bind specific agents and headless runs:

For agents, use the alias in the agent's .md frontmatter:


description Reviews changes for correctness
mode subagent
model openrouter/model-compare/quality

Headless:

opencode run --model "openrouter/model-compare/price" "Summarize test failures"

TUI features

Two dialogs let you inspect or switch picks.

The picks dialog: balanced, price, and quality, each with its current pick
alt+m — current pick for each priority; return switches to it.
The report dialog: the top five per priority with quality, variant, and prices
alt+shift+m (or /model-compare) — top 5 per priority with quality, variant, and prices.
Shortcut Action
alt+m open the current-picks dialog
alt+shift+m open the top-5 report dialog (also /model-compare)
alt+u switch the session to your defaultPriority pick (same as /use-best)
alt+e show a toast with the endpoint that served the last alias response
return / esc pick the highlighted row / close the dialog