Cc Token — Development skill for Claude Code
Claude Code usage dashboard in your macOS menu bar — costs, tokens, plan limits, trends, multi-machine sync.
How to install Cc Token
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jayson-jia-dev/cc-token and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cc Token does
Claude Code usage dashboard in your macOS menu bar — costs, tokens, plan limits, trends, multi-machine sync.
Alternatives in Development
- Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
- Cc Bar — Native macOS menu bar app: track quota, usage and cost for Codex (multi-account) and Claude Code, from your me 119 ★
- Agent Cat Releases — Agent Cat downloads — a free macOS menu bar and Windows tray app that shows Claude Code, Codex and Gemini CLI 57 ★
README
cc-token
macOS 菜单栏里的 AI Agent 额度看板。只显示账户余额、订阅剩余额度与重置时间,工作日(周一至周五)本地时间 09:00–22:00 每 30 分钟自动查询,也可点击「刷新额度」立即查询。
菜单全部展开,统一收进「全部额度」一屏:API 余额、订阅额度、Antigravity 依次排列,不再分区标题。Antigravity 每个账号一行,只显示 Gemini 的 5h / 每周百分比(Claude/GPT 分组不展示);查询、缓存及账号登录状态不受展示调整影响。
支持的额度
| 来源 | 展示内容 | 读取方式 |
|---|---|---|
| Codex API / 中转 | 余额、接口提供的总额与剩余比例 | 已配置的 HTTPS /usage 接口 |
| OpenAI API(个人) | 本月已花费(组织账单、本地自然月) | 官方组织 costs API,使用独立 Admin Key |
| Codex 订阅 | 所有本机已配置账号的周期额度、重置时间、额外积分 | 默认 Codex 登录、指定 profile、CodexRunway 账号注册表 |
| DeepSeek API | 真实余额和币种 | 官方 /user/balance |
| Kimi Code 订阅 | 服务返回的 5 小时、周或月度总额度 | Kimi Code API key |
| Grok / GrokBot 订阅 | 套餐标签、周/月包含额度剩余、重置时间与产品分项(如 GrokBot 已用占比) | 只读 ~/.grok/auth.json、grok_homes 或 CodexRunway/Quosparr grok-index.json,调用官方 CLI /v1/billing?format=credits(不读浏览器 Cookie、不改写登录态) |
| Gemini / Antigravity | Gemini 分组的周期额度(忽略 Claude/GPT 分组) | 官方 agy --print /usage;gemini.antigravity_profiles 可配置多个 HOME 以显示多个账号,未配置时读当前登录;未安装 CLI 时读取本机 OAuth |
Codex API 余额与 Codex 订阅分开展示。周期名称来自接口,不假设每个订阅都有 5 小时与每周两个窗口。Kimi 的月度 Code 子池与月度总池共享上限,只展示总池,避免重复计算。Gemini 网页版、Gemini CLI 与 Antigravity 使用不同额度,本看板只读取 Antigravity 本机登录。多账号:`gemini.antigravity_profiles` 为列表,每项可含 `home`(该账号的 HOME,省略表示当前登录)与可选 `name`(显示名);看板对每个 HOME 分别运行官方 CLI 并汇总为多行。
不访问 Claude,不扫描对话,不显示累计成本、Token 历史、节省金额、等级、排行或跨机统计。旧的历史和同步文件留在原位置,不再读取。
原生 macOS 菜单栏 App(CCQuota.app)
除 SwiftBar 插件模式外,仓库 `macos/` 提供零第三方依赖的原生 SwiftUI 菜单栏 Popover 应用,直接复用 `cc-token.5m.py --json` 与限频缓存引擎,支持深浅模式卡片看板、点击展开详情,以及菜单栏「双行四指标(C/G/K/A) / 极简水位柱 / 单行精简」三种样式(右键菜单切换):
./macos/build.sh --install
open -g "$HOME/Applications/CCQuota.app"
安装(SwiftBar 模式)
需要 macOS、Python 3.9+、curl 和 [SwiftBar](https://github.com/swiftbar/SwiftBar)。
brew install --cask swiftbar
curl -q -fsS https://raw.githubusercontent.com/jayson-jia-dev/cc-token/main/install.sh | bash
安装与更新都保留原配置。安装文件必须通过 SHA256 检查。旧命名插件及可执行备份会移到配置目录下的 `retired-plugins.*`,避免继续运行 Claude 查询,不删除历史数据或其他插件。插件不在后台自行覆盖源码;后续更新需再次运行安装命令。本机尚未推送的
Related Skills
Token Bar
macOS menu-bar app: token usage, cost & rate limits for Claude Code, Codex CLI, Gemini CLI
Claude Token Manager
A native macOS menu bar app that mirrors Claude's plan usage limits, powered by local Claude Code logs
Tokease
macOS menu bar app showing your remaining Claude 5-hour and weekly usage limits. No token read, 100% local.
Quota Monitor
Native macOS menu-bar app for Codex and Claude Code quotas, reset times, and usage trends.
Tokens Gone
Local dashboard for Claude Code token usage and costs. Reads ~/.claude/projects//.jsonl, aggregates spend, sli
AccountDeck
One menu bar app for all your Claude, Claude Code, Codex and ChatGPT accounts: one-click switching, live usage
Related Agents
macOS UI Dev
Implements SwiftUI/AppKit changes in the Hoply app target — the menu bar panel, the v2 Dashboard window, comma
Apple UI Designer
Visual and theme redesigns in current Apple design language (macOS 27 / iOS 26+ Liquid Glass, vibrancy, system
Cost Estimator
Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/