tokentracker-cli 0.5.91 → 0.5.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dashboard/dist/assets/{main-CHSJgtKj.js → main-BvlEZHQ6.js} +179 -178
- package/dashboard/dist/index.html +1 -1
- package/dashboard/dist/share.html +1 -1
- package/package.json +3 -1
- package/src/commands/init.js +41 -2
- package/src/commands/serve.js +11 -0
- package/src/commands/status.js +31 -2
- package/src/commands/sync.js +28 -0
- package/src/commands/uninstall.js +18 -1
- package/src/lib/claude-config.js +16 -2
- package/src/lib/local-api.js +11 -116
- package/src/lib/pricing/curated-overrides.json +33 -0
- package/src/lib/pricing/index.js +135 -0
- package/src/lib/pricing/litellm-fetcher.js +172 -0
- package/src/lib/pricing/matcher.js +149 -0
- package/src/lib/pricing/seed-snapshot.json +1 -0
- package/src/lib/rollout.js +284 -0
- package/src/lib/tracker-paths.js +1 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
### Know exactly what you're spending on AI — across every CLI
|
|
8
8
|
|
|
9
|
-
Auto-collect token counts from **
|
|
9
|
+
Auto-collect token counts from **12 AI coding tools**, aggregate them locally, see real cost trends in a beautiful dashboard, **and install the same Skills across every agent in one click**. No cloud account, no API keys, no setup — just one command.
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/tokentracker-cli)
|
|
12
12
|
[](https://www.npmjs.com/package/tokentracker-cli)
|
|
@@ -78,7 +78,7 @@ Upgrade with `brew upgrade --cask mm7894215/tokentracker/tokentracker`. The tap
|
|
|
78
78
|
|
|
79
79
|
## ✨ Features
|
|
80
80
|
|
|
81
|
-
- 🔌 **
|
|
81
|
+
- 🔌 **12 AI tools out of the box** — Claude Code, Codex CLI, Cursor, Gemini CLI, Kiro, OpenCode, OpenClaw, Every Code, Hermes Agent, GitHub Copilot, Kimi Code, CodeBuddy
|
|
82
82
|
- 🧩 **Skills manager** — browse 250+ public skills from `anthropics/skills`, `ComposioHQ/awesome-claude-skills`, `skills.sh` and any GitHub repo you add; install once and sync to Claude / Codex / Gemini / OpenCode / Hermes with per-target toggles; one-click Undo
|
|
83
83
|
- 🏠 **100% local** — Token data never leaves your machine. No account, no API keys.
|
|
84
84
|
- 🚀 **Zero config** — Hooks auto-install on first run. From zero to dashboard in 30 seconds.
|
|
@@ -86,7 +86,7 @@ Upgrade with `brew upgrade --cask mm7894215/tokentracker/tokentracker`. The tap
|
|
|
86
86
|
- 🖥️ **Native macOS app** — Menu bar status icon, embedded server, WKWebView dashboard
|
|
87
87
|
- 🎨 **4 desktop widgets** — Pin Usage / Activity Heatmap / Top Models / Usage Limits to your desktop
|
|
88
88
|
- 📈 **Real-time rate limit tracking** — Claude / Codex / Cursor / Gemini / Kiro / Copilot / Antigravity quota windows with reset countdowns
|
|
89
|
-
- 💰 **Cost engine** —
|
|
89
|
+
- 💰 **Cost engine** — 2,200+ models priced via [LiteLLM](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json) (auto-refreshed daily) + curated overrides for niche tools (Kiro, Cursor Composer, Kimi, CodeBuddy hy3); 24h disk cache + bundled offline snapshot mean accurate USD without an internet connection. Models without published vendor pricing (e.g. Tencent hy3-preview) are tracked by tokens but show $0 cost until the vendor publishes a rate.
|
|
90
90
|
- 🌐 **Optional leaderboard** — Compare with developers worldwide; drag-to-reorder columns to focus on the providers you care about (opt-in, sign in to participate)
|
|
91
91
|
- 🔒 **Privacy-first** — Only token counts and timestamps. Never prompts, responses, or file contents.
|
|
92
92
|
|
|
@@ -155,9 +155,10 @@ Upgrade with `brew upgrade --cask mm7894215/tokentracker/tokentracker`. The tap
|
|
|
155
155
|
| **Hermes Agent** | ✅ Auto | SQLite sessions table (`~/.hermes/state.db`) |
|
|
156
156
|
| **GitHub Copilot** | ✅ Auto | OpenTelemetry file exporter (`COPILOT_OTEL_FILE_EXPORTER_PATH`) |
|
|
157
157
|
| **Kimi Code** | ✅ Auto | Passive `wire.jsonl` reader (`~/.kimi/sessions/**/wire.jsonl`) |
|
|
158
|
+
| **CodeBuddy** (Tencent) | ✅ Auto | SessionEnd hook in `~/.codebuddy/settings.json` (Claude-Code fork) |
|
|
158
159
|
|
|
159
160
|
> **Do I need to install any plugin or hook manually?** No. `tokentracker` (or `tokentracker init`) handles everything on first run:
|
|
160
|
-
> - **Hook-based** tools (Claude Code, Codex, Gemini, Every Code) — we write a SessionEnd hook or TOML notify entry into the tool's own config.
|
|
161
|
+
> - **Hook-based** tools (Claude Code, Codex, Gemini, Every Code, **CodeBuddy**) — we write a SessionEnd hook or TOML notify entry into the tool's own config.
|
|
161
162
|
> - **Plugin-based** tools (OpenCode, **OpenClaw**) — the plugin ships inside the npm package (`~/.tokentracker/app/openclaw-plugin/`). We link it via the tool's own CLI (`openclaw plugins install --link …` + `enable`). No download, no drag-and-drop.
|
|
162
163
|
> - **Passive readers** (Cursor, Kiro, Hermes, Kimi Code, Copilot) — nothing is installed into those tools. We only read files they already produce (SQLite DB, JSONL, OTEL export).
|
|
163
164
|
>
|
|
@@ -173,7 +174,7 @@ Missing your tool? [Open an issue](https://github.com/mm7894215/TokenTracker/iss
|
|
|
173
174
|
|
|
174
175
|
| | **TokenTracker** | ccusage | Cursor stats |
|
|
175
176
|
|--------------------------|:---:|:---:|:---:|
|
|
176
|
-
| **AI tools supported** | **
|
|
177
|
+
| **AI tools supported** | **12** | 1 (Claude) | 1 (Cursor) |
|
|
177
178
|
| **Local-first, no account** | ✅ | ✅ | ❌ |
|
|
178
179
|
| **Native menu bar app** | ✅ | ❌ | ❌ |
|
|
179
180
|
| **Desktop widgets** | ✅ 4 widgets | ❌ | ❌ |
|
|
@@ -185,7 +186,7 @@ Missing your tool? [Open an issue](https://github.com/mm7894215/TokenTracker/iss
|
|
|
185
186
|
|
|
186
187
|
```mermaid
|
|
187
188
|
flowchart LR
|
|
188
|
-
A["AI CLI Tools<br/>Claude · Codex · Cursor · Gemini · Kiro<br/>OpenCode · OpenClaw · Every Code · Hermes · Copilot · Kimi Code"]
|
|
189
|
+
A["AI CLI Tools<br/>Claude · Codex · Cursor · Gemini · Kiro<br/>OpenCode · OpenClaw · Every Code · Hermes · Copilot · Kimi Code · CodeBuddy"]
|
|
189
190
|
A -->|hooks trigger| B[Token Tracker]
|
|
190
191
|
B -->|parse logs<br/>30-min UTC buckets| C[(Local SQLite)]
|
|
191
192
|
C --> D[Web Dashboard]
|