UsageBar — AI skill for Claude Code
macOS 菜单栏工具,聚合显示多个 AI 编程/Agent工具(Claude Code / Codex / Cursor / Qoder / 悟空/ Workbuddy 等)的 token 用量,全本地直读零配置.
How to install UsageBar
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ChanningYuan/usageBar and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What UsageBar does
macOS 菜单栏工具,聚合显示多个 AI 编程/Agent工具(Claude Code / Codex / Cursor / Qoder / 悟空/ Workbuddy 等)的 token 用量,全本地直读零配置.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
usageBar
macOS 菜单栏工具,聚合显示 13 个 AI 编程工具(Claude Code / Cowork / Codex / Cursor / Qoder 全家桶 / 千问办公 / 悟空 等)的 token 用量与账号额度,全本地直读、零配置。
**Swift 6 · macOS 14+ · Apple Silicon**
在 macOS 状态栏一眼看到你今天 / 近 7 天 / 近 30 天 / 累计在各个 AI 编程工具上烧了多少 token。token 统计除 Cursor 外都直接读取各工具落在本地的会话记录(jsonl / SQLite);账号额度和千问办公积分历史属于可选联网能力,首次开启会明确提示授权。
除 token 用量外,还会显示**账号额度**(订阅套餐的用量上限与已用比例、重置时间),额度数据同样优先走本地已有的凭证与缓存。
🥇 **GitHub 上唯一一个把 Qoder 全家桶(CLI / Work / IDE)token 全部打通可计量的项目。** 三条产品线各自落盘的格式完全不同(npm transcript jsonl / 应用日志 mirror / SQLite),usageBar 把它们统一读出来,一个菜单栏就能看全。
菜单栏一览 — 12 个工具的用量条形图 + 缓存命中率,合计直接显示在菜单栏上
|
点进去看细节 — 账号额度与重置时间、Token 四维构成、按来源 / 按模型 / 按会话拆分与等效花费
|
支持的 Provider
| Provider | 数据源 | 说明 |
|---|---|---|
| Claude Code | ~/.claude/projects/**/*.jsonl |
订阅 / API / 云渠道 / 中转都落在同一份日志里,主列表统一聚合;官方直连与中转代理的拆分在详情页「按来源」区(v0.3.21 起,此前的订阅 / API 二分是错的口径) |
| Claude Cowork ⭐ | ~/Library/Application Support/Claude/local-agent-mode-sessions/**/.claude/projects/**/*.jsonl |
每个 Cowork 会话在自己的沙箱里跑一个 Claude Code,落盘格式与主目录一致。主流工具(ccusage 等)只扫 ~/.claude/projects,会漏掉 Cowork |
| Qoder(CLI) 🥇 | ~/.qoder/projects/**/*.jsonl |
npm qodercli 1.0.x+ transcript,完整 4 列 |
| Qoder(Work) 🥇 | ~/Library/Application Support/QoderWork/logs//main.log |
增量 mirror 到本地 jsonl,精确 input/output 两列 |
| Qoder(IDE) 🥇 | ~/Library/Application Support/Qoder/SharedClientCache/.../local.db |
直读 SQLite chat_message.token_info |
| 千问办公 | 本地 segment + 可选 qwenwork.cn/user/billings |
逐请求去重;精确 input/output/cache read(当前协议无 cache write);账单缓存支持按周期查看真实积分消耗 |
| Codex(OpenAI) | rollout jsonl | 累计值,跨窗口做差分 |
| 悟空 | 本地 jsonl | flat 结构,毫秒时间戳 |
| WorkBuddy | `~/ |
Related Skills
Token Watcher
⏱ Token Watcher — local real-time token usage & quota dashboard for AI coding agents (Claude Code, ccmr, Codex
Assetplex
Sync your identity, skills, rules & MCP servers across Claude Code, Codex, TRAE, WorkBuddy and Qoder. One hub,
TokenBar
AI token usage & quota monitor for the macOS menu bar — native Swift, Liquid Glass, 3D contribution graph. Tra
SkillTrans
A powerful CLI tool that automatically converts Claude Code Skills into native configurations for Trae, Cursor
Vibe Bar
Native macOS menu-bar dashboard for AI subscription quotas, reset forecasts, local token costs, and provider s
Sissy
Menubar meter for AI coding CLIs on macOS. Today's token spend, cost and rate-limit headroom for Claude Code a
Related Agents
Async Code
Use Claude Code or CodeX CLI to perform multiple tasks in parallel with a Codex-style UI, functioning as a per
Monk Installer
Install, upgrade, and troubleshoot monk-agent plus Monk CLI/daemon for Claude, Codex, and Cursor users.
Slim Wrapper
tfx-route.sh 경유 전용 래퍼 에이전트. 코드를 직접 읽거나 수정하지 않고 Bash(tfx-route.sh)를 통해 Codex/Antigravity에 위임하는 thin wrapper. OS
菜单栏一览 — 12 个工具的用量条形图 + 缓存命中率,合计直接显示在菜单栏上
点进去看细节 — 账号额度与重置时间、Token 四维构成、按来源 / 按模型 / 按会话拆分与等效花费