Claude Code usage

cc-lens

Local analytics dashboard for Claude Code with no cloud or telemetry.

599 stars 92 forksUsage & cost trackers Source

Install

Install
npx cc-lens
From source
git clone https://github.com/Arindam200/cc-lens.git

From the README

Claude Code Lens (cc-lens)

Local analytics dashboard for Claude Code. No cloud, no telemetry, no API key, just your ~/.claude/ data, visualized.

The CLI finds a free local port, starts the dashboard, and opens it in your browser.

cc-lens 0.4.0 is out
Adds Insights, budgets, team adoption, terminal digest, Wrapped, and expanded project docs.
View the v0.4.0 release notes

Quick Start

Run directly with npx:

On first run, cc-lens prepares a small runtime cache in ~/.cc-lens/. After that, launches are faster.

What You Can See

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 config directory, set CLAUDE_CONFIG_DIR:

On Windows PowerShell:

The active config directory is shown in the CLI banner on launch.

CLI Options

The dashboard serves your private Claude Code history, so it binds to loopback (127.0.0.1) by default. cc-lens does not read the shell's HOSTNAME variable, so it works the same on WSL, containers, and CI. Override the host only if you understand the exposure.

There are also cc-lens push and cc-lens digest subcommands for team mode; see Team mode.

Run From Source

Prerequisites

- Node.js 20+
- Claude Code with local data in ~/.claude/

Development

Open http://localhost:3000, or the port shown in your terminal.

Production Build

For the packaged standalone bundle used by the CLI:

Checks

Project Docs

- Roadmap: planned improvements and non-goals.
- Known limitations: accuracy, compatibility, and runtime caveats.
- Compatibility: supported local files and reporting guidance.
- Contributing: local setup, PR…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
27 June 2026
Topics
ai-toolsanalyticsanthropicclaude-codeclaude-skillsclideveloper-toolslocal-firstnextjs

FAQ

What is cc-lens?

Local analytics dashboard for Claude Code with no cloud or telemetry. It is a usage for Claude Code, from Arindam200/cc-lens on GitHub.

How do I install cc-lens?

Run npx cc-lens, then follow the setup in the README.

Is cc-lens popular?

Arindam200/cc-lens has 599 GitHub stars and 92 forks. It was last updated on 27 June 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.