ClaudeCodeMod

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.

In your shell
claude plugin marketplace add cablate/model-relay
claude plugin install model-relay@model-relay
Open the repo

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

The author's animation of model-relay. On the left, the main thread stays on Anthropic Claude, subagents route to any provider, and local gateways launch by themselves. On the right, /provider opens the panel above the prompt with Ping, Settings, and a Use button per provider; a press switches only this window to fast (fast-model), and the panel closes by itself. The providers are the author's sample.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • agent.spawnWhen a subagent starts
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAbovePromptPane
  • command.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
Repo
cablate/model-relay
Version
0.7.5
License
MIT
Repo stars
46
Last change
2026-10-24
Language
JavaScript
Files
59

Other mods in Usage

rtk-gainrtk-aiDraws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.tokendoctorrsaryevShows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.jev-routerdominicricoAsks TypeSafe's Jev which Claude model and effort fit each prompt, step, and subagent, runs it there, and draws every pick in a band above the prompt.usage-statsomeerdvrnOpens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.claujev-modCivalskiHolds a commandDraws a status line of the checks and actions TypeSafe's Jev made today for the ClauJev plugin, with the effort Jev suggests, and can apply that effort.jev-orchestratorhiyokuSends each subagent's task to TypeSafe's Jev, which picks its model, effort, and tool profile, and draws the picks, tokens, and cost on the status line.vitalsnaicudDraws a framed live dashboard above the prompt: model, effort, context, plan limits with a forecast, cost, tokens and cache, subagents, shells, and tools.dispatch-gatewdsewdser-bitHolds a commandRefuses one tool call once the main session has made 8 requests in a row itself, and a subagent past 3 an hour, so Claude hands work out. A retry goes through.usage-baromeerdvrnDraws your 5-hour and 7-day plan limits under the prompt, used or left, with the git branch and file counts, the model, context, and the session's cost.limitsRyan-LTDraws a band above the prompt with the 5-hour and weekly limits, a pace warning, and context fill, and toasts at 75%, 90%, and 100%.
All 183 in Usage