Claude Code model router

teamclaude

Multi-account proxy that pools Claude Max and other backends for Claude Code.

471 stars 145 forksModel routers & proxies Source

Install

Install
npm install -g @karpeleslab/teamclaude
From source
git clone https://github.com/KarpelesLab/teamclaude.git

From the README

TeamClaude

Multi-account proxy for Claude Code and Codex: it pools Claude Max, ChatGPT/Codex, API-key and third-party backend accounts, and rotates on quota.

It sits between the coding agent and the provider's API, holds several accounts, and moves to the next one when the current account gets close to its session or weekly limit. The session keeps running instead of stopping on a 429. Claude accounts serve Claude Code, Codex accounts serve the Codex CLI, and both pools share one proxy.

It is built for one person. The "team" is the agents: someone running ten, or fifty, coding-agent sessions at once needs more than one subscription, and switching accounts by hand each time one fills up is what this replaces. Every account in the pool is your own, and the client is the provider's own CLI. It is not a way to share an account between people, and not a bridge for other clients onto subscription credentials — see Scope.

Quick start

Node.js 20+ required.

Already logged into Claude Code? teamclaude import takes its credentials instead of a fresh OAuth round. A container image is on GHCR — see Running in a container. API keys, and one email holding accounts in several orgs, are covered in docs/accounts.md.

What it does

- Rotates to the next account when the 5h session or 7d weekly bucket reaches the threshold (98% by default), preferring the account whose weekly quota resets soonest.
- Tracks the per-model weekly cap separately, so an account out of Fable quota is skipped for Fable requests and still serves Opus and Sonnet.
- Tells a spent quota bucket apart from a per-minute rate limit and only rotates on the first one. Rotating on a rate limit would just move the burst to the next account and drop the warm cache, so it paces the same account instead.
- Paces requests…
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
31 October 2026
Topics
anthropicchatgptclaudeclaude-codeclicodexdeepseekload-balancermulti-accountnodejsoauthopenai

FAQ

What is teamclaude?

Multi-account proxy that pools Claude Max and other backends for Claude Code. It is a model router for Claude Code, from KarpelesLab/teamclaude on GitHub.

How do I install teamclaude?

Run npm install -g @karpeleslab/teamclaude, then follow the setup in the README.

Is teamclaude popular?

KarpelesLab/teamclaude has 471 GitHub stars and 145 forks. It was last updated on 31 October 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.