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

If cocomon is not found after install, use:

python3 -m 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.2.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.2-py3-none-any.whl (56.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cocomon-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4f98853a1e71b19db118415c5f8d82e668d4bcea314d9c9eda16d38c5ff329b5
MD5 473a1743f6c9c10cc9f877308698de2c
BLAKE2b-256 85b44a9ed50bbde40e74909cabbfd074f1e9e6c09c0da13a143b34ff7c6ce88a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cocomon-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa4f62d13a1fe4ea19cfa4b26436d1415c889803b6abd74f8092bdd21d2b57a
MD5 5282a768853811fbefc2720cad7d5d24
BLAKE2b-256 14a46c034f38f383110d290ba2cf0f9ed92804ee75dac2389bad03ce1a657e2d

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