Skip to content

Quickstart

Get ChunkHound running in 5 minutes. This guide will take you from installation to your first semantic search.

Before installing ChunkHound, ensure you have:

  • Python 3.10+ - Check with python --version
  • uv package manager - Modern Python package manager (recommended)

Step 1: Install uv (if you don’t have it)

Section titled “Step 1: Install uv (if you don’t have it)”
Terminal window
curl -LsSf https://astral.sh/uv/install.sh | sh
Terminal window
uv tool install chunkhound

That’s it! ChunkHound is now available as a global command.

Terminal window
chunkhound --version
# Should show: chunkhound x.x.x

Choose your embedding provider, then let ChunkHound’s interactive setup wizard handle the configuration.

Best choice for most users - fastest, most accurate, and cost-effective.

Setup steps:

  1. Get an API key from VoyageAI Console
  2. Set environment variable (optional): export VOYAGE_API_KEY="pa-your-key"
  3. Run chunkhound index - the wizard will detect your key or prompt for it

The setup wizard will automatically configure VoyageAI and test the connection.

Advanced: Custom Configuration

For CI/CD pipelines, custom providers, or when the setup wizard doesn’t detect your configuration, create a .chunkhound.json file manually:

{
"embedding": {
"provider": "voyageai",
"api_key": "pa-your-voyage-key"
}
}

Navigate to your project and create the searchable index:

Terminal window
cd /path/to/your/project
chunkhound index

You’ll see output like:

Scanning 3,847 files...
Processing 2,983 Python files, 864 JavaScript files...
✓ 62,419 chunks indexed
✓ Embeddings: 62,419 generated
⏱️ Time: 8m 42s

Respects .gitignore

ChunkHound automatically ignores files in your .gitignore

Incremental Updates

Re-running chunkhound index only processes changed files

29 languages

Supports Python, JavaScript, TypeScript, Go, Rust, Java, C++, and more

Configure ChunkHound as an MCP server so your AI assistant can search your code:

Easiest setup - Claude Code handles everything automatically:

Terminal window
# Run this in your project directory
claude mcp add ChunkHound chunkhound mcp

That’s it! Your AI assistant can now search your codebase.

Try asking your AI assistant:

“Can you search for any authentication functions in this codebase?”

Or:

“Find all the database models and show me their relationships”

If ChunkHound is working, your AI will be able to find and understand your code patterns instantly.

You can also test ChunkHound directly from the command line:

Terminal window
chunkhound search "class.*Authentication"
chunkhound search "user login and password validation"

🎉 ChunkHound is now connected to your AI assistant. Your AI can:

  • Find existing code before writing new functions
  • Understand your architecture before making changes
  • Follow your patterns and coding style
  • Cross-reference code with documentation

Next Steps: Enable Code Research (Optional)

Section titled “Next Steps: Enable Code Research (Optional)”

Want even deeper insights? ChunkHound’s Code Research feature provides comprehensive architectural analysis by exploring your codebase semantically.

What Code Research adds:

  • Map complete flows - “How does authentication work?” → comprehensive report with all components
  • Find architectural patterns - Discover rate limiting, caching, error handling strategies
  • Prevent duplicate work - Find existing implementations before building new ones

Quick setup:

  • Claude Code CLI or Codex CLI - FREE with your existing subscription (recommended)
  • OpenAI or Ollama - Alternative options for users without CLI subscriptions

See the Code Research Setup guide for detailed configuration instructions.

Quick example:

Terminal window
# After LLM configuration
chunkhound research "how does rate limiting work?"

Or via your AI assistant:

“Research our rate limiting implementation”