A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time
open sourceMITself-hostablefree
cc-viewer wraps Claude Code: you type ccv instead of claude, every launch flag passes through, and a web viewer opens on port 7008 that captures each API request and response Claude Code sends, raw, labelled as main agent or sub-agent, with token and cache-hit counts and a diff of what changed since the previous main-agent request. A logger mode records the same for the plain claude command or the VS Code extension. Around that it has grown into a browser workspace for Claude Code: code diffs after each edit, file search and replace, a terminal, scheduled prompts with cron, an SDK mode where tool approvals and questions pop up in the browser, a planning mode called UltraPlan, per-model system prompts, proxy hot-switching, and coding from a phone on the same network by QR code, behind a token or password. It also ships as a desktop app for macOS, Linux and Windows.
Ways to install
Package managers
Problems it solves
- see the exact requests Claude Code sends to the API, including the full system prompt and context
- debug why my coding agent's context is so big and what's filling it
- check token usage and prompt cache hit rate for each Claude Code request
- tell which requests came from the main agent and which from sub-agents
- watch a Claude Code session in a browser while it runs in my terminal
- keep coding with Claude Code from my phone on the same Wi-Fi
- approve Claude Code's tool calls from a web page instead of the terminal
- run a prompt in my Claude Code session on a schedule
- switch Claude Code between API proxies or model providers mid-session
- record the full raw request log of every Claude Code session for later review
- use custom system prompts for Kimi, DeepSeek, Qwen or GLM models behind Claude Code
Features
- ccv is a drop-in replacement for claude that passes every argument through
- captures every raw API request and response in real time
- labels main-agent and sub-agent requests (Plan, Search, Bash)
- body diff of each main-agent request against the previous one
- per-request token usage, cache creation and cache hit rate
- logger mode for the native claude command or the VS Code extension
- per-session log format about 90% smaller than single JSONL files, with migration of old logs
- SDK mode: chat from the browser, with tool approvals and AskUserQuestion prompts as modals
- hard gate on high-risk commands such as rm -rf and npm publish, even with skip-permissions
- scheduled prompts by preset, cron or one-off time
View 6 more
- code diffs after edits, file search and replace across the project
- mobile access over the LAN by QR code, with token or password login
- proxy hot-switching with per-role profiles for main agent, sub-agents and teammates
- per-model system prompts, with presets for Kimi, DeepSeek, Qwen and GLM
- UltraPlan: a local panel of expert prompts that drafts a plan you approve before it runs
- desktop app for macOS, Linux and Windows
Limitations
- Doesn't run alongside claude-code-router or claude-code-switch: their proxies conflict with its own, which it offers in their place1
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what cc-viewer does.
- Claude Code Viewer A full-featured web-based Claude Code client that provides complete interactive functionality for managing Claude Code projects
- CloudCLI (Claude Code UI) A desktop and mobile UI for Claude Code, Cursor CLI, and Codex
- Claude Code Trace Claude Code session log viewer for JSONL files in ~/.claude/projects: browse conversations, tool calls, tokens, and live tail sessions on desktop, web, and TUI
- claude-code-log A Python CLI tool that converts Claude Code transcript JSONL files into readable HTML and Markdown
