Tokendraw — AI skill for Claude Code
Estimate the energy usage and emissions of LLM coding agent use.
How to install Tokendraw
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Agency-Games/tokendraw and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tokendraw does
Estimate the energy usage and emissions of LLM coding agent use.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Surface — Show ranked attack surface for a target from its recon manifest + hunt memory 3.8k ★
README
tokendraw
Tokendraw is a command line tool for estimating the energy usage and emissions of LLM coding agent use.
Tokendraw currently supports Claude Code, Codex, pi, as well as custom adapters for other tools. It reviews the logs of these tools, counts the tokens of model calls, estimates the electricity used to serve those calls, and the emissions from producing that electricity. The embodied emissions of hardware, training or water use are not estimated yet.
Getting started
npm install -g tokendraw
or `cargo install --locked tokendraw` (see [Building from source](#building-from-source)). Then:
tokendraw report
The first run reads all your agents' logs, which can take a minute. The coverage table shows where tokendraw looked for each agent's logs - if it says `not found` for an agent you use, see [Where the logs are](#where-the-logs-are) for the variable that points tokendraw to them.
On Windows, use PowerShell: the commands tokendraw suggests are quoted for it.
Next, run `tokendraw projects` to assign calls that belong to no project (see [Projects](#projects)), and if the report names agents or models tokendraw cannot read or has no data for, [send us your setup](#sending-us-your-setup).
Configuring for your setup
Where the logs are
Tokendraw reads each agent's logs where the agent writes them, from the same environment variables:
- Claude Code:
$CLAUDE_CONFIG_DIR/projects, else~/.claude/projects - Codex:
$CODEX_HOME/sessions, else~/.codex/sessions - pi:
$PI_CODING_AGENT_SESSION_DIR, else$PI_CODING_AGENT_DIR/sessions, else~/.pi/agent/sessions
Sessions pi keeps elsewhere through its `--session-dir` option or `sessionDir` setting are not read.
Projects
A call belongs to the project of the Git checkout its working directory is in, including a directory that was removed if tokendraw saw it while it existed. Calls it cannot place, such as those of worktrees removed before tokendraw first ran, stay
Related Skills
Environmental Impact Tracker
A Claude Code skill that translates AI token usage into real-world environmental impact (energy, water) with r
Token Cost Tracker
Estimate, log, and report token usage using runtime-supplied billing rates; never rely on embedded model price
Gauge Calibrate
Refresh the tracked model's (default Fable) weekly % estimate from claude.ai/settings/usage -- the one number
Agent Carbon Tracker
Track carbon footprint of AI agent operations. EcoLogits-based LLM energy estimation for ESG reporting. Works
Renewable Energy Orchestrator
Agentic renewable energy orchestrator: an LLM-guided agent (Claude, Gemini or Grok) plus a stochastic MILP pla
Cost Check
Estimate LLM token cost for a feature, prompt, or workflow — with optimization recommendations
Related Agents
Timps Battery Analyst
Identify battery drainers. Reads battery %, health cycle count, and ranks processes by CPU usage (proxy for en
LLM Performance Analyst
Evaluates LLM agent performance from session transcripts — token usage, tool-call efficiency, and error patter
Nova
Specialiste AI tooling. A invoquer pour evaluer un outil AI (LLM, framework d'agents, MCP, vector DB, coding a