See your Clawbay API quota usage directly in the VS Code status bar.
- Live 5-hour and weekly usage percentages in the status bar
- Hover tooltip with cost spent, limit, and time until reset
- Instant refresh via the status bar or command palette
- Install the extension
- Click the Clawbay item in the status bar (or run
Clawbay Quota: Loginfrom the command palette) - Paste your Clawbay API key — it's stored securely and never logged
The extension supports configurable API endpoints and token sources.
clawbayQuota.apiBaseUrl: Base URL for the quota API (defaults tohttps://theclawbay.com/api/codex-auth/v1). The extension appends/quotaif needed.clawbayQuota.tokenSource: Where to read the token from (secretStorage,settings, orenvironment). Default:secretStorage.clawbayQuota.apiToken: Optional token in settings (use only for local/dev; avoid on shared machines).clawbayQuota.apiTokenEnvVar: Environment variable name to read whentokenSourceisenvironmentorsettings(default:CLAWBAY_API_TOKEN).
CLAWBAY_API_BASE_URL: Override the API base URL for local/dev (example:https://api.example.com/codex-auth/v1).CLAWBAY_API_TOKEN: Provide a token whentokenSourceisenvironment, or as a fallback whentokenSourceissettings.
Example (redacted):
export CLAWBAY_API_BASE_URL="https://api.example.com/codex-auth/v1"
export CLAWBAY_API_TOKEN="ca_v1.<redacted>"| Command | Description |
|---|---|
Clawbay Quota: Refresh |
Manually refresh quota data |
Clawbay Quota: Set Token |
Store or update your API token |
Clawbay Quota: Clear Token |
Clear the stored API token |
Clawbay Quota: Show Auth Status |
Show whether a token is stored |
Clawbay Quota: Login |
Add or update your API key |
Clawbay Quota: Logout |
Clear the stored API key |
- Install dependencies:
npm install - Build the extension:
npm run compile - Run tests (includes extension host smoke test):
npm test
- Build the extension:
npm run compile - Package a
.vsix:npm run package
The package command uses vsce and produces a clawbay-quota-<version>.vsix file in the project root.
- Package a
.vsix(npm run package) for local distribution. - Validate install by selecting Extensions: Install from VSIX... in VS Code.
- Publish to the marketplace once the publisher account is ready:
npx vsce publish(requires publisher permissions and a PAT).