From the VS Code Marketplace: search for "Claude Usage" in the Extensions panel, or install from the Marketplace page.
Manual install:
git clone https://github.com/smanettu/vscode-claude-usage.git
cd vscode-claude-usage
npm install
npm run compile
npx @vscode/vsce package
code --install-extension vscode-claude-usage-*.vsix
Restart VS Code after installing. The usage indicator appears in the bottom-right status bar.
How Authentication Works
The extension reads the OAuth token that Claude Code CLI stores in the macOS Keychain. No API keys or manual configuration needed — if you're signed into Claude Code CLI, it just works.
The extension makes exactly one outbound HTTPS connection: to api.anthropic.com
No telemetry, no third parties
macOS Keychain access control applies; first run triggers a one-time "allow access?" dialog
The token is cached in memory only and cleared when VS Code closes
Note: The usage API endpoint is undocumented and could change without notice.
Development
npm run compile # Build once
npm run watch # Watch mode
# Press F5 in VS Code to launch Extension Development Host