# CC-Router

> Self-hosted proxy distributing Claude Code requests across multiple Claude Max and OpenAI subscriptions with automatic OAuth token rotation.

- **Category:** Developer Tools
- **Licence:** MIT
- **Latest version:** v0.6.2
- **Open source:** oss
- **Languages:** Typescript
- **Platforms:** Docker Compose, NPM
- **Tags:** Proxy, CLI, OAuth, LLM, Anthropic, Claude, Developer Tools, Ai Tools, Rate Limiting, Node.js, Typescript, Self Hosted, Load Balancing, Litellm, Claude code, Claude Code Proxy, Claude Code Router, Claude Max, Round Robin, Token Rotation

## Description

CC-Router runs locally on macOS, Linux, or Windows and sits between Claude Code and the Anthropic API. It round-robins requests across two to twenty Claude Max accounts, refreshes OAuth tokens before they expire, and detects rate-limit responses to cool down busy accounts. An OpenAI Responses-compatible endpoint lets Codex CLI use ChatGPT/Codex subscriptions through the same proxy. Deployment options include an npm global install that can run as a background daemon with launchd or systemd auto-start, a Docker Compose stack with optional LiteLLM for a web dashboard, or a client-only mode that points to a remote instance. A live terminal dashboard shows per-account health, request counts, and token usage. Claude Desktop traffic can be intercepted via mitmproxy. The project is MIT-licensed and requires Node.js 20+.

## Links

- [Homepage](https://github.com/VictorMinemu/CC-Router)
- [Website](https://www.npmjs.com/package/ai-cc-router)
- [GitHub Repository](https://github.com/VictorMinemu/CC-Router)
- [npm Package](https://www.npmjs.com/package/ai-cc-router)
- [Issues](https://github.com/VictorMinemu/CC-Router/issues)

---
Source: https://selfhost.directory/project/cc-router