Display token/quota usage from any JSON API in the VSCode status bar
Repo borncode-app/custom-api-usage, read from GitHub 1 min ago. borncode-app has not joined Take My Repo.
A generic, multi-provider VSCode extension that displays token/quota usage from any JSON API in your status bar.
The headline feature is one-click companion skill install. v0.1.0 worked, but installing the analyzer skill required manually copying two files into ~/.claude/skills/ — easy to get wrong, and the first time you ran the skill the raw cache was empty. v0.2.0 fixes both:
SKILL.md + mapping.schema.json into your Claude Code skills slot. Overwrite is guarded by a confirmation prompt.~/.custom-api-usage/raw/<id>.json is populated. The skill finds data immediately. If the fetch fails (bad key, network down), the provider is still saved and surfaced as "Needs analyze" — Refresh retries later.The v0.1.0 flow had two rough edges that only became obvious after marketplace users actually tried it:
.claude/skills/custom-api-usage-analyze/ in the repo, but marketplace users don't have the repo. Now the files ship inside the extension.addProvider fetches once on save.| 🪄 | One-click skill install — User or workspace scope, overwrite guard |
| 🔁 | Raw cache auto-primes on Add Provider — skill finds data on first run |
| 🛠 | Status bar click → Provider Menu — quick-pick with 8 per-provider + 4 global actions |
| 📦 | Leaner VSIX — .claude/** and docs/** excluded (~340 KB → marketplace users get only the runtime) |
| 🧪 | 37 unit tests (up from 30) — covers installSkill and primeRawCache |
| Command | Action |
|---|---|
Custom API Usage: Add Provider |
Wizard: label, URL, API key → saves + auto-primes raw cache |
Custom API Usage: Set API Key |
Replace stored API key for a provider |
Custom API Usage: Refresh |
Force re-fetch all providers immediately |
Custom API Usage: Show Details |
Open webview panel with usage cards + progress bars |
Custom API Usage: Reorder Providers |
Quick pick to reorder providers |
Custom API Usage: Remove Provider |
Remove provider + delete its SecretStorage key |
Custom API Usage: Export Mappings |
Copy mappings.json to clipboard (no secrets) |
Custom API Usage: Import Mappings |
Paste mappings.json from clipboard (merges providers) |
Custom API Usage: Install Companion Skill |
NEW — copy bundled skill into Claude Code's skills slot |
Custom API Usage: Provider Menu |
NEW — quick-pick reachable from status bar click |
Custom API Usage: Add Provider — first fetch happens automaticallyCustom API Usage: Install Companion Skill — pick User or This workspace/custom-api-usage-analyze <provider-id> to generate the mapping⚡ OpenAI 45% (2h30m)From VSCode Marketplace: search for "Custom API Usage" in the Extensions panel.
From VSIX (manual): download custom-api-usage-0.2.0.vsix below, then:
code --install-extension custom-api-usage-0.2.0.vsix
Reload VSCode, then run Custom API Usage: Add Provider from the Command Palette.
customApiUsage.providers.<id>.apiKey.mappings.json is plain JSON with zero secrets — safe to sync via dotfiles.POST request bodies still not supported (planned for v0.3.0)POST request bodies with ${apiKey} and ${timestamp} template substitutiondisplay.colorThreshold field in mappings.json)See CHANGELOG.md for full v0.2.0 details, README.md for full usage, and docs/superpowers/specs/2026-06-06-custom-api-usage-design.md for design rationale.
mappings.json schema is unchanged from v0.1.0. All v0.1.0 providers continue to work.~/.claude/skills/custom-api-usage-analyze/ will be prompted before any overwrite..claude/skills/custom-api-usage-analyze/ in the repo. If you develop on the repo and the install command would overwrite your edits, you'll be warned first.MIT © 2026 Piyabordee