Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Xh4H/ccflare

 
 

Repository files navigation

ccflare 🛡️

Track Every Request. Go Low-Level. Never Hit Rate Limits Again.

The ultimate Claude API proxy with intelligent load balancing across multiple accounts. Full visibility into every request, response, and rate limit.

video_compressed.mp4

ccflare Dashboard

Why ccflare?

  • 🚀 Zero Rate Limit Errors - Automatically distribute requests across multiple accounts
  • 📊 Request-Level Analytics - Track latency, token usage, and costs in real-time
  • 🔍 Deep Debugging - Full request/response logging and error traces
  • ⚡ <10ms Overhead - Minimal performance impact on your API calls
  • 💸 Free & Open Source - Run it yourself, modify it, own your infrastructure

Quick Start

With Docker (Recommended)

# Clone the repository
git clone https://github.com/snipeship/ccflare
cd ccflare

# Build and run with Docker
docker build -t ccflare .
docker run -p 8080:8080 ccflare

# Configure Claude SDK
export ANTHROPIC_BASE_URL=http://localhost:8080

With Bun

# Clone and install
git clone https://github.com/snipeship/ccflare
cd ccflare
bun install

# Start ccflare (TUI + Server)
bun run ccflare

# Configure Claude SDK
export ANTHROPIC_BASE_URL=http://localhost:8080

Features

🎯 Intelligent Load Balancing

  • Strategies Supported:
    • session – Maintain session stickiness for up to 5 hours per account.

📈 Real-Time Analytics

  • Token usage tracking per request
  • Response time monitoring
  • Rate limit detection and warnings
  • Cost estimation and budgeting

🛠️ Developer Tools

  • Interactive TUI (bun run ccflare)
  • Web dashboard (http://localhost:8080/dashboard)
  • CLI for account management
  • REST API for automation

🔒 Production Ready

  • Automatic failover between accounts
  • OAuth token refresh handling
  • SQLite database for persistence
  • Configurable retry logic
  • Authentication (default credentials are ccflare_user : ccflare_password)
  • Docker deployment

Documentation

Full documentation available in docs/:

Screenshots

Dashboard Logs
Real-time Dashboard Request Logs
Analytics
Analytics & Usage Tracking

Requirements

  • Bun >= 1.2.8
  • Claude API accounts (Free, Pro, or Team)

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

License

MIT - See LICENSE for details


Built with ❤️ for developers who ship

About

The ultimate CC proxy

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.7%
  • HTML 3.5%
  • CSS 2.7%
  • Dockerfile 0.1%