Local-first search + chat over your Codex and OpenCode session history.
ChatIndex builds a private, searchable memory of your local coding sessions with citations.
Developers and teams who use Codex or OpenCode and want fast, local recall without sending data to third parties.
- Ingests Codex JSONL and OpenCode session exports
- Builds per-session context trees for reasoning-based retrieval
- Answers with citations to exact message ranges
- No cloud sync or hosted storage
- No external telemetry by default
- No public API authentication (you must front it if needed)
pnpm install
pnpm dev- CLI for ingest/search/ask
- MCP server for tool access
- Local HTTP API for UI and scripts
- Web UI for search + chat
pnpm devruns ingest + reindex, starts API + Web, and opens the app.- Set
CHATINDEX_DEV_SKIP_INGEST=1to skip ingest on subsequent runs.
- Ingestion writes normalized data into SQLite
- Indexer builds per-session CTree JSONs
- Retrieval uses FTS + tree traversal to return evidence
- Responses include citations to message spans
Beta. Expect changes as the plugin system and tests mature.
- Architecture:
docs/architecture/overview.md - Config:
docs/config.md - CLI:
docs/cli/README.md - MCP:
docs/mcp/tools.md - Ops:
docs/ops/runbook.md
- Local-first data flow
- Clear module boundaries
- Deterministic retrieval and reproducible outputs
- Redaction before any LLM calls
ChatIndex is local-first by design. There is no hosted offering today; if that changes, this project will remain fully open for self-hosting.
See ROADMAP.md.
See SUPPORT.md.
See TRADEMARKS.md.
Apache-2.0