by stormzhang
Track token usage across local AI agents (Claude Code, Codex) — CLI dashboard with cost analysis, rate limit monitoring, and session tracking
# Add to your Claude Code skills
git clone https://github.com/stormzhang/token-trackerGuides for using ai agents skills like token-tracker.
本地 AI Agent Token 消耗追踪/分析工具,支持 Claude Code 和 Codex 。
自定义 StatusLine 状态栏 + CLI Dashboard,实时查看 token 用量、等效成本、限额状态。
自动为 Claude Code 和 Codex 配置状态栏,tt setup 一键配置,脚本更新时自动升级。
Claude Code:项目名、5h/7d 配额进度条、CTX 窗口占比、Token 用量、模型名

Codex:项目名、5h/7d 配额、上下文剩余、模型名





curl -sSL https://raw.githubusercontent.com/stormzhang/token-tracker/master/install.sh | bash
No comments yet. Be the first to share your thoughts!
或者通过 pip:
pip install --force-reinstall token-tracker
tt setup
tt setup # 初始化配置 Claude Code + Codex status_line
tt # 交互式 Dashboard(方向键切换 Agent)
tt claude # 仅展示 Claude Code
tt codex # 仅展示 Codex
tt daily # 按日汇总(按 token 消耗排序)
tt weekly # 按周汇总(多 Agent 分组展示)
tt monthly # 按月汇总(多 Agent 分组展示)
tt sessions # 最近 20 条会话明细数据
tt unsetup # 卸载并恢复安装前的配置
未来持续增加更多数据报表,多维度分析。
Copyright (c) 2026 stormzhang. MIT License.