Skip to content
  1. Home
  2. AI tools
  3. opencode-model-router

opencode-model-router

Route OpenCode tasks to cheaper or stronger model tiers

What it is

Delegates each task to a fast, medium or heavy tier so simple work uses a cheaper model. The fast tier is read-only, limited to reads, greps and safe git inspection.

Good for

  • Cut cost on simple tasks
  • Send hard tasks to a stronger model

Install or run

npm install -g opencode-model-router

Command as given in the project README. Read the repository before you run anything on your machine.

What you need

OpenCode and configured models for each tier

Worth knowingGPL-3.0 licensed; it adds a few thousand characters to the system prompt.

Sources

The summary is ours, written from the README. Spotted an error? See how we work.

More for coding

See the topic →
  • opencode

    anomalyco/opencode

    Open-source AI coding agent with a terminal UI and desktop app

    ToolGitHub stars: 227k
  • Claude Code

    anthropics/claude-code

    Anthropic's terminal coding agent; this repo hosts issues and plugins

    ToolGitHub stars: 156k
  • Spec Kit

    github/spec-kit

    GitHub's toolkit for spec-driven development with coding agents

    ToolGitHub stars: 150k
  • Codex CLI

    openai/codex

    OpenAI's terminal coding agent that runs locally on your machine

    ToolGitHub stars: 135k