Stop guessing.
Start measuring.

The open-source ROI dashboard that ties your AI agent token spend to actual git output.

~ terminal
$
$npx codelens-ai
Dashboard Preview

See exactly where your tokens go

A beautiful localhost dashboard that breaks down every dollar of your AI spend into actionable insights.

localhost:3457
CodelensAI Dashboard — Performance Overview with ROI Grade, Cost per Commit, and Line Survival Rate
Performance Overview
$0.00
Avg Cost / Commit
0%
Line Survival Rate
0%
Token Efficiency
0
Commits Shipped
$0.00
Total Tracked
Key Features

Everything you need to quantify your AI investment

From ROI grades to token-level analytics — comprehensive visibility into your AI coding spend.

ROI Grade

Get an A-F composite score based on cost-per-commit and line survival rate. Know instantly if your AI spend is paying off.

B

Cost per Commit

See exactly how much each AI-assisted commit costs in tokens. Track spending at the granularity that matters.

Today
$3.57
Week
$24.80
Month
$67.20

Line Survival Rate

What percentage of AI-written lines survive 24 hours without being rewritten? Measure code quality, not just quantity.

87%
of AI lines survive 24h

Token Analytics

Deep token breakdown: efficiency rate, tokens per commit, cache savings, input vs output ratios. Know where every token goes.

Input 41%Output 59%

Model Comparison

Compare cost and efficiency across AI models — Claude, Codex, Cursor, and more. Find the best model for your workflow.

Opus
$280
Sonnet
$180
Haiku
$45

Productivity Heatmap

GitHub-style activity grid showing your peak coding hours. Discover when AI-assisted development is most productive.

Session Analysis

Identify orphaned sessions — conversations with 10+ messages that produced zero commits. Eliminate wasted spend.

33%
sessions orphaned

Cost Breakdown

Track spending over time: today, this week, this month, all time. Spot trends and control your budget.

Agent AutonomyNew

Measure how independently your AI agent operates without hand-holding. See how often it self-corrects, how many tools it leverages, and how efficiently it ships commits.

A
Autopilot Ratio
4.2x
Self-Heal Score
78%
Toolbelt Coverage
65%
Commit Velocity
12

Zero Config

One command. No setup. No API keys. Just run npx codelens-ai in any git repo where you've used an AI coding agent.

$npx codelens-ai

Privacy First

All data stays on your machine. Zero telemetry. Zero cloud. Reads only local session files and git history.

All data stays on your machine
How It Works

From terminal to insight in seconds

Three steps. Zero configuration. Complete visibility.

01

Install & Run

Run npx codelens-ai in any git repository where you've used an AI coding agent. No config files, no API keys, no setup required.

02

Analyze

CodelensAI reads your local AI agent session files and correlates them with your git history using file overlap and timestamps.

03

Optimize

Get an interactive dashboard with your ROI grade, cost-per-commit, line survival rate, and actionable insights to optimize spend.

“I built this because I was spending hundreds on Claude Code and had no idea if it was worth it. CodelensAI gives you the answer in one command.”
Akshat Sahu
Creator of CodelensAI
0+
Weekly Downloads
v0.8.5
Current Version
MIT
Open Source License
0
Dependencies
Get Started

Up and running in seconds

One command. No config files. No API keys. No setup.

~ terminal
$npx codelens-ai

Previously claude-roi — same tool, new name

Or install globally:

npmnpm install -g codelens-ai
pnpmpnpm add -g codelens-ai
yarnyarn global add codelens-ai

CLI Options

--days 90Analyze last 90 days (default: 30)
--port 8080Custom port (default: 3457)
--jsonOutput metrics as JSON to stdout
--project <name>Filter to a specific project
--refreshForce full re-parse, ignore cache

CodelensAI is free and open source.

Built by developers, for developers.

MIT Licensed · 3 dependencies · 163 kB unpacked