Browse every session from Claude Code, OpenAI Codex, and Gemini CLI the thinking, the tool calls, the file changes, the token costs. All in one local interface. Nothing leaves your machine.
What's New β’ Features β’ Installation β’ Usage β’ Supported Tools β’ Screenshots
A clean Material-style interface, rebuilt so the browser only ever holds what you are looking at:
| π§ | Huge sessions stay light Only the messages on screen are rendered. "Load all" on a 22,751-message session used to build 222,310 DOM nodes in 11 seconds; it now loads in 0.6s with about 2,800 nodes, and scrolling stays smooth the whole way through. |
| π€ | Idle tabs give their memory back Like a browser's memory saver: leave a tab unused for 5 minutes and it drops everything it loaded (29 MB β 3.4 MB in our test), keeping only where you were. Come back and it reloads just that spot β same message, same scroll position. The server does the same with its caches. |
| π | Faster to open 40 requests per page load became 4, with no external font downloads. Assets are cached permanently, so a repeat visit fetches nothing but your data. |
| π | Search that keeps up with typing Common words that took over a second in full-text search now answer in about 70 ms. A Spotlight-style βK dialog with keyboard navigation opens a result right at the matching message. |
| π― | Find in conversation, properly βF or / searches every loaded message (not just what happens to be rendered), highlights the words in place, and steps through matches with Enter. |
| π§Ή | Filters that compose You / Assistant / Tools / Unique only / date range all work together, and changing one never throws you back to the top. Your view preferences are remembered. |
| π | Light and dark that follow your system A consistent icon set instead of emoji, a sticky toolbar, contextual jump-to-top/bottom buttons, and a project drawer on narrow windows. |
A big round of performance, search and correctness work. Highlights:
| π | Full-text search inside conversations Search what was actually said and done, not just session titles β powered by SQLite FTS5 with ranked results, highlighted snippets, and a click straight to the matching message. Opt-in, and it shows the index size before building. |
| β‘ | Everything got dramatically faster Opening a large project went from 15.5s β 0.25s. A search that used to scan the whole corpus for 15.8s now answers in 11ms. One slow request no longer freezes the entire app. |
| πͺΆ | Loads only what's on screen Sessions and messages are fetched on demand instead of all at once, so memory stays around 22MB no matter how big your history gets. Opening a 966MB session used to need 604MB of RAM β now it's 68MB. |
| π | Usage analytics Token spend by day, project, model and tool. Now counts cache reads and cache writes β the old totals left them out, under-reporting real usage by over 100x. |
| ποΈ | File-edit archaeology "When did an agent last touch auth.py?" Search every session for a file and jump to the exact edit. |
| Jump back into a session One click copies cd <project> && claude --resume <id> so you can pick up where you left off, plus a copy-to-open-in-editor command. |
|
| π | Markdown export Export a conversation as Markdown β fenced code blocks, collapsible thinking and tool calls β ready to paste into an issue or PR. |
| β | Gemini CLI works again Gemini changed its log format and the source had gone quietly empty. Fully re-supported β and the app now warns you when a source has files it can't read, instead of just showing nothing. |
| π | Shareable links and a working back button Every project and session has its own URL. Refresh keeps your place, and browser back/forward behave. |
| π | Security fixes Removed a permissive CORS policy that let any website you visited read your local conversation history. Startup no longer force-kills unrelated processes holding the port, and binding to a non-loopback --host now warns loudly. |
| π | Your data is safer Bookmarks and project settings are written atomically with backups, and a corrupt file is quarantined rather than silently reset to empty. Sync never removes a backup before its replacement is safely in place. |
Upgrading from PyPI? Markdown rendering and syntax highlighting were silently broken in earlier published versions β the packaged wheel was missing its bundled JavaScript. Fixed, and now guarded by a test.
uv is a fast Python package installer. Install it first if you haven't:
curl -LsSf https://astral.sh/uv/install.sh | shThen install clicodelog as an isolated tool:
uv tool install clicodelogTo upgrade:
uv tool upgrade clicodelogpip install clicodeloggit clone https://github.com/monk1337/clicodelog.git
cd clicodelog
uv tool install -e .
# or with pip:
pip install -e .After installation, simply run:
clicodelogThe app will:
- Start a local web server at http://localhost:6126 and open it in your browser
- Back up new logs from every supported tool in the background, then hourly
- Stop a previous clicodelog still holding the port (it never touches other programs)
clicodelog --help # Show all options
clicodelog --version # Show the version
clicodelog --port 8080 # Use another port (default: 6126)
clicodelog --host 0.0.0.0 # Bind beyond localhost (warns loudly; default: 127.0.0.1)
clicodelog --no-sync # Skip the startup sync
clicodelog --folder myapp # Only show projects whose name contains "myapp"
clicodelog --no-browser # Don't open a browser tab
clicodelog --debug # Debug logginggit clone https://github.com/monk1337/clicodelog.git
cd clicodelog
python -m clicodelog.cli| π§ | See the full chain of reasoning Read the agent's thinking blocks, tool calls, and decisions in a clean conversation view. No more squinting at raw JSONL. |
| π | Track what actually ran Every file read, shell command, and edit β laid out clearly so you can audit what the agent did before you commit. |
| π | Spot wasted tokens Session-level token stats (input, output, cached) so you can see which runs were efficient and which went in circles. |
| π | All your agents, one place Claude Code, Codex, and Gemini CLI side by side. Same interface, same workflow, no context switching. |
| π | Nothing leaves your machine Fully local. Reads from your existing log directories, syncs to a local backup. No cloud, no accounts, no telemetry. |
| Tool | Source Directory | Status |
|---|---|---|
| Claude Code | ~/.claude/projects/ |
β Supported |
| OpenAI Codex | ~/.codex/sessions/ |
β Supported |
| Gemini CLI | ~/.gemini/tmp/ |
β Supported |
- Sessions organized by project directory
- Displays summaries, messages, thinking blocks, and tool usage
- Shows model metadata and token usage
- Sessions organized by date (
YYYY/MM/DD/) - Groups sessions by working directory (cwd) as projects
- Displays messages, function calls, and reasoning blocks
- Filters out system prompts for cleaner inspection
- Sessions stored as JSON Lines in
{project}/chats/session-*.jsonl - Groups sessions by project folder
- Displays messages, thoughts (thinking), and tool calls
- Shows token usage (input, output, cached)
- A backup that only grows β logs are copied into
~/.clicodelog/data/(copy-on-write clones on macOS, so it costs almost no disk). Nothing is ever deleted from it, so sessions survive even after the tool prunes its own history. - Sync β at startup, then hourly in the background, or on demand with the Sync button.
- An index, not a re-scan β one small row per session in
~/.clicodelog/meta.db(SQLite), so projects and session lists open instantly. Full-text search is a separate, optionalfts.db, built only when you ask. - Load what you look at β opening a session fetches one window of messages; more arrive as you scroll in either direction, and only the messages on screen are rendered.
- Give memory back β after 5 unused minutes the tab drops what it loaded and the server trims its caches; coming back restores your exact place.
~/.clicodelog/data/
βββ claude-code/ # Claude Code backup
β βββ -Users-project1/
β β βββ session1.jsonl
β β βββ session2.jsonl
β βββ -Users-project2/
βββ codex/ # OpenAI Codex backup
β βββ 2026/
β βββ 01/
β βββ 16/
β β βββ rollout-xxx.jsonl
β βββ 17/
βββ gemini/ # Gemini CLI backup
βββ {project-1}/
β βββ chats/
β βββ session-2026-01-17T12-57-xxx.jsonl
β βββ session-2026-01-17T13-04-xxx.jsonl
βββ {project-2}/
| Control | Action |
|---|---|
| βK / Ctrl+K | Search every conversation |
| βF or / | Find in the open conversation (Enter / Shift+Enter to step) |
| Esc | Close whatever is open |
| You Β· Assistant Β· Tools Β· Unique only | Filter the conversation; they combine |
| View menu | Thinking, tool calls, newest/oldest first, date range, load all |
| Resume Β· Open in editor | Copy the command to continue the session |
| Export | Text, Markdown, or the raw log |
| β | Bookmarks, grouped by project and conversation |
| Source dropdown | Switch between supported tools |
| Sync Β· Theme | Refresh logs now Β· light/dark (follows the system until you choose) |
| Light | Dark: thinking and tool calls |
|---|---|
![]() |
![]() |
All screenshots use a synthetic demo dataset β no real sessions. Recreate it with
python scripts/demo_data.py /tmp/demo and run HOME=/tmp/demo clicodelog --no-sync.
clicodelog/
βββ cli.py # Entry point
βββ app.py # FastAPI app, routes, cache policy
βββ assets.py # Content-hashed CSS/JS bundles
βββ reaper.py # Gives memory back after 5 idle minutes
βββ config.py # SOURCES, paths, constants
βββ sync.py # Additive clone-backup of each source
βββ scan.py # One-pass session metadata extraction
βββ metastore.py # SQLite metadata store (listings, projects)
βββ fts.py # SQLite FTS5 full-text search
βββ window.py # Windowed reads of huge sessions
βββ conversation.py # Conversation loading + pagination
βββ storage.py # Atomic writes, disk checks
βββ parsers/ # claude.py, codex.py, gemini.py
βββ routes/ # projects, search, export, sync, sources, stats
βββ static/ # Vanilla JS + CSS (no build step; bundled at request time)
βββ templates/ # index.html, view.html and shared partials
~/.clicodelog/ # Created at runtime, never in the repo
βββ data/ # Your synced logs (the durable backup)
βββ meta.db # Session metadata index
βββ fts.db # Full-text index (optional)
βββ bookmarks.json # Your bookmarks
| Endpoint | Method | Description |
|---|---|---|
/api/sources |
GET | List available sources |
/api/sources/<id> |
POST | Set active source |
/api/projects?source= |
GET | List projects |
/api/projects/<id>/sessions?source=&limit=&offset= |
GET | List sessions (paged) |
/api/projects/<id>/sessions/<id>?source=&limit=&offset=&tail=&around_uuid= |
GET | Fetch a window of a session: from an offset, the end, or centred on a message |
/api/projects/<id>/sessions/<id>/subagents?source= |
GET | List sub-agent sessions |
/api/projects/<id>/sessions/<id>/export?fmt=txt|md |
GET | Export as text or Markdown |
/api/projects/<id>/sessions/<id>/export-raw |
GET | Stream the exact source file |
/api/search?q=&source=&project=&role=&after=&before= |
GET | Search titles and message bodies |
/api/search/status?source= |
GET | Full-text index state and size estimate |
/api/search/build?source=&tool_cap= |
POST | Build the full-text index |
/api/stats?source=&group=day|project|model|tool |
GET | Token usage analytics |
/api/files?path=&source= |
GET | Which sessions edited a file |
/api/bookmarks |
GET/POST | List or add bookmarks |
/api/bookmarks/<id> |
DELETE | Remove a bookmark |
/api/projects/<id>/meta?source= |
GET/PUT | Custom project name and tags |
/api/tags?source= |
GET | All project tags |
/api/sync?source= |
POST | Trigger sync |
/api/status?source= |
GET | Sync status and free disk |
/bundle/<hash>/<name> |
GET | Versioned CSS/JS bundles (cached permanently) |
- Python 3.10+
- FastAPI
- Uvicorn
- Jinja2
That's the whole runtime dependency list. Search, analytics and the metadata
store all run on the sqlite3 module in the standard library β no extra
services, no database to install.
To add support for another CLI-based AI tool, start with config.py:
SOURCES = {
"claude-code": {
"name": "Claude Code",
"source_dir": Path.home() / ".claude" / "projects",
"data_subdir": "claude-code"
},
"codex": {
"name": "OpenAI Codex",
"source_dir": Path.home() / ".codex" / "sessions",
"data_subdir": "codex"
},
"gemini": {
"name": "Gemini CLI",
"source_dir": Path.home() / ".gemini" / "tmp",
"data_subdir": "gemini"
},
# Add new tool here
}Then wire up the rest:
- Add a reader branch in
scan.py(metadata extraction). - Add an entry-shape branch in
metastore._row_for(how projects are keyed). - Add a parser in
parsers/and export it fromparsers/__init__.py. - Add a text extractor to
fts._EXTRACTso the source is searchable. - Add the source to the parametrised contract test in
tests/test_sources.pyβ it asserts a source with files on disk yields at least one session, which is exactly the check that would have caught Gemini going silently empty.
@misc{clicodelog2026,
title = {clicodelog: Unified Session Inspector for CLI AI Coding Agents},
author = {Pal, Ankit},
year = {2026},
howpublished = {\url{https://github.com/monk1337/clicodelog}},
note = {Local web UI for browsing Claude Code, OpenAI Codex, and Gemini CLI session logs - thinking blocks, tool calls, file edits, and token costs}
}MIT



