Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vibe-cafe/vibe-usage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vibe-usage
Track your AI coding tool token usage and sync to vibecafe.ai.
Quick Start
npx vibe-usageThis will:
- Ask for your API key (get one at https://vibecafe.ai/usage/setup)
- Detect installed AI coding tools
- Install session-end hooks for automatic syncing
- Run an initial sync of your usage data
Commands
npx vibe-usage # Init (first run) or sync (subsequent runs)
npx vibe-usage init # Re-run setup
npx vibe-usage sync # Manual sync
npx vibe-usage status # Show config & detected toolsSupported Tools
| Tool | Auto-sync | Data Location |
|---|---|---|
| Claude Code | Yes (session hook) | ~/.claude/projects/ |
| Codex CLI | Yes (notify hook) | ~/.codex/sessions/ |
| Gemini CLI | Yes (session hook) | ~/.gemini/tmp/ |
| OpenCode | Manual only | ~/.local/share/opencode/ |
| OpenClaw | Manual only | ~/.openclaw/agents/ |
How It Works
- Parses local session logs from each AI coding tool
- Aggregates token usage into 30-minute buckets
- Uploads to your vibecafe.ai dashboard
- Only syncs new data since last sync (incremental)
Config
Config stored at ~/.vibe-usage/config.json. Contains your API key and last sync timestamp.
License
MIT