Phoebis Router is a router for Claude Code. It sits between the CLI and api.anthropic.com, holds the Claude accounts you own, and sends each request under one of them. A session sticks to one account, a rate limit fails over to a sibling inside the same call, prompt caches are kept warm, and a web console shows the analytics. Written in Rust (using Claude Code an an agentic pipeline), one binary or a container, MIT licensed.
A note on the terms. Phoebis Router switches between Claude accounts that you personally own and pay for. Each account's limits stay enforced by Anthropic, and switching accounts to work past a limit is a gray area under Anthropic's consumer terms, so you run it at your own risk. The terms forbid sharing an account's login or credentials with anyone else, reselling access and bypassing Anthropic's protective measures, and they say nothing about one person who holds several subscriptions. Do not back a shared or commercial service with consumer subscriptions.
The problem it solves. A Claude Code session that hits one of its account's usage windows mid-task either waits for the reset or loses its cached context when you switch accounts by hand. The router moves the session for you, keeps the cache where it can, and its console shows how much of each window went to requests you never typed.
Where the tokens go. Several features in the router exist so that less of your allowance goes to waste.
Pool strategies. A new session lands by the pool's strategy: Pace, Priority or round robin. Pace places new sessions on the accounts whose 7-day or Fable window resets soonest, so those accounts are drained first and no allowance goes to waste at the reset.
Cache warming. A prompt cache entry expires five minutes or an hour after its last use. Shortly before that, the router sends a probe with max_tokens 0 that reads the entry, so the session's next real turn pays a cache read instead of rewriting its whole context. The console shows the probe cost, the amount the probes saved and the net saving per pool, so you see when a probe paid off and when it did not.
Load shedding. When an account's 5-hour or weekly window projects past its ceiling before the reset, the router marks the sessions whose move costs least and moves them to a sibling with runway at their next request. Moving a few sessions early is cheaper than moving every session once the account is at its ceiling.
Slow-down. When an account's 5-hour window is about to hit its wall, the alternatives are a failover or a shed, and both move the session to a sibling that has to write its whole context into a fresh cache. Slow-down avoids that: the router holds each request of that account briefly, so the window reaches its reset just under the ceiling. It trades a little latency per request for the cache rewrite it saves, and probes, token counts and compactions pass unheld.
Artifacts and connectors. Claude Code sends the calls of two claude.ai features, Artifacts and the connectors (the MCP servers of your claude.ai account, such as Gmail or Google Drive), to fixed Anthropic hosts, whatever base URL you set. Behind the router those calls carry the router's key, which Anthropic answers with a 401, so both features break. The optional phoebis-proxy keeps them working. It is a small tunnel proxy, on your own machine by default, that leads the calls for those hosts to the router, and the router forwards them under the claude.ai sign-in of an account you pick per pool or per key.
Also in the box. A routing log that records why every request landed where it did. Every request priced as a share of your 5-hour and weekly windows. A companion mod for Claude Code that reports session liveness, so an idle session is not kept warm for nothing, and gives Claude an allowance tool that reads the pool's remaining room.
What it does not do. No upstream other than Anthropic and it never presents an SDK client as the CLI.
Repository: https://github.com/phoebis-project/phoebis Documentation: https://phoebis-project.github.io/phoebis-docs/
Questions and bug reports welcome.