model-relay

model-relay is a Claude Code mod by cablate that per-window model switcher, subagent router, and automatic 429 failover for Claude Code — switch any window from the /provider panel, route subagents to any provider, and keep working when.

Updated 2026-10-24

What is model-relay?

model-relay is a Claude Code mod by cablate that per-window model switcher, subagent router, and automatic 429 failover for Claude Code — switch any window from the /provider panel, route subagents to any provider, and keep working when. It is listed under Cost & usage and has 114 GitHub stars.

TypeClaude code mod
Authorcablate
Repositorycablate/model-relay
Popularity114 GitHub stars
CategoryCost & usage
SecurityHigh risk (56/100)
Rank#275 of 9,397 Claude Code mods; #41 in Cost & usage
LicenseMIT
Last commit2026-10-24
Stars this week+1
Hooks5 events
Seessubagent spawns
Draws onAbovePrompt, Pane

Is model-relay safe to install?

model-relay scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.register
$.clock.every
$.command.register
$.env.getreads env vars
$.env.setsets env vars
$.fs.readreads files
$.fs.writewrites files
$.process.runruns processes
$.prompt.submitdrives Claude
$.session.id
$.settings.readreads settings
$.state.get
$.state.set
$.ui.closedraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install model-relay?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/cablate/model-relay
    claude plugin validate ./model-relay/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add cablate/model-relay && claude plugin install model-relay@model-relay

Or ask Claude to set it up

Paste this into Claude Code and it installs model-relay for you:

Install the "model-relay" Claude Code mod from https://github.com/cablate/model-relay. Run claude plugin validate on it first and show me what it can access before you enable it.