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
Mobile
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).
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.
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
Metadata
Release files for cocomon 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cocomon-0.1.4.tar.gz | 1.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cocomon-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / cocomon-0.1.4.tar.gz
| Download URL | cocomon-0.1.4.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
522fbcb48089107d65a962b18069217acb6c24129406896e8f3cff06d1bd46e3
|
|
BLAKE2b-256 checksum How to use checksums |
76e9a17948ff43d17c50c4a4ebeb69acb708c1e4c783483053fc28c6c10dae7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / cocomon-0.1.4-py3-none-any.whl
| Download URL | cocomon-0.1.4-py3-none-any.whl |
|---|---|
| Size | 60.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36140a85ece2d40353bf472bad878cb63c524f83185439f8e7fb0053d59c588e
|
|
BLAKE2b-256 checksum How to use checksums |
008f1b91e5929483a03232a9a12c3234a5296d01260418181543ba0b524bb756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log