Getting Started¶
1. Install CLI¶
pip install cost-guard
2. Create Account¶
Visit https://app.costcut.dev/signup and sign up with email + password.
3. Generate API Key¶
- Log in to https://app.costcut.dev
- Go to Settings → API Keys
- Click "Create Key"
- Copy the key (starts with
cg_live_)
4. Authenticate CLI¶
cost-guard auth set cg_live_<your_key_here>
Verify:
cost-guard auth status
5. Push Sessions¶
Scan your Claude Code projects and upload session data:
cost-guard push
By default, uploads sessions from last 30 days. Customize with --since:
cost-guard push --since 7 # last 7 days
6. View Dashboard¶
Open https://app.costcut.dev/dashboard to see usage analytics.
Next Steps¶
- CLI Reference — all commands
- Hooks Bundle — automate token tracking
- API Reference — integrate programmatically