Skip to main content

Local command center for Claude Code sessions

Project description

cocomon

A local command center for your Claude Code sessions.

Search past conversations, inspect diffs and tool calls, watch live session status, and send messages to active Claude Code sessions from your desktop or phone over your local network.

Desktop

Desktop demo

Mobile

Mobile demo

Install

pip install cocomon

Usage

cocomon

Opens at localhost:6300. cocomon reads from ~/.claude/projects/, where Claude Code stores conversation JSONL files.

Open from your phone

Run cocomon on your computer and expose it to your local network:

cocomon --host 0.0.0.0

cocomon prints a LAN URL, and each session page includes a QR code you can scan from your phone. Your phone must be on the same network as your computer.

Options

cocomon --port 8080                  # custom port
cocomon --host 0.0.0.0              # expose on LAN
cocomon --projects-path /other/path  # custom Claude projects dir
cocomon --no-statusline              # skip Claude statusline integration
cocomon --statusline-base-url URL    # custom URL shown in Claude's statusline

Features

Session console -- All your Claude Code projects and sessions in a sidebar, sorted by recency. Open old conversations or jump into active sessions.

Full-text search -- Search across every session. Filter by project, role, date range, or content type (code, errors, tool use, file edits).

light mode

Syntax highlighting -- Code blocks render with language detection and proper highlighting via Pygments.

Diff inspector -- File edits from Claude's Edit tool display as green/red line diffs, so you can see exactly what changed.

diffs and tool output

Live session control -- If Claude Code is running in a supported terminal, cocomon detects the session, shows its live status, and lets you send messages directly from the browser. Works with iTerm2, Terminal.app, and cmux.

Phone control over LAN -- Start cocomon with --host 0.0.0.0, scan the session QR code, and continue from your phone while Claude Code runs on your computer.

Dark / light theme -- Toggle in the top-right corner. Preference is saved.

QR code sharing -- Each session gets a QR code link for quick access from your phone over LAN.

Mobile responsive -- Works on phones and tablets.

Security

cocomon is local-first. By default it binds to 127.0.0.1, so only your computer can access it.

Use --host 0.0.0.0 only on a network you trust. That makes cocomon reachable from other devices on your LAN, including session history and any live-session send controls. Do not expose cocomon directly to the public internet.

How this differs from Claude Code Remote Control

Claude Code Remote Control is the official remote-control experience for Claude Code.

cocomon is a local-first session console focused on your Claude Code work: fast history search, readable transcripts, syntax-highlighted code, diff inspection, LAN sharing, and browser-based control for live terminal sessions.

How it works

Claude Code stores every conversation as a JSONL file in ~/.claude/projects/<project-hash>/. Each line is a JSON object representing a message, tool call, or tool result.

cocomon parses these files, indexes them for search, and serves a web UI with FastAPI.

Development

git clone https://github.com/gdagitrep/claude-code-viewer.git
cd claude-code-viewer
pip install -e .
cocomon

The server auto-reloads on file changes during development.

Requirements

  • Python 3.8+
  • Claude Code (to generate conversation history)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocomon-0.1.0.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cocomon-0.1.0-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file cocomon-0.1.0.tar.gz.

File metadata

  • Download URL: cocomon-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cocomon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 84204b23ad7e1d5863287126646d97209466c3e232d5867ff8c6dba38f064229
MD5 1daa19c79a4bb449bd8c47405304df60
BLAKE2b-256 890c93fa32aaf1b40cc904acc6c091b04a54db38dc38f6af6783bb9c38e22c2b

See more details on using hashes here.

File details

Details for the file cocomon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cocomon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cocomon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c69345ea4e73d58411d594f44cbcf42434f947327628b18516af76d2170e2f83
MD5 c52ee287dc0bf3ab7503282e63ea210a
BLAKE2b-256 2569456404ec91f70b5579f2ee4b6dd783e50f2f2fbeeb78388bac0ce5d59421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page