whatisgithub

What is claude-code-lens?

ningzimu/claude-code-lens — explained in plain English

Analysis updated 2026-05-18

17JavaScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

A local proxy and visualizer that lets developers inspect exactly what Claude Code sends to and receives from the Anthropic API.

Mindmap

mindmap
  root((repo))
    What it does
      Proxies Claude Code traffic
      Captures requests
      Visualizes sessions
    Tech stack
      JavaScript
      Node.js
    Use cases
      Debugging sessions
      Trace analysis
      Sub agent inspection
    Audience
      Developers
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Inspect system prompts, message history, and tool calls Claude Code sends to the API.

USE CASE 2

Debug Claude Code sessions using a browser based visualizer.

USE CASE 3

Analyze captured traces with an included Claude Code Skill for AI assisted review.

What is it built with?

JavaScriptNode.js

How does it compare?

ningzimu/claude-code-lensexportanything/comfyui-ltx-director-motion-brushgeanofeefoundry/geanos-jump-n-run-editor
Stars171717
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedevelopervibe codergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

So what is it?

Claude Code Lens is a local debugging and monitoring tool for Claude Code, the AI coding assistant CLI. It works by running a proxy server between Claude Code and the Anthropic API, meaning every request and response passes through a local middleman that captures and stores it, then displays it in a browser-based visualizer. This lets developers see exactly what Claude Code is sending to the model: the system prompts, the full message history, tool definitions, tool calls, streaming output, and token usage counts. The tool supports two usage modes. In the simpler one-shot mode, you run cclens instead of claude, and it automatically starts the proxy, opens the visualizer in a browser, and launches Claude Code. When you're done, you stop the proxy with cclens stop. In the long-running proxy mode, you start the proxy separately with cclens proxy and then point Claude Code at it explicitly, which is better for continuous monitoring across multiple sessions. The tool is designed to be non-invasive: it does not patch Claude Code or modify your Claude Code settings files in the default one-shot mode. It also auto-discovers the correct upstream API endpoint from your existing Claude Code configuration, so there is typically nothing to configure manually. Claude Code Lens is written in JavaScript, installed as an npm package, and stores its runtime data in a local directory. An optional Claude Code Skill is also included for AI-assisted trace analysis. The agent can search through captured sessions, inspect how sub-agents behaved, and export findings as Markdown. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Help me install Claude Code Lens and run it in one shot mode with cclens.
Prompt 2
Explain the difference between one shot mode and long running proxy mode in Claude Code Lens.
Prompt 3
Walk me through using the Claude Code Skill to analyze a captured session.
Prompt 4
How does Claude Code Lens auto discover my Claude Code API endpoint?

Frequently asked questions

What is claude-code-lens?

A local proxy and visualizer that lets developers inspect exactly what Claude Code sends to and receives from the Anthropic API.

What language is claude-code-lens written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js.

How hard is claude-code-lens to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is claude-code-lens for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.