Token Lens — Data skill for Claude Code
Local-only dashboard for AI coding sessions.
How to install Token Lens
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open FreePeak/token-lens and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Lens does
Local-only dashboard for AI coding sessions. Track turns, tokens, and cost across Cursor, Claude Code, and OpenCode. All data stays on your machine.
Alternatives in Data
- Portaljs Add Resource — Add another file (resource) to an EXISTING dataset in a PortalJS portal — a data dictionary, methodology, or a 2.3k ★
- Opencode Mem — OpenCode plugin that gives coding agents persistent memory using local vector database 1.5k ★
- Memex — Open-source, local-first AI journal app for iOS and Android 697 ★
README
See exactly where your AI coding budget goes — turns, tokens, and cost per session.
Quick start · Features · Dashboard · CLI · Supported tools · Contributing
What is Token Lens?
**Token Lens** is a local-first dashboard that turns your AI coding sessions into transparent cost and usage data. It reads from Cursor's local state database, captures live hooks, and estimates spending based on each model's public API pricing.
No data leaves your machine. Nothing is uploaded. The privacy guarantee is baked into the architecture.
If you use AI coding tools daily, you've probably asked: *"How many tokens did that session burn?"* or *"Which model is driving up my bill?"* Token Lens answers those questions — for free, offline, and instantly.
Quick start
# Requires Bun ≥1.0 — install: https://bun.sh
git clone https://github.com/FreePeak/token-lens.git
cd token-lens
# Install dependencies
bun install
cd dashboard && bun install && cd ..
# Import historical sessions from Cursor
bun run back
Related Skills
Tokdash
Agent Dashboard: Visualization and analytics for Sessions and Quota Usage. Track, analyze, and optimize token
Coding Agent Usage
Live local dashboard for AI coding-tool usage — Claude Code, Claude Desktop, Codex, GitHub Copilot, Cursor, op
Dashboard For Claude Code
A local Claude Code dashboard for personal analytics: track token usage, API-equivalent cost, sessions, tools,
Budi
Local-first cost analytics for AI coding agents. See where your tokens and money go across Claude Code, Cursor
AI Usage MCP
A local-first MCP server that answers, from real data on your machine: How many tokens have I used, from which
Pulse Analytics
Local-first analytics for Claude Code, OpenAI Codex and OpenCode. Track tokens, costs, cache efficiency and ac
Related Agents
Cost Governor
Track aggregate token spend and API costs across all agent operations. Enforce budget constraints, detect cost
Context Auditor
Use proactively when the user wants to cut Claude Code token cost or asks "why is this session so expensive /
Usage Scout
Read-only scout for session, token, and cost code in this FastAPI tracker. Use when the user asks where usage