All shelves / Mods / Usage
model-relay
By cablate
model-relay is a Claude Code usage mod by cablate.
Opens a panel above the prompt to switch this window to another model provider, routes subagents to providers, and fails over when Claude returns a 429.
Draws
Install
The marketplace name is model-relay.
claude plugin marketplace add cablate/model-relay claude plugin install model-relay@model-relay
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.7.5
- License
- MIT
- Repo stars
- 46
- Last change
- 2026-10-24
What it can reach
- Draws in the session
- Reaches the network or an outside service
- Calls another program on this machine
Requires Node.js 20 or later and Claude Code 2.1.287 or later. Set your provider's API key in your shell before starting Claude Code, run /reload-plugins if Claude Code was already open, then /provider setup, and check it with /provider doctor --ping. Upgrading from 0.6 or earlier, updating the plugin alone is not enough: migrate the config first. The router listens on 127.0.0.1:8950 and points ANTHROPIC_BASE_URL in settings.json at it. A new config keeps every request on Claude; the first provider you add takes over on a 429 and pins that window for 7 days, and new windows try Claude again after 10 minutes. /provider <name> switches one window, and /provider alias points haiku, sonnet, or opus at a provider. Providers must accept Anthropic's /v1/messages. Switching back to Claude mid-session rebuilds the prompt cache. Remote Control works through an optional local HTTPS proxy mode. The router keeps running after the plugin is removed; the README's uninstall steps stop it.
The marketplace name is model-relay, and it lists this one plugin, from the repository. cablate also wrote ctx-handoff. Choosing the model each window and subagent runs on is why this page files it under usage. agent-router assigns a model and effort to each subagent role from your endpoint's catalog. claude-router picks a model and effort for each turn from a classifier. This one keeps Claude by default and moves only what you choose: one window, a model alias, a model-relay:<name> subagent, or the turn that hit a usage limit. Session text goes to a provider only after you add it. The author says there is no telemetry.
Demo
What it hooks into
session.startWhen a session startsagent.spawnWhen a subagent startsturn.completeWhen a turn endsui.renderDraws into the sessionAbovePromptPanecommand.runWhen you run its slash command/provider
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/provider切換這個視窗的模型(不帶參數開面板,/provider help 看全部指令)
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- cablate
- Category
- Usage
- Marketplace
- model-relay
- Version
- 0.7.5
- License
- MIT
- Repo stars
- 46
- Last change
- 2026-10-24
- Language
- JavaScript
- Files
- 59