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 initThe 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 syncDiscovers 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 dashboardYour browser opens at localhost:7890 with your synced sessions, activity charts, and stats.
4. Set up auto-sync (optional)
code-insights install-hookInstalls a hook that runs code-insights sync -q whenever a Claude Code session ends.
5. Configure LLM for insights (optional)
- In the dashboard, click Settings (gear icon)
- Select an LLM provider (OpenAI, Anthropic, Gemini, or Ollama for fully local inference)
- Enter your API key
- Return to any session and click Analyze
What's next
- The Dashboard — Tour of the embedded dashboard
- Terminal Analytics — Stats in your terminal without the dashboard
- Insights & Analysis — Deep dive into LLM-powered insights
- CLI Commands — Every command and flag