Track usage across your AI coding agents in one place.

| Agent | Data Source | Manual Key | OpenCode | Env Var | Multi-Account | Setup |
|---|---|---|---|---|---|---|
| AIHubMix | AIHubMix user self API | ✓ | — | ✓ | — | Paste the Access Key from https://console.aihubmix.com/setting, or set AIHUBMIX_ACCESS_KEY |
| Amp | Local SQLite database | — | — | — | — | Auto-detected from local database |
| Claude | Anthropic OAuth Usage API | — | ✓ | — | — | Auto-detected after claude login |
| ClinePass | Cline API | ✓ | — | — | ✓ | Auto-detected from the local Cline login, or add a user ID and API key via Manage Accounts |
| Codex | OpenAI API | ✓ | — | — | ✓ | Run codex login, add additional CODEX_HOME paths in preferences, or paste a token manually |
| Copilot | GitHub Copilot internal API | ✓ | — | ✓ | ✓ | Add named accounts, sign in with GitHub CLI, or use GH_TOKEN/GITHUB_TOKEN |
| Cursor | Cursor API | ✓ | — | — | — | Auto-detected from Cursor app login, or paste cookie header in preferences |
| DeepSeek | DeepSeek balance API | ✓ | ✓ | ✓ | — | Use OpenCode deepseek, set DEEPSEEK_API_KEY/DEEPSEEK_KEY, or paste an API key |
| Droid | Factory AI API | — | — | — | — | Run droid command to login |
| Gemini | Local state file | — | — | — | — | Auto-detected from local state |
| Grok | grok.com billing API | — | — | — | — | Auto-detected from ~/.grok/auth.json after grok login |
| Kimi | Moonshot API | ✓ | ✓ | — | ✓ | Use OpenCode kimi-for-coding, or paste token from https://www.kimi.com/code/console |
| Antigravity | Google API | — | — | — | — | Auto-detected from local API |
| Synthetic | Synthetic API | ✓ | ✓ | — | ✓ | Use OpenCode synthetic, or paste API key from https://synthetic.new/billing |
| MiniMax | MiniMax API | ✓ | ✓ | ✓ | — | Use OpenCode minimax-coding-plan, set MINIMAX_API_KEY env var, or paste token in preferences |
| MinimaxCN | MinimaxCN API (国内版) | ✓ | — | ✓ | — | Set MINIMAX_CN_API_KEY env var, or paste token in preferences |
| OpenCode Go | OpenCode API | ✓ | ✓ | — | — | Select OpenCode Go when running opencode auth login, or paste your subscribed account's API key into the OpenCode Go API Key preference. The manual preference takes priority. |
| OpenRouter | OpenRouter credits API | ✓ | ✓ | ✓ | — | Use OpenCode openrouter, set OPENROUTER_API_KEY/OPENROUTER_KEY, or paste an API key |
| z.ai (GLM) | Zhipu API | ✓ | ✓ | ✓ | ✓ | Paste token, use OpenCode zai-coding-plan, or set ZAI_API_KEY/GLM_API_KEY env var |
Legend:
~/.local/share/opencode/auth.jsonClinePass reads the shared Cline login from ~/.cline/data/settings/providers.json, with ~/.cline/data/secrets.json supported as a legacy fallback. Expired file-backed sessions are refreshed through Cline and saved atomically to the source file while preserving unrelated settings. If Cline replaces the credential while Agent Usage is fetching, Agent Usage rereads the file and uses Cline's newer value instead of overwriting it.
Additional ClinePass accounts can be added from the in-view Manage Accounts action. Each manual account requires a Cline user ID beginning with usr- and an API key beginning with sk_.
Agent Usage shows your AIHubMix account balance. Copy the Access Key from AIHubMix Settings, then paste it into the AIHubMix Access Key extension preference, or set AIHUBMIX_ACCESS_KEY in your shell. The preference takes priority if both are set.
Agent Usage shows your DeepSeek API balance, including total, topped-up, and granted balances. Create an API key from the DeepSeek Platform, then configure it using one of these methods:
deepseek providerDEEPSEEK_API_KEY or DEEPSEEK_KEY in your shell environmentManual preferences take priority, followed by OpenCode and environment variables.
Agent Usage shows the credits you have left on OpenRouter. Create a key from OpenRouter Keys, then configure it using one of these methods:
openrouter providerOPENROUTER_API_KEY or OPENROUTER_KEY in your shell environmentManual preferences take priority, followed by OpenCode and environment variables.
Which balance is shown depends on the key type. A provisioning key can read the account ledger (/api/v1/credits), so the row shows account-wide credits purchased minus credits used. A regular inference key cannot read that ledger, so Agent Usage falls back to the key endpoint (/api/v1/key) and shows that key's own spending cap instead — or $X.XX used when the key has no cap.
When you have multiple accounts configured for a provider (e.g., multiple Kimi API keys), the extension shows a ⚡ bolt icon next to the account that is currently being used by OpenCode. This helps you identify which account is actively being consumed.
The indicator appears in:
This works by comparing your stored account tokens with the keys configured in ~/.local/share/opencode/auth.json.
gh auth tokengh auth tokenGH_TOKEN and GITHUB_TOKEN are shown as separate auto-detected accounts; Agent Usage resolves them from your login shell when Raycast doesn't inherit the shell environmenthttps://api.github.com/copilot_internal/userThe legacy Copilot Authorization Token preference remains supported as a Preference account.
⌘⌥↑ / ⌘⌥↓ to reorder agents in the list| Shortcut | Action |
|---|---|
↵ | Refresh usage data |
⌘C | Copy usage details |
⌘⇧C | Copy API key (multi-account providers) |
⌘M | Manage Accounts (multi-account) |
⌘⌥↑ | Move agent up |
⌘⌥↓ | Move agent down |
# Install dependencies
npm install
# Run in development mode
npm run dev
# Build for production
npm run build
# Run linter
npm run lint
More agents coming soon.
MIT