Skip to content
프로젝트

소개

Token usage and API cost per account for Claude Code, Codex, Antigravity and Gemini CLI. Read-only, offline, single binary.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

CI npm License: MIT

$ 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 daily --last 2

atkusage weekly: usage per ISO week

atkusage weekly --last 2

atkusage monthly: usage per month

atkusage monthly

atkusage session: one row per session

atkusage session

atkusage blocks: 5-hour billing blocks

atkusage blocks --active --account Personal

atkusage accounts: every account seen

atkusage accounts

atkusage limits: Codex rate-limit windows

atkusage limits

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.json it reads only the account fields used for labels.

Docs

Usage · Configuration · JSON · How it works · Contributing · Security

License

MIT (LICENSE). Third-party data and fonts: NOTICE.

관련 프로젝트 살펴보기

불러오는 중…