Skip to content
Security
Skill

/tokens

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

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

How it fires

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

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/tokens

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

tokens.SKILL.md
name: aka-tokens
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 "${PLUGIN_ROOT}/scripts/query.js" tokens

This reads the local store at `~/.aka/data/aka.db` (token counts reconciled from your Antigravity CLI rollout files, 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-OpenAI model/gateway), 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
Stats
11
Stars
0
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
13h ago
Last commit
2mo ago
Created

Repo: akasecurity/ai-tc

Other skills on ai-tc.