xdist
v0.1.0
Published
xDIST (Did I Ship Today?) - AI Usage & Limits Dashboard
Readme
xDIST (Did I Ship Today?)
An htop-style CLI dashboard for tracking AI usage, limits, and costs across multiple providers.
Installation
bun install -g xdistUsage
Simply run:
xdistOr run without installing:
bunx xdist- Chernobyl Heatmap: Character-by-character scan animation for revealing historical data.
- Provider Tracking: Support for GitHub Copilot, Anthropic, OpenAI, and more.
- Quota & Cost: Track both usage limits (requests) and cost caps (USD).
- Theme Support: Unified "success" (scanline) aesthetics.
- Auto-Config: Prompt-based credential setup for new providers.
bun run start
The app will also create .usage-limits.config.json in your project folder for local settings and stored credentials.
Keyboard shortcuts
Global:
qorCtrl+Cquitrrefresh usagetcycle themesgo to settingsdgo to dashboardtabtoggle dashboard/settings
Dashboard:
↑/↓orj/kmove selectionenterconfigure selected provider
Settings:
↑/↓orj/kmove selectionspaceenable/disable providereorenterset credentialsbtoggle billing mode (quota/payg)mset monthly limituset manual used valuecset manual cost
GitHub token notes
For billing usage reports:
- User endpoint typically needs Plan (read).
- Organization endpoint typically needs Administration (read) on the organization.
- You can use:
- Fine-grained PAT
- GitHub App user access token
This app queries the monthly premium-request endpoint across the last 24 months, keeps model-level breakdown for the current month, and builds the graph from monthly trend points.
Extending providers
Provider adapters live in src/providers/index.ts.
To add a new provider:
- Add a provider definition to
PROVIDERS - Implement
isConfiguredandfetchUsage - Add any provider-specific config fields if needed
