Getting Started
Quick setup guide to get Mimir running in minutes
Get Mimir up and running in just a few steps.
Prerequisites
Before you begin, make sure you have:
- Node.js: 20 or later
- Supabase: A Supabase project for vector storage
- LLM Provider: API key for OpenAI, Anthropic, Google, or Mistral
- GitHub (optional): Repository with documentation (MDX) and/or code to ingest
Step 1: Set up Supabase
- Go to supabase.com and create a new project
- Note your project URL (e.g.,
https://your-project.supabase.co) - Get your service role key from Project Settings → API
Step 2: Configure mimir-rag
cd mimir-rag
cp .env.example .env
# Edit .env with your Supabase and LLM credentialsSee the Configuration guide for all available options.
Step 3: Generate API key
Generate a secure API key for your server:
npm run generate-apikeyThis will output an API key that you'll use to authenticate requests to your mimir-rag server.
Step 4: Start the server
make serverThe server will:
- Load your
.envconfiguration - Automatically set up the database schema (if
DATABASE_URLis configured) - Start the API on port 3000
Step 5: Trigger ingestion
Ingest your first documentation or codebase:
npm run ingest:cliThis will fetch files from your configured GitHub repositories, extract entities, and store them in Supabase.
Next Steps
Once you have mimir-rag running:
- Check out the Configuration guide to learn about all available environment variables
- Learn how to configure multiple repositories
- Set up MCP integration to connect AI assistants
- Explore the API Reference for programmatic access