
Claude Code Lens (cc-lens)
Local analytics dashboard for Claude Code. No cloud, no telemetry, no API key, just your ~/.claude/ data, visualized.
npx cc-lens
The CLI finds a free local port, starts the dashboard, and opens it in your browser.
[!NOTE] cc-lens 0.4.0 is out
Adds Insights, budgets, team adoption, terminal digest, Wrapped, and expanded project docs.
Quick Start
Run directly with npx:
npx cc-lens
On first run, cc-lens prepares a small runtime cache in ~/.cc-lens/. After that, launches are faster.
What You Can See
Overview![]() Track sessions, messages, tokens, cost, storage, trends, models, peak hours, projects, and recent activity. |
Sessions![]() Search sessions, replay JSONL conversations, inspect Markdown replies, tool calls, costs, tokens, and compactions. |
Costs![]() Review estimated spend, cache savings, project costs, model breakdowns, token usage, and pricing references. |
Insights![]() Find cache, model, compaction, plan-fit, budget, and savings opportunities from local usage patterns. |
Projects![]() Browse projects by sessions, duration, spend, languages, branches, MCP usage, agents, and top tools. |
Project Trends![]() Analyze project sessions, spend, language mix, branch activity, model usage, tools, and activity over time. |
Tools & Features![]() Compare tool rankings, categories, skill (slash-command) usage, MCP servers, feature adoption, errors, versions, and git branch usage. |
Activity![]() View activity calendars, streaks, active days, peak hours, day-of-week patterns, and usage consistency. |
Tasks![]() Browse Claude Code todos with search, status filters, task metadata, project context, and local file provenance. |
Workspace![]() Inspect workspace state, memory, settings, installed skills, plugins, MCP servers, and local storage usage. |
Wrapped![]() Create a yearly card with sessions, usage, spend, favorite tools, active projects, and local highlights. |
Export & Import![]() Export portable .cclens.json files with stats, metadata, facets, history, previews, and date filters. |
Import is preview-only right now. It shows which sessions are new or already present, but it does not write merged data back into ~/.claude/, to avoid corrupting live Claude Code files.
Multiple Claude Profiles
By default, cc-lens reads ~/.claude/. To point it at another Claude Code con











