atkusage

skill
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in scripts/demo/record.sh
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

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

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.

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.

Reviews (0)

No results found