Prerequisites
Before installing Docbot, ensure you have the following tools installed:- Bun - Required runtime (will not change)
- Docker - For running Qdrant locally
- ripgrep (
rg) - For fast exact-match search - AI Gateway API key - Vercel AI Gateway access
You can check if ripgrep is installed by running
rg --version in your terminal.Installation
Install Docbot
You can run Docbot directly with Or install globally for easier access:
bunx without installing globally:Set up environment variables
Create a
.env file in your project root and add your AI Gateway API key:Initialize Docbot in your project
Navigate to your project directory and run the initialization command:This command will:
- Create a
.docbot/directory for cache and local state - Generate
docbot.config.jsoncwith default configuration - Add
.docbot/to your.gitignore - Check for Docker and attempt to start Qdrant automatically
Configure your project paths
Edit
docbot.config.jsonc to specify your documentation and codebase paths:The
codebase field accepts either a single string or an array of paths for monorepo support.Start Qdrant (if not auto-started)
If Qdrant wasn’t automatically started during initialization, start it manually:Verify Qdrant is running by checking the health endpoint:You should receive a response indicating the service is healthy.
Index your documentation and codebase
Build the search index from your docs and code:This command will:
- Read all documentation files from your docs path
- Parse and chunk code from your codebase paths
- Generate embeddings using the configured model
- Store vectors in Qdrant collections
Verify your setup
Test that everything is working correctly:Next steps
- Learn about Docker and Qdrant setup
- Configure custom AI models
- Review troubleshooting tips if you encounter issues
Common setup options
Running without the TUI
If you prefer to run the server without the terminal UI:Using a remote Qdrant instance
Update yourdocbot.config.jsonc to point to a remote instance: