Skip to content
Security
Command

/tokens

Show token usage and estimated cost per model from your local AKA store

From plugin
ai-tc
1010 skills10 commands
Install
$ npx -y skills add akasecurity/ai-tc --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/tokens

Context preview

What this command does when you run it.

Show token usage and estimated cost per model from your local AKA store

Command definition

tokens.md
description: Show token usage and estimated cost per model from your local AKA store

AKA tokens

Run the read script and show the user its output **exactly as printed**. The script already prints its content inside a Markdown code fence — reproduce that verbatim and do **not** add another code fence, strip the fence, or reformat it. The fence is required: it is space-aligned monospace (a per-model usage table) that Markdown would otherwise collapse. Do not reformat or summarize the table; you may add at most one short sentence of context after it.

node "${CLAUDE_PLUGIN_ROOT}/scripts/query.js" tokens

This reads the local store at `~/.aka/data/aka.db` (token counts reconciled from your Claude Code transcripts, grouped by provider/model, with estimated USD cost). It is read-only. Token counts are exact; cost is **derived** at read time — a `—` means unknown pricing (a local or non-Anthropic model), so a `≥` total is a lower bound, not an understatement. If the store is empty, the script says so — relay that as-is; nothing is wrong.

Ships withai-tc

AKA Security — We secure agent harnesses at the source. AI Traffic Control (ai-tc) is an open-source control plane for coding agents.

Get the whole plugin, auto-invoked
Stats
10
Stars
0
Views
0
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
17h ago
Last commit
28d ago
Created

Repo: akasecurity/ai-tc