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.
| Type | Claude code mod |
|---|---|
| Author | cablate |
| Repository | cablate/model-relay |
| Popularity | 114 GitHub stars |
| Category | Cost & usage |
| Security | High risk (56/100) |
| Rank | #275 of 9,397 Claude Code mods; #41 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-24 |
| Stars this week | +1 |
| Hooks | 5 events |
| Sees | subagent spawns |
| Draws on | AbovePrompt, 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.register | |
$.clock.every | |
$.command.register | |
$.env.get | reads env vars |
$.env.set | sets env vars |
$.fs.read | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.id | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.ui.close | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install model-relay?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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/.
- 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.