Claude Code status line

Model Relay

Per-window model switcher, subagent router, and automatic 429 failover for Claude Code — switch any window with /provider, delegate subagents across models, and keep Remote Control & statuslines working.

106 stars 10 forksStatus lines Plugin marketplace Source

Install

Install
claude plugin marketplace add cablate/model-relay

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/cablate/model-relay.git

From the README

Switch any Claude Code window to another model from an interactive panel, route subagents to any provider,and automatically fail over when Claude hits a usage limit—all on localhost, with Remote Control and statuslines intact.

  English · 繁體中文 · Install · Features · Configuration · Changelog

Why

Claude Code binds model settings globally across every terminal window. model-relay runs a lightweight router on localhost (127.0.0.1:8950) so each window and subagent can use the model you want—with zero external cloud proxies.

Who this is for

model-relay is built for Claude Code users who combine a Claude subscription with backup or specialized endpoints (z.ai, DeepSeek, Kimi, MiniMax, OpenRouter, or a gateway on your own machine). Each provider has to accept Anthropic's /v1/messages format; a service that only speaks OpenAI Chat Completions needs a local translator (see Limitations). If you need a multi-tenant cloud proxy for an entire organization, use LiteLLM instead—model-relay is a single-user localhost daemon.

Install

Requires Node.js 20+ and Claude Code 2.1.287 or later (tested on Node.js 22.23.2 and Claude Code 2.1.306).
⚠️ Upgrading from 0.6 or earlier? Updating the plugin alone is not enough. Version 0.7+ reads only "format": 2 in ~/.claude/model-relay.json. Until you migrate your config and restart the router, an old 0.6 router still running in the background keeps running 0.6 code (without 0.7's conversation/tool loss fix or localhost security check), and once that process stops, the plugin will not start a new router until you migrate. Run /provider setup upgrade my model-relay config and Claude does it with you, or follow UPGRADING.md by hand (node tools/setup.mjs migrate, then migrate --go, then /provider restart).

1. Set your provider's API key before…
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
JavaScript
License
MIT
Last updated
24 October 2026
Topics
anthropicclaude-codedeepseekfailovergeminiglmllm-router

FAQ

What is Model Relay?

Per-window model switcher, subagent router, and automatic 429 failover for Claude Code — switch any window with /provider, delegate subagents across models, and keep Remote Control & statuslines working. It is a status line for Claude Code, from cablate/model-relay on GitHub.

How do I install Model Relay?

Run claude plugin marketplace add cablate/model-relay, then follow the setup in the README.

Is Model Relay popular?

cablate/model-relay has 106 GitHub stars and 10 forks. It was last updated on 24 October 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.