Skip to main content

Installation

Get Rephole running on your machine in under 5 minutes.

Prerequisites​

Before installing Rephole, ensure you have:

  • Docker & Docker Compose - For containerized deployment
  • Git - To clone the repository
  • pnpm - Package manager (recommended)
  • An OpenAI API key - For generating embeddings

Installation​

Docker Compose​

The fastest way to get started:

# Clone the repository
git clone https://github.com/twodHQ/rephole.git
cd rephole

# Configure your environment
cp .env.example .env
# Edit .env and add your OPENAI_API_KEY

# Start Rephole services (Redis, PostgreSQL, ChromaDB)
docker-compose up -d

# Install dependencies
pnpm install

# Start API server and Worker
pnpm start:all

Rephole is now running:

Verify Installation​

Check that all services are running:

# Verify API is responding
curl http://localhost:3000/health

Expected response:

{
"status": "ok"
}

What's Running?​

After installation, you'll have the following services:

ServicePortDescription
API Server3000REST API endpoints
Worker3002Background job processor
PostgreSQL5432Metadata storage
Redis6379Job queue
ChromaDB8000Vector database

Next Steps​

Once installed, proceed to Your First Query to ingest and search your first repository.