Skip to content
Code Insights
Documentation

Quick Start

Initialize Code Insights, sync your AI coding sessions, and open the local dashboard in under 5 minutes. No accounts or API keys required.

1. Initialize

code-insights init

The CLI auto-detects your AI coding tools and sets up the local database. No accounts or API keys needed.

2. Sync your sessions

code-insights sync

Discovers sessions from all supported tools (Claude Code, Cursor, Codex CLI, Copilot CLI) and stores them in your local SQLite database.

The first sync processes your entire session history and may take a minute. Subsequent syncs are incremental.

3. Open the dashboard

code-insights dashboard

Your browser opens at localhost:7890 with your synced sessions, activity charts, and stats.

4. Set up auto-sync (optional)

code-insights install-hook

Installs a hook that runs code-insights sync -q whenever a Claude Code session ends.

5. Configure LLM for insights (optional)

  1. In the dashboard, click Settings (gear icon)
  2. Select an LLM provider (OpenAI, Anthropic, Gemini, or Ollama for fully local inference)
  3. Enter your API key
  4. Return to any session and click Analyze

What's next