Zoo Balance
Shows your Zoo Code balance, usage analytics, and cache performance directly in the VSCode status bar.
Features
- Balance — auto-updated balance in the status bar
- Usage — cost, tokens, and requests for the last N days, with per-mode breakdown
- Cache performance — read/write tokens and estimated savings
- Auto-refresh — periodic updates (configurable interval)
- Session management — cookies stored encrypted in VSCode SecretStorage with automatic renewal
Setup
- Install the extension in VSCode
- Run Zoo Balance: Login (
Ctrl+Shift+P → "Zoo Balance: Login") — the browser opens at zoocode.dev
- Log in to the site
- Open browser DevTools (
F12) → Network tab → click any request to zoocode.dev → in Request Headers, copy the full value of the Cookie header
- Paste that value into the input box that appears in VSCode
- The balance appears in the status bar — click it for the full summary
Cookies are stored encrypted in VSCode's SecretStorage and are automatically renewed.
Commands
| Command |
Description |
Zoo Balance: Refresh |
Manually refresh the balance |
Zoo Balance: Show Summary |
Open the popup with balance + usage + cache |
Zoo Balance: Login |
Open the browser to log in and paste the Cookie header |
Zoo Balance: Logout |
Clear the stored session |
Configuration
| Setting |
Default |
Description |
zooBalance.refreshInterval |
5 |
Refresh interval in minutes |
Requirements
License
MIT
| |