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.
Install
claude plugin marketplace add cablate/model-relayFound in the project README. Check it for setup steps after installing.
git clone https://github.com/cablate/model-relay.gitFrom 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…
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.
Details
- Repository
- cablate/model-relay
- Type
- Status lines
- 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
claude-usage-monitor
58aiedwardyi/claude-usage-monitor
A status line plugin showing 5-hour and 7-day quota, context usage, tokens and reset countdowns.
claudia-statusline
37hagan/claudia-statusline
A Rust status line with compaction detection and SQLite-backed session tracking across consoles.
arcade-statusline
81sorosora/arcade-statusline
An arcade-themed status line with a Pac-Man style chase game and a flower-trail animation.
claudeline
55fredrikaverpil/claudeline
A minimalist status line for Claude Code written in Go.
claude-watch
70xleddyl/claude-watch
A minimal status line for Claude Code.
waybar-ai-usage
55NihilDigit/waybar-ai-usage
Displays Claude Code and Codex usage in the Waybar status bar on Linux.
Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.