weiesky/cc-viewer
A request monitoring system for Claude Code that captures and visualizes all API requests and responses in real time. Helps developers monitor their Context for reviewing and debugging during Vibe Coding.
What it solves
Claude Code normally runs inside a terminal, which makes it hard to watch what the AI is doing, search through past conversations, or share the session with someone else. CC-Viewer wraps Claude Code and launches a local web page alongside it, so every terminal session becomes a visual, searchable, and shareable experience — without changing the way you normally use claude.
How it works
You install CC-Viewer as a command-line tool (ccv) and use it exactly like claude — it passes every argument through, so ccv -c --d behaves just like claude --continue --dangerously-skip-permissions. While Claude Code runs, CC-Viewer captures the session logs and exposes a web interface at http://localhost:7008 (or the next available port). The same logs are stored on disk in a compact per-session directory format (wire-format v2, about 90% smaller than the old single-file logs) so you can review them later. It also offers an SDK mode (ccv --sdk) that runs the session headlessly and lets you chat from the browser; a logger mode (ccv -logger) that attaches to an existing claude command; and an optional desktop app.
Who it’s for
Developers who use Claude Code regularly and want a richer way to inspect, search, and share their AI-assisted coding sessions. It’s also useful for teams that need to run Claude Code on a remote server or container and access the UI from any browser, or for anyone who wants to schedule recurring prompts, edit system prompts per model, or protect the viewer with a password.
Highlights
- Drop-in replacement —
ccvforwards all Claude Code arguments, so you keep your existing workflows and aliases. - Web-based session viewer — see live diffs, file changes, and conversation history in the browser, with a code-diff view right after each edit.
- Code search and replace — search across files with regex support, grouped results, and inline replacement (using ripgrep for speed, with a built-in fallback).
- Scheduled tasks — run prompts on a schedule (hourly, daily, cron, or one-off), injecting into the current session or spawning a fresh headless one; tasks are locked against double-firing across instances.
- Password protection — optional password login for LAN access, with a per-project override, encrypted credentials, and an admin-only mode on the local machine.
- Container/cloud ready — works in a single container, supports reverse-proxy base URLs, and keeps plaintext secrets loopback-only.
- Model-specific system prompts — edit and auto-inject system prompts per model, with built-in presets for Kimi, DeepSeek, Qwen, and GLM models.
- SDK headless mode — chat from the browser without a terminal PTY, with approvals handled as browser modals and high-risk commands gated by default.
- Legacy log migration — converts old v1
.jsonllogs to the new v2 format, with verification and quarantine for failed conversions.
Related
- Project
- Project
- Project
- Project
- Project