From model-relay
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 quota runs out.
5 events · 19 calls
Ships in model-relay. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runfs.writefs.readenv.getenv.setsettings.readprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startagent.spawnturn.completeui.render{component=AbovePrompt}ui.render{component=Pane, requestId=model-relay-avatar}command.run{command=provider}Every mods API method its source calls, by namespace
registereveryregistergetsetreadwriterunsubmitidreadgetsetcloseopenpanesresolvestatustoastANTHROPIC_BASE_URLCLAUDE_CONFIG_DIRHOMEOSUSERPROFILEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub cablate/model-relay --plugin model-relay