Subrouter — Development skill for Claude Code
Subrouter routes Codex/Claude Code traffic across multiple ChatGPT Pro/Claude Max subscriptions and API keys.
How to install Subrouter
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open manaflow-ai/subrouter and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Subrouter does
Subrouter routes Codex/Claude Code traffic across multiple ChatGPT Pro/Claude Max subscriptions and API keys.
Alternatives in Development
- Google Ads Meta Ads MCP — Google Ads MCP server + Meta Ads MCP (Facebook Ads MCP) + GA4 + Search Console in one hosted remote MCP for Cl 3.2k ★
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
- Dario — A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline 485 ★
README
Subrouter
Subrouter is a local AI coding-agent proxy. It routes traffic across Codex accounts with sticky conversation-to-account assignment so cached context stays useful.
Goals
- Run fast on a Mac Mini.
- Forward requests with normal Go reverse-proxy behavior, including headers and streaming responses.
- Support subscription accounts first, API keys second.
- Keep each conversation pinned to one account.
- Pick a fresh account for a new conversation based on available rate-limit headroom.
- Provide the Codex account manager and daemon in one Go binary.
Install
Keeping the CLI current on macOS
A shared server autoupdates its worker. A laptop does not, so clients drift behind the servers they talk to and hit failures nobody can reproduce. Install the per-user updater once:
curl -fsSL https://raw.githubusercontent.com/manaflow-ai/subrouter/main/deploy/macos/install-cli-autoupdate.sh | bash
It installs a LaunchAgent that checks daily, compares the release tag against `~/.subrouter/cli-version`, and exits without downloading when they match. Updates go through `install.sh`, so the release checksum is verified, and a missing binary forces a reinstall even when the marker looks current. Logs land in `~/Library/Logs/subrouter-cli-autoupdate.log`. Remove it with `launchctl bootout gui/$(id -u)/ai.manaflow.subrouter-cli-autoupdate`.
GCP setup prompt
Paste this into Claude, Codex, or another coding agent with GCP operator access and a local browser for OAuth:
Set up Subrouter as a shared production service.
Inputs:
- GCP project, zone, and instance:
- Public server URL: https://sr.cmux.com
- Local server nickname: team
Rules:
- Do not copy ~/.codex/auth.json or local ~/.subrouter/codex/accounts/*.json to the server.
- Server OAuth accounts must be created with fresh server-owned login flows.
- Do not print access tokens, refresh tokens, API keys, id tokens, or admin tokens.
- Never use SSH, SCP, or
Related Skills
Swisscode
Run Claude Code with multiple Claude Pro/Max accounts: usage limits, one-command switching, a localhost proxy
Agentswap
Fail over Claude Code and Codex across subscriptions, API keys, and third-party providers; wait through quota
Anthropic Claude Max Proxy
OpenAI-compatible proxy for Claude Pro/Max subscriptions using OAuth.
Wtagent
Turn ChatGPT Web (including Pro) into Codex. Turn Claude Web into Claude Code. Also DeepSeek, Gemini, Grok, Ki
Ungate
Use your Claude and ChatGPT subscriptions in Cursor instead of paying for API tokens.
CLIProxyAPI Rust
Your Claude, ChatGPT and Gemini subscriptions as one fast API. A single Rust binary with OpenAI, Anthropic and
Related Agents
Pro SEO Google
Google SEO API analyst. Fetches CWV field data via CrUX, indexation status via GSC, and organic traffic via GA
Arthur
Independent code review via the Codex CLI (read-only, headless) for a second opinion that reads project files
API Route Engineer
Use when designing or implementing API endpoints — server actions, tRPC procedures, REST routes for external c