# Aka tokens

> Aka tokens is an open-source agent skill for developer tools. Shows per-model token usage and estimated cost from a local AKA store. It is available on Codex.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Codex
- **Website:** https://github.com/akasecurity/ai-tc/tree/dev/plugins/codex/skills/tokens
- **Repository:** https://github.com/akasecurity/ai-tc
- **GitHub stars:** 17
- **License:** Apache-2.0
- **Skill name:** aka-tokens
- **Collection:** https://github.com/akasecurity/ai-tc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/akasecurity/ai-tc/tree/HEAD/plugins/codex/skills/tokens)
- [License: Apache-2.0](https://github.com/akasecurity/ai-tc/tree/HEAD/plugins/codex/skills/tokens)

## Features

- **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

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/aka-tokens` to use it in all your projects:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/aka-tokens` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/aka-tokens` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/akasecurity/ai-tc.git --path plugins/codex/skills/tokens
```

Or copy the folder to `~/.gemini/skills/aka-tokens` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/aka-tokens`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/akasecurity/ai-tc.git
```

Then 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.

## 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.

## Alternatives

- [Sessions](https://ai-powered.com/skills/sessions): Sessions is an open-source agent skill for developer tools.
- [Dashboard](https://ai-powered.com/skills/dashboard-localixai): Dashboard is an open-source agent skill for developer tools.
- [Session waste report](https://ai-powered.com/skills/session-waste-report): Session waste report is an open-source agent skill for developer tools.
- [Cost aware LLM pipeline](https://ai-powered.com/skills/cost-aware-llm-pipeline): Cost aware LLM pipeline is an open-source agent skill for developer tools.
- [Monitor AI quality](https://ai-powered.com/skills/monitor-ai-quality): Monitor AI quality is an open-source agent skill for developer tools.
- [Optimize](https://ai-powered.com/skills/optimize-localixai): Optimize is an open-source agent skill for developer tools.
- [Cachewise](https://ai-powered.com/skills/cachewise): Cachewise is an open-source agent skill for developer tools.
- [Claude API](https://ai-powered.com/skills/claude-api): Claude API is a free agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/aka-tokens-akasecurity
