Skip to content

SwiftBar plugin to display CLIProxyAPI quota for Codex and Antigravity.

License

Notifications You must be signed in to change notification settings

LoveEatCandy/CLIProxyAPI-quota-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CLIProxyAPI Quota - SwiftBar Plugin

A SwiftBar plugin that displays Codex and Antigravity quota usage from your CLIProxyAPI instance in the macOS menu bar.

Setup

1. Install SwiftBar

brew install swiftbar

2. Install the Plugin

Symlink or copy the script to your SwiftBar plugins directory:

git clone https://github.com/LoveEatCandy/CLIProxyAPI-quota-bar.git
cp CLIProxyAPI-quota-bar/quota.5m.py path/to/SwiftBar/quota.5m.py

The 5m in the filename means SwiftBar refreshes every 5 minutes.

3. Configure Environment Variables

Write .env file in the same directory(path/to/SwiftBar/.env):

CPA_BASE_URL="https://xxx"                # Your CLIProxyAPI server
CPA_MANAGEMENT_KEY="your-management-key"  # Management API key

What It Shows

Status Bar:

πŸ€–C:100% πŸŒ€A:100%
  • πŸ€–C:100% β€” 100% Codex quota available
  • πŸŒ€A:100% β€” 100% Antigravity quota available

Dropdown Menu:

  • Per-provider account list with quota details
  • Status indicators: 🟒 ready / πŸ”΄ rate-limited / 🟑 warning / ⚫ disabled
  • Quick links to refresh and open Management Center

Customization

  • Change refresh interval by renaming the file (e.g., quota.1m.py for 1 minute)
  • Modify TARGET_PROVIDERS in the script to track other providers

About

SwiftBar plugin to display CLIProxyAPI quota for Codex and Antigravity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages