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
- 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 daemon # Continuous sync (every 5 minutes)
npx vibe-usage reset # Delete all data and re-upload from local logs
npx vibe-usage reset --local # Delete this host's data only and re-upload
npx vibe-usage status # Show config & detected toolsSupported Tools
| Tool | Data Location |
|---|---|
| Claude Code | ~/.claude/projects/ |
| Codex CLI | ~/.codex/sessions/ |
| Gemini CLI | ~/.gemini/tmp/ |
| OpenCode | ~/.local/share/opencode/opencode.db (SQLite) |
| OpenClaw | ~/.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)
- For continuous syncing, use
npx vibe-usage daemonor the Vibe Usage Mac app
Config
Config stored at ~/.vibe-usage/config.json. Contains your API key and last sync timestamp.
Daemon Mode
Run continuous syncing in the foreground (every 5 minutes):
npx vibe-usage daemonPress Ctrl+C to stop. For background use: nohup npx vibe-usage daemon &
License
MIT