Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
- Trend bars by hour, day or month, split by provider; switch between cost, tokens and active time.
- Live plan limits for Claude and Codex: plan badge, % used, time to reset, reset credits, a warning when you're
on pace to run out, what 100% of a limit is worth, and what your plan is worth vs its price ("44×").
- Each plan shows when its reading was taken. If a check fails, that plan shows the cause and uses the newest
saved reading with a limit window that is still active.

**Unfolded ("Show all")**
- Breakdown by provider, model, project, device or day; click any row to filter the whole panel.
Expand Down Expand Up @@ -96,6 +98,10 @@ itself in `~/Library/Application Support/Tokenly/`.

`$CLAUDE_CONFIG_DIR` and `$CODEX_HOME` are respected.

The macOS app also reads Codex's archived sessions and uses `zstd` on `.jsonl.zst` logs when available.
Monthly usage keeps tokens for models without prices and marks the API cost estimate as incomplete.
Plan weeks use saved limit readings, even when a current limit cannot be refreshed.

## Development

```bash
Expand All @@ -108,6 +114,15 @@ TOKENLY_DEMO=1 macos/build/Tokenly.app/Contents/MacOS/Tokenly --snapshot out.png
[--tall] [provider=…] [model=…] [project=…] [device=…] [mode=…] [hover=N]` renders the panel to a PNG;
`TOKENLY_DEMO=1` uses made-up data.

Run the macOS history regression test with `zstd` installed.

```bash
tokenly_test_dir=$(mktemp -d)
swiftc -D TOKENLY_HISTORY_TESTS macos/main.swift tests/macos_history.swift -o "$tokenly_test_dir/history-test"
CFFIXED_USER_HOME="$tokenly_test_dir" CODEX_HOME="$tokenly_test_dir/codex" \
CLAUDE_CONFIG_DIR="$tokenly_test_dir/claude" "$tokenly_test_dir/history-test"
```

## License

MIT
2 changes: 1 addition & 1 deletion macos/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<key>CFBundleExecutable</key><string>Tokenly</string>
<key>CFBundlePackageType</key><string>APPL</string>
<key>CFBundleShortVersionString</key><string>1.0.0</string>
<key>CFBundleVersion</key><string>34</string>
<key>CFBundleVersion</key><string>36</string>
<key>LSMinimumSystemVersion</key><string>13.0</string>
<key>CFBundleIconFile</key><string>Tokenly</string>
<key>LSUIElement</key><true/>
Expand Down
Loading
Loading