This guide covers installing Causantic and its dependencies.
- Node.js 20+: Causantic requires Node.js version 20 or later
- Claude Code 5.1+: Hooks require Claude Code version 5.1 or later (for
asynchook support)
node --version # Should be v20.x or higher
claude --version # Should be 5.1.x or highernpm install causanticgit clone https://github.com/Entrolution/causantic.git
cd causantic
npm install
npm run buildRun the setup wizard to initialize Causantic:
npx causantic initThe interactive setup wizard will:
- Create the
~/.causantic/directory structure - Offer to enable database encryption (recommended)
- Initialize the database
- Detect your Claude Code configuration path
- Offer to configure MCP integration
- Run a health check
- Offer to import existing Claude Code sessions
- Build topic clusters from imported sessions
- Offer to configure Anthropic API key for cluster labeling
# Full interactive setup (recommended)
npx causantic init
# Skip specific steps
npx causantic init --skip-encryption # Skip encryption prompt
npx causantic init --skip-mcp # Skip MCP configuration
npx causantic init --skip-ingest # Skip session importDuring setup, Causantic will detect existing Claude Code sessions in ~/.claude/projects/ and offer to import them:
- All projects: Import everything at once
- Select specific: Choose which projects to import by number
- Skip: Import later with
npx causantic batch-ingest
For large session histories, the initial import may take a few minutes.
After importing sessions, Causantic automatically:
- Builds clusters: Groups related chunks by topic using HDBSCAN
Causantic can use Claude Haiku to generate human-readable descriptions for topic clusters. This requires an Anthropic API key.
During setup, you'll be prompted to add your API key. The key is stored securely in your system keychain (macOS Keychain / Linux libsecret).
You can add or update the API key later:
npx causantic config set-key anthropic-api-key
npx causantic maintenance run update-clusters# Check Causantic is installed
npx causantic --version
# Run a health check
npx causantic healthTo cleanly remove Causantic and all its artifacts:
npx causantic uninstallThis removes MCP config entries, CLAUDE.md references, skill files, keychain secrets, and the ~/.causantic/ data directory. You'll be shown a preview and asked to confirm.
# Preview what would be removed without making changes
npx causantic uninstall --dry-run
# Remove integrations but keep your data for later
npx causantic uninstall --keep-data
# Skip prompts (CI/scripts)
npx causantic uninstall --forceTo reinstall after uninstalling: npx causantic init
- Quick Start - Get up and running
- Configuration - Customize settings