A local-first Chrome extension for monitoring AI API balances, budgets and quota usage.
中文 · Platforms · Installation · Privacy
API spending is scattered across provider consoles. Token Wallet puts the information you need in one place: which account needs attention, how much remains, recent consumption, and where to top up.
- Local-first: keys and snapshots remain in
chrome.storage.local. - No backend, account, analytics or cloud sync.
- Light, dark and system themes with a quiet Codex-inspired interface.
- English and Chinese interface.
- 7/30-day balance trends and a 365-day activity heatmap per provider.
- Low-balance thresholds, desktop alerts and direct billing links.
- Custom JSON adapters for providers not built in yet.
| Platform | Data shown | Credential required | Notes |
|---|---|---|---|
| DeepSeek | Available, topped-up and granted balance | API key | Direct balance API |
| Kimi / Moonshot | Available, cash and voucher balance | API key | Direct balance API |
| MiniMax | 5-hour and weekly Token Plan quota | Token Plan key | Pay-as-you-go keys cannot query cash balance |
| Zhipu GLM | Coding Plan token quota and reset | API key | Uses the plan monitoring endpoint |
| OpenAI | Current-month organization cost vs. local budget | Organization Admin key | Standard inference keys cannot access organization costs |
| Claude / Anthropic | Current-month token usage vs. local allowance | Admin key | Uses the organization usage report |
| Grok / xAI | Prepaid credit balance | Management key + Team ID | Standard inference keys cannot access billing |
| Gemini | AI Studio billing shortcut | None | Standard Gemini keys do not expose billing balance |
| Custom | Balance or quota from JSON paths | Configurable | GET/POST and custom headers supported |
Token Wallet never invents a balance when a provider does not expose one. Such accounts are marked as console-only or unsupported.
| Popup | Dark dashboard |
|---|---|
![]() |
![]() |
- Download or clone this repository.
- Open
chrome://extensionsin Chrome. - Enable Developer mode.
- Click Load unpacked.
- Select the repository directory.
- Open Token Wallet and add an account.
Pull or replace the files, then click Reload on chrome://extensions. Existing accounts and history remain in the same Chrome profile.
Token Wallet saves lightweight snapshots after refreshes and keeps up to 370 days locally. Daily consumption is estimated from the decrease between the first and last snapshot of a day. Balance top-ups are not counted as negative usage. These estimates do not replace official provider invoices.
No build step is required.
npm test
npm run checkThe extension uses Manifest V3 and plain HTML, CSS and JavaScript. Adapter logic lives in lib/core.js; product behavior is documented in PRODUCT.md.
API credentials are stored locally as plaintext because Chrome extension storage does not provide a system-keychain abstraction. Use a dedicated Chrome profile and scoped, read-only billing credentials where providers support them. See SECURITY.md and PRIVACY.md.
Issues and pull requests are welcome. Platform adapters must use documented provider endpoints and clearly state the credential scope they require. See CONTRIBUTING.md.
MIT © 2026 ReeCHECK


