viewtools-app/atkusage
关于
Token usage and API cost per account for Claude Code, Codex, Antigravity and Gemini CLI. Read-only, offline, single binary.
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文atkusage
Know which account spent your AI coding tokens.
atkusage (AI coding usage) reads the local logs of Claude Code, Codex, Antigravity and Gemini CLI and reports tokens and estimated cost per account, agent, model, day and session. Offline, read-only, one Rust binary.
$ atkusage daily --compact # illustrative numbers
╭──────────────────────────────────────────╮
│ ATKUsage · Daily Token Usage Report │
│ │
│ Period 9 Nov 2026 │
│ Accounts 2 │
│ Agents Claude Code, Codex │
│ atkusage.viewtools.app │
╰──────────────────────────────────────────╯
┌────────────┬───────────────┬────────────────┬───────────────┬───────────┬─────────┬─────────────────┐
│ Date │ Agent │ Account │ Models │ Input │ Output │ API Value (USD) │
├────────────┼───────────────┼────────────────┼───────────────┼───────────┼─────────┼─────────────────┤
│ 2026-11-09 │ All │ │ │ 1,912,407 │ 402,118 │ $48.10 │
├────────────┼───────────────┼────────────────┼───────────────┼───────────┼─────────┼─────────────────┤
│ │ - Claude Code │ me (Personal) │ - opus-5-5 │ 1,204,331 │ 251,092 │ $31.75 │
├────────────┼───────────────┼────────────────┼───────────────┼───────────┼─────────┼─────────────────┤
│ │ - Codex │ me (Work) │ - gpt-6.1-sol │ 708,076 │ 151,026 │ $16.35 │
├────────────┼───────────────┼────────────────┼───────────────┼───────────┼─────────┼─────────────────┤
│ Total │ │ │ │ 1,912,407 │ 402,118 │ $48.10 │
└────────────┴───────────────┴────────────────┴───────────────┴───────────┴─────────┴─────────────────┘
API Value = what this usage would cost at API prices; subscriptions are not billed per token.
Install
npx atkusage # run without installing (Node 18+)
npm install -g atkusage
curl -LsSf https://github.com/viewtools-app/atkusage/releases/latest/download/atkusage-installer.sh | sh
cargo install --git https://github.com/viewtools-app/atkusage
Prebuilt for macOS (arm64, x86_64) and Linux (arm64, x86_64, glibc 2.34+). No Windows yet.
Usage
| Command | Shows |
|---|---|
atkusage / atkusage daily |
Usage per day (bare atkusage: last 30 days) |
atkusage weekly |
Usage per ISO week, Monday start |
atkusage monthly |
Usage per month |
atkusage session |
One row per session |
atkusage blocks |
5-hour billing blocks per account |
atkusage accounts |
Every account seen |
atkusage limits |
Codex rate-limit windows |
atkusage daily --since 2026-11-01 --breakdown # per-model sub-rows
atkusage blocks --active # current block with projections
atkusage monthly --tool codex --json # machine-readable
Demos
The recordings below use synthetic logs (scripts/demo/record.sh); numbers are illustrative.
atkusage daily: usage per day

atkusage weekly: usage per ISO week

atkusage monthly: usage per month

atkusage session: one row per session

atkusage blocks: 5-hour billing blocks

atkusage accounts: every account seen

atkusage limits: Codex rate-limit windows

Accounts
Each row belongs to one account, labeled by alias, else email, else id. The account comes from the log itself (owner) or from the Claude config dir the log lives in (profile).
Anything else is unknown (old logs, removed or signed-out config dirs, all Antigravity and Gemini CLI logs) and is left out of the title's Accounts count.
Rename an account with [aliases]; see Configuration.
Privacy
- No network: the binary opens no sockets. The npm and shell installers fetch it from GitHub Releases once.
- No writes: it never creates, changes, locks or deletes a file.
- No credentials: from
.claude.jsonit reads only the account fields used for labels.
Docs
Usage · Configuration · JSON · How it works · Contributing · Security
License
探索相关项目
加载中…