Helios
Track and attribute LLM usage (tokens + cost) to git feature branches during real development workflows.
Like ccusage, but for feature-level AI cost tracking.
Install
pip install helios-cli
Or from source:
git clone https://github.com/AlexanderKempen/helios.git
cd helios
pip install -e .
Quick start
# Import usage from your Claude Code sessions
helios sync
# See cost per feature branch
helios report
That's it. Zero config.
Commands
helios sync
Import usage from Claude Code interactive sessions. Reads the session logs in ~/.claude/projects/ and attributes token usage to the git branch that was active during each conversation.
Incremental — only imports new activity on each run.
$ helios sync
Syncing Claude Code sessions...
Imported 3,197 usage events from Claude Code.
helios run "prompt"
Send a prompt directly through Claude CLI and track usage in one step.
$ helios run "build an API endpoint for user registration"
<Claude response>
[helios] feature=ai-search tokens=2,100 cost=$0.03
helios report
Aggregated cost, tokens, and call count per feature branch, sorted by spend.
$ helios report
AI Usage Report
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Feature ┃ Cost ┃ Tokens ┃ Calls ┃ Top Model ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ auth-refactor │ $142.50 │ 9,500,000 │ 85 │ claude-opus-4-6 │
│ billing-v2 │ $38.20 │ 2,540,000 │ 42 │ claude-opus-4-6 │
│ search-indexing │ $12.10 │ 800,000 │ 18 │ claude-opus-4-6 │
└────────────────────┴──────────┴────────────┴───────┴─────────────────┘
helios analyze
Send your usage summary to Claude for cost optimization insights.
helios analyze
helios start
Confirm tracking is active for the current branch (optional — all commands auto-detect the branch).
How it works
helios syncreads Claude Code's JSONL session logs (~/.claude/projects/)- Extracts token usage, model, and git branch from each assistant response
- Calculates cost using per-model pricing
- Stores events in a local SQLite database (
~/.helios/helios.db) helios reportaggregates per feature branch
All data stays local. No cloud, no auth, no config files.
Requirements
- Python 3.10+
- Claude Code CLI (for
syncandruncommands)
License
MIT
Metadata
Release files for helios-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| helios_cli-0.1.0.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| helios_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.1 kB
Release files / helios_cli-0.1.0.tar.gz
| Download URL | helios_cli-0.1.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a182958aaa11eb97bbf90b87114bfb5332ab0926c1ed31a2184dbdc65bb1fbc6
|
|
BLAKE2b-256 checksum How to use checksums |
fc57ad2dadb3a6e09a4c900e2b68714284b4194e560e9a65268a3e91c69df0a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / helios_cli-0.1.0-py3-none-any.whl
| Download URL | helios_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b204ce1dc57e2e55a46a660b85863fa4fc119a0c10c96b76e1f2b60d5a2a81a
|
|
BLAKE2b-256 checksum How to use checksums |
3d7bc471b2aef4776d691027933325a38d314ad710db48245fa26cbf7e590cd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|