Skip to content

High-precision AI quota management system featuring a Cyber-Industrial telemetry interface. Direct your LLM traffic through a unified proxy with automated failover, usage histograms, and real-time reset tracking.

License

Notifications You must be signed in to change notification settings

yuzushi-dev/Quota-Switch-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quota Switch Manager

The ultimate command center for your AI coding assistants.

Quota Switch Manager is a robust cross-platform daemon and web dashboard for managing CLIProxyAPI - a local proxy server that powers your AI coding agents. It helps you manage multiple AI accounts, track quotas, and configure CLI tools in one place.

Features

  • Multi-Platform: Runs seamlessly on Linux, macOS, and Windows.
  • Multi-Provider Support: Connect accounts from Gemini, Claude, OpenAI Codex, Qwen, Vertex AI, iFlow, Antigravity, Kiro, Trae, and GitHub Copilot via OAuth or API keys.
  • One-Click Agent Configuration: Auto-detect and configure AI coding tools like Claude Code, OpenCode, Gemini CLI, and more.
  • Real-time Dashboard: Monitor request traffic, token usage, and success rates live.
  • Smart Quota Management: Visual quota tracking per account with automatic failover strategies (Round Robin / Fill First).
  • API Key Management: Generate and manage API keys for your local proxy.
  • Web Interface: Modern, responsive web UI to manage your server.

Supported Ecosystem

AI Providers

Provider Auth Method
Google Gemini OAuth
Anthropic Claude OAuth
Antigravity Internal
OpenAI Codex OAuth
Vertex AI Service Account JSON
GitHub Copilot OAuth

Supported Agents

  • Cursor
  • Claude Code
  • Aider
  • Cline
  • Gemini CLI

Getting Started

Prerequisites

  • Python 3.12+
  • Node.js 20+ (for building the web UI)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/quota-switch-manager.git
    cd Quota-Switch-Manager
  2. Run the setup script:

    • Linux/macOS: ./start.sh
    • Windows: python main.py (after installing dependencies)

    The start script will:

    • Create a Python virtual environment
    • Install backend dependencies
    • Install frontend dependencies
    • Build the frontend
    • Start the daemon and web server
  3. Access the Dashboard: Open http://localhost:21451 in your browser.

Configuration

Quota Switch Manager stores its configuration in platform-standard locations:

  • Linux: ~/.config/quota-switch-manager/
  • macOS: ~/Library/Application Support/Quota Switch Manager/
  • Windows: %LOCALAPPDATA%\Quota Switch Manager\

Account credentials are stored in ~/.cli-proxy-api/ (cross-platform).

Development

  • Backend: Python (FastAPI) located in daemon/
  • Frontend: React (TypeScript, Vite) located in web/

Run the backend manually:

cd daemon
python main.py

Run the frontend manually:

cd web
npm run dev

License

MIT License

About

High-precision AI quota management system featuring a Cyber-Industrial telemetry interface. Direct your LLM traffic through a unified proxy with automated failover, usage histograms, and real-time reset tracking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published