A focused VS Code extension for monitoring request quotas from
https://api.nkq.vn/dashboard/<KEY>.
Features
Shared weekly and monthly quota across NKQ 4.6, 4.7, and 4.8.
Rolling five-hour quota for NKQ 4.6 and the shared NKQ 4.7/4.8 premium pool.
Remaining and lifetime request counts.
Automatic refresh every 30 seconds, manual refresh, and stale/error states.
Automatic default-key discovery from claudeCode.environmentVariables when
ANTHROPIC_BASE_URL is https://api.nkq.vn.
Multiple additional dashboard keys, stored in VS Code SecretStorage, with one
independently refreshed panel per key.
One-click key switching from any panel updates Claude Code's active key while
preserving unrelated environment variables.
One-click access switching between the signed-in Claude Code subscription and
the current NKQ API key. The key is retained securely when subscription mode
is active, so switching back does not require pasting it again.
In API-key mode, Claude Code model aliases are kept on the NKQ defaults:
Opus 4.8 for main/fast/Opus and Opus 4.6 for Sonnet/Haiku. Subscription mode
removes those NKQ aliases and lets Claude Code use its first-party models.
Detects provider credentials inherited from macOS/Linux shell profiles or
Windows user environment/PowerShell profiles that would override a signed-in
subscription, and shows the platform-specific cleanup required.
Subscription switching also removes NKQ provider/model overrides from Claude
Code's user settings.json, using the native config location on Windows,
macOS, and Linux (including CLAUDE_CONFIG_DIR).
Run locally
npm install
npm run reinstall
Reload VS Code with Developer: Reload Window, then run
The key in claudeCode.environmentVariables appears automatically. Run
Claude Code Tool & Monitor: Add Dashboard Key to track more keys.
For development, open this repository in VS Code and press F5.
Commands
Claude Code Tool & Monitor: Add Dashboard Key
Claude Code Tool & Monitor: Remove Dashboard Key
Claude Code Tool & Monitor: Refresh Usage
Privacy
The extension reads only claudeCode.environmentVariables to discover
ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. It does not read process
environment variables, Claude transcripts, workspace files, or other VS Code
settings. Manually-added keys are stored in SecretStorage and raw keys are
never sent to the webview.