English | 简体中文
CSM stands for codex-session-manager.
Current version: 0.2.4
Its core purpose is simple:
when people switch between multiple Codex accounts, old sessions become hard to find again.
CSMis built to solve that specific problem.
CSM is a lightweight local tool for scanning and browsing Codex sessions. It focuses on a few practical workflows:
- help users recover old sessions after switching across multiple Codex accounts
- list all sessions with a single command
- browse sessions in a local dashboard
- open a session detail page and inspect the full conversation timeline
- search inside a single session detail view
- search by title, session id, preview, cwd, or file path
- show a ready-to-copy resume command for each session
- keep cluster operations available without making cluster the primary entry point
- Written in Go
- Works on Windows, macOS, and Linux
- No database
- No external service dependency
- Local JSON / JSONL storage
- CLI and local dashboard modes
- Session detail page with full content timeline and in-page search
- Manual cluster operations:
merge,split,tag,reset - Session titles prefer native Codex naming:
thread_namefrom~/.codex/session_index.jsonlthread_name_updatedfrom the session rollout file
csm
csm dashboardcsm: scan and print session listcsm dashboard: open the local web dashboard and auto-prepare data on first run
Download the latest package from GitHub Releases:
https://github.com/lrwh/codex-session-manager/releases/latest
Use the package that matches your platform, then install csm into your PATH.
curl -L -o csm-linux-amd64.tar.gz https://github.com/lrwh/codex-session-manager/releases/latest/download/csm-linux-amd64-0.2.4.tar.gz
tar -xzf csm-linux-amd64.tar.gz
sudo install -m 755 csm-linux-amd64 /usr/local/bin/csm
csm --versioncurl -L -o csm-darwin-amd64.tar.gz https://github.com/lrwh/codex-session-manager/releases/latest/download/csm-darwin-amd64-0.2.4.tar.gz
tar -xzf csm-darwin-amd64.tar.gz
sudo install -m 755 csm-darwin-amd64 /usr/local/bin/csm
csm --versioncurl -L -o csm-darwin-arm64.tar.gz https://github.com/lrwh/codex-session-manager/releases/latest/download/csm-darwin-arm64-0.2.4.tar.gz
tar -xzf csm-darwin-arm64.tar.gz
sudo install -m 755 csm-darwin-arm64 /usr/local/bin/csm
csm --version- Download
csm-windows-amd64-0.2.4.zipfrom Releases. - Unzip it and rename
csm-windows-amd64.exetocsm.exe. - Move it to a stable directory such as
C:\Tools\csm\. - Add that directory to
PATH. - Open a new terminal and run
csm --version.
After installation, update with:
csm updateNotes:
- Linux and macOS can replace the current executable automatically
- Windows currently downloads the latest package and prompts for manual replacement
If this is your first run, you can start directly with:
csm dashboardOn first run, csm dashboard will automatically:
- create the local CSM home
- create
config.jsonandsources.json - add
~/.codexas the default source when available - scan sessions and rebuild cluster data
csm initcsm init is optional. It only creates the local working files explicitly.
csm source add ~/.codex
csm source listcsm scancsm
csm -n 20
csm --verbose -n 1
csm --json -n 10csm dashboard
csm dashboard --no-open
csm dashboard --addr 127.0.0.1:7788csm find session
csm cluster rebuild
csm cluster list -n 20
csm show <cluster-id>
csm tag set <cluster-id> my-cluster
csm cluster merge <target-cluster-id> <source-cluster-id...>
csm cluster split <source-cluster-id> <session-id...>
csm cluster reset <cluster-id>For source build and packaging, see BUILD.md.
Default working directory:
~/.config/csm
Override with:
CSM_HOME=/path/to/csm-home csmMain local files:
config.jsonsources.jsonsession_index.jsonlclusters.jsontags.json
csm
csm sessions
csm init
csm source add <path>
csm source list
csm scan
csm find <query>
csm dashboard
csm update
csm cluster rebuild
csm cluster list
csm cluster merge
csm cluster split
csm cluster reset
csm show <cluster-id>
csm tag set <cluster-id> <name>
csm tag remove <cluster-id>CSMis primarily a session recovery product, not a cluster-heavy platformCSMis session-first; cluster is secondary- Session titles only use native Codex rename sources
- If a session has no native rename metadata,
CSMfalls back to a derived summary title
Licensed under Apache-2.0. See LICENSE.

