Track AI API quotas across Synthetic, Z.ai, Anthropic (Claude Code), Codex, GitHub Copilot & Antigravity in real time. Lightweight background daemon (<50MB RAM)
Track AI API quotas across Synthetic, Z.ai, Anthropic (Claude Code), Codex, GitHub Copilot & Antigravity in real time. Lightweight background daemon (<50MB RAM)
Free, open-source AI API quota monitoring for developers.
Track usage across Synthetic, Z.ai, Anthropic, Codex, GitHub Copilot, MiniMax, Gemini CLI (legacy), Cursor, Grok, Kimi Code, and Antigravity in one place. See history, get alerts, and open a local web dashboard before you hit throttling or run over budget. Additionally, you can ingest local telemetry from your own API-driven workflows with API Integrations, keeping track of token use and spending across multiple providers.
Links: Website | Buy Me a Coffee
Trust & Quality Compatibility & Docs onWatch fills the gap between "current usage snapshot" and the historical, per-cycle, cross-session view that developers actually need. It runs as a lightweight background agent ( Powered by onllm.dev | Landing Page
One-line install:
curl -fsSL https://raw.githubusercontent.com/onllm-dev/onwatch/main/install.sh | bashThis downloads the binary to ~/.onwatch/, creates a .env config, sets up a systemd service (Linux) or a launchd agent (macOS, offered during install), and adds onwatch to your PATH.
The installer downloads the standard binary, which includes the menubar companion on macOS and the system tray on Linux desktops.
brew install onllm-dev/tap/onwatch
onwatch setup # Interactive setup wizard for API keys and configOne-line install (PowerShell):
irm https://raw.githubusercontent.com/onllm-dev/onwatch/main/install.ps1 | iexOr download install.bat from the Releases page and double-click it.
This downloads the binary to %USERPROFILE%\.onwatch\, runs interactive setup for API keys, creates a .env config, and adds onwatch to your PATH.
For manual setup or troubleshooting, see the Windows Setup Guide.
Download binaries from the Releases page. Binaries are available for macOS (ARM64, AMD64), Linux (AMD64, ARM64), and Windows (AMD64, ARM64).
Or build from source (requires Go 1.25+):
git clone https://github.com/onllm-dev/onwatch.git && cd onwatch
cp .env.example .env # then add your API keys
./app.sh --build && ./onwatch --debug # or: make build && ./onwatch --debugOr use Docker (requires Docker or Docker Compose):
cp .env.docker.example .env # add your API keys
docker-compose up -dOr via app.sh:
./app.sh --docker --runThe Docker image uses a distroless base (~10-12 MB) and runs as non-root. An Alpine variant with shell access is also available (ghcr.io/onllm-dev/onwatch:alpine). Data persists via volume mount at /data. Logs go to stdout (docker logs -f onwatch). See Docker Deployment for details.
Edit ~/.onwatch/.env (or .env in the project directory if built from source):
SYNTHETIC_API_KEY=syn_your_key_here # https://synthetic.new/settings/api
ZAI_API_KEY=your_zai_key_here # https://www.z.ai/api-keys
ANTHROPIC_TOKEN=your_token_here # Auto-detected from Claude Code credentials
CODEX_TOKEN=your_token_here # Recommended for Codex-only setups
COPILOT_TOKEN=ghp_your_token_here # GitHub PAT with copilot scope (Beta)
ONWATCH_ADMIN_USER=admin
ONWATCH_ADMIN_PASS=changemeAt least one provider key is required. Configure any combination to track them in parallel. Anthropic tokens are auto-detected from Claude Code credentials (macOS Keychain, Linux keyring, or ~/.claude/.credentials.json). For Codex-only setups, set CODEX_TOKEN in .env; during runtime onWatch re-reads Codex auth state from ~/.codex/auth.json (or CODEX_HOME/auth.json) and picks up token changes. Copilot tokens require a GitHub Personal Access Token (classic) with the copilot scope.
Provider setup guides:
onwatch # start in background (daemonizes, logs to ~/.onwatch/data/.onwatch.log)
onwatch --debug # foreground mode, logs to stdout
onwatch stop # stop the running instance
onwatch status # check if runningOpen http://localhost:9211 and log in with your .env credentials.
Put the same quotas in your editor. The extension is published on the VS Code Marketplace:
https://marketplace.visualstudio.com/items?itemName=onllm-dev.onwatch
code --install-extension onllm-dev.onwatchIt is a thin client: it needs the onWatch daemon running (steps above) and finds it automatically. Status bar item, hover tables and an onWatch sidebar with the quick view. Every GitHub release also ships the extension as onwatch-vscode-.vsix for editors without Marketplace access. See docs/VSCODE_EXTENSION.md.
…Dashboard -- Material Design 3 with dark/light mode (auto-detects system preference). Provider tabs appear for each configured provider:
agy source on the Antigravity provider insteadagy CLI (richer weekly + 5-hour buckets), or both (default) -- switchable in the dashboard settings; all variants share one Google-account quotaGET /coding/v1/usages (auto-detect ~/.kimi-code/credentials). Weekly + window limits with reset countdown. See Kimi Setup.~/.grok/auth.json (or $GROK_HOME), optional grok agent stdio RPC, and grok.com gRPC-web bearer probe (no browser cookie import). Primary "Credits" utilization against plan limit with reset countdown. Informational local session token stats also captured.MOONSHOT_API_KEY. See Moonshot Setup.DEEPSEEK_API_KEY. See DeepSeek Setup.OPENCODE_GO_WORKSPACE_ID + OPENCODE_GO_AUTH_COOKIE. Separate from OPENCODE_ENABLED, which only feeds ChatGPT credentials into the Codex provider. See OpenCode Setup.OLLAMA_API_KEY. See Ollama Setup./metrics for Prometheus/Grafana/Alertmanager integrations, with optional bearer token protection via ONWATCH_METRICS_TOKENEach quota card shows: usage vs. limit with progress bar, live countdown to reset, status badge (healthy/warning/danger/critical), and consumption rate with projected usage.
Time-series chart -- Chart.js area chart showing all quotas as % of limit. Time ranges: 1h, 6h, 24h, 7d, 30d.
API Integrations chart -- Dedicated telemetry view for custom API-driven scripts. Switch between tokens per request, request counts, accumulated token use, and cost where available.
Insights -- Burn rate forecasting, billing-period averages, usage variance, trend detection, and cross-quota ratio analysis (e.g., "1% weekly ~ 24% of 5-hr sprint"). Provider-specific: tokens-per-call efficiency and per-tool breakdowns for Z.ai.
Cycle Overview -- Cross-quota correlation table showing all quota values at peak usage points within each billing period. Helps identify which quotas spike together.
Sessions -- Every agent run creates a session that tracks peak consumption, letting you compare usage across work periods.
Settings -- Dedicated settings page (/settings) with tabs for general preferences, provider controls, notification thresholds, and SMTP email configuration.
Custom API Integrations setup -- Use a small wrapper around your own API calls to append normalised JSONL events into ~/.onwatch/api-integrations/, then open the API Integrations tab to monitor cumulative and recent usage. Full setup instructions live in docs/API_INTEGRATIONS_SETUP.md.
Menubar / system tray (macOS, Linux, Windows - Beta) -- Every desktop build includes a tray companion. macOS shows the selected quota percentages next to a template icon and opens a native popover. Linux and Windows bake the percentage into a status-colored tray icon and open the same quick view in a frameless window. Two preset views:
Configure i
No open issues yet, or sync has not completed.