
Aka tokens
Shows per-model token usage and estimated cost from a local AKA store
Aka tokens is an open-source agent skill for developer tools. It is available on Codex.
- Scripts
- None
- Platforms
- Codex
- GitHub stars
- 17
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Aka tokens
This skill runs a bundled Node script that reads a local AKA database and returns a table of token usage grouped by provider and model, with estimated USD cost for each. The agent is told to show the script output exactly as printed, inside the code fence the script already produces, so the aligned table stays readable.
Token counts come from Codex CLI rollout files that have been reconciled into the store, and the script only reads the data. Cost is calculated when the report is generated. Where pricing is unknown, for example for local or non-OpenAI models and gateways, the cost shows as a dash, and the total is then a lower bound.
The skill expects the AKA local store at the default path in the home directory and a Node runtime to execute the script. If the store has no data, the script reports that and the agent passes the message along.
When your agent uses it
Show token usage and estimated cost per model from your local AKA store
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (1 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/aka-tokens to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/akasecurity/ai-tc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/aka-tokens &&
cp -R "$tmp/plugins/codex/skills/tokens" ~/.claude/skills/aka-tokens &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/aka-tokens inside it instead.
Copy the skill folder to ~/.agents/skills/aka-tokens to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/akasecurity/ai-tc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/aka-tokens &&
cp -R "$tmp/plugins/codex/skills/tokens" ~/.agents/skills/aka-tokens &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/aka-tokens inside it instead.
Copy the skill folder to ~/.cursor/skills/aka-tokens to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/akasecurity/ai-tc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/aka-tokens &&
cp -R "$tmp/plugins/codex/skills/tokens" ~/.cursor/skills/aka-tokens &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/aka-tokens inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/akasecurity/ai-tc.git --path plugins/codex/skills/tokensOr copy the folder to ~/.gemini/skills/aka-tokens yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/aka-tokens:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/akasecurity/ai-tc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/aka-tokens &&
cp -R "$tmp/plugins/codex/skills/tokens" ~/.copilot/skills/aka-tokens &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/aka-tokens inside it instead.
Get the folder:
git clone --depth 1 https://github.com/akasecurity/ai-tc.gitThen copy ai-tc/plugins/codex/skills/tokens into your agent's skills folder as aka-tokens. Agents that support SKILL.md read one folder per skill.
What it does
- Per-model usage table
- Lists token counts grouped by provider and model from the local store.
- Estimated cost totals
- Derives USD cost at read time from known model pricing.
- Read-only queries
- Reads the local database without modifying stored records.
- Unknown pricing handling
- Marks models with no known pricing and flags totals as lower bounds.
- Verbatim output
- Instructs the agent to reproduce the script's formatted table unchanged.
Good for
- Show how many tokens I used per model this week
- Estimate what my Codex CLI sessions have cost so far
- Check which models account for most of my token usage
- Report whether my local usage store is empty
Aka tokens FAQ
What does the skill need to run?
It runs a bundled Node script that reads the AKA database at ~/.aka/data/aka.db, so that store must exist locally.
Does Aka tokens change my data?
No, the script is read-only.
Why does some cost show as a dash?
A dash means pricing is unknown, which applies to local or non-OpenAI models and gateways, so the total becomes a lower bound.
Where do the token counts come from?
They are reconciled from Codex CLI rollout files into the local store.
How do I install Aka tokens in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/aka-tokens to use it in all your projects, or to .claude/skills/aka-tokens in one project.
Does Aka tokens run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Aka tokens?
Codex. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Aka tokens?
The closest alternatives to Aka tokens are Sessions, Dashboard, Session waste report, Cost aware LLM pipeline and Monitor AI quality.
Where this comes from
- Description: from the skill's own SKILL.md.
More from akasecurity/ai-tc

Shows recent AKA enforcement decisions: blocks, redactions, warnings and allows
- Open source
- 17 GitHub stars
- Security

Launches the AKA security web dashboard in your browser from your local store
- Open source
- 17 GitHub stars
- Analytics and data

Lists installed AKA detection packs with versions and pending update status
- Open source
- 17 GitHub stars
- Security

Lists active AKA detection exceptions from the local store, with values masked
- Open source
- 17 GitHub stars
- Security

Lists recent AKA security findings from the local store, with masked matches
- Open source
- 17 GitHub stars
- Security

Shows the local AKA security detection activity and posture summary for your agent
- Open source
- 17 GitHub stars
- Health and science




