Prerequisites
Make sure you have:- Docker Desktop installed and running
- Completed the repository clone and dependency installation
Initial Setup
Initialize Supabase
Run this command in your project root (only needed the first time):This creates the
supabase/ directory with configuration files.Start local Supabase
The first run will pull approximately 13 Docker images, which takes a few minutes. Subsequent starts take only ~10 seconds.
- API URL (typically
http://127.0.0.1:54321) - anon key
- service_role key
Save these credentials - you’ll need them for environment configuration
Create Storage Buckets
Tabby requires two storage buckets for file uploads and context captures.Option 1: Using PowerShell (Windows)
Option 2: Using curl (macOS/Linux)
Option 3: Using Supabase Studio (Manual)
- Open Supabase Studio at
http://localhost:54323 - Navigate to Storage in the left sidebar
- Click New bucket
- Create a bucket named
context-captures(set to public) - Create another bucket named
project-assets(set to public)
Database Schema
The database includes tables for:- conversations - Stores chat conversations with metadata
- messages - Individual messages within conversations
- Custom functions for SQL execution and timestamp updates
supabase/migrations/20240101000000_init.sql.
Quick Reference
Common Supabase commands:| Action | Command |
|---|---|
| Start | npx supabase start |
| Stop | npx supabase stop |
| Status | npx supabase status |
| Admin UI | http://localhost:54323 |
| Reset DB | npx supabase db reset |
Troubleshooting
Docker not running
If you see connection errors, make sure Docker Desktop is running and fully initialized.Port conflicts
If ports 54321 or 54323 are already in use, stop other services or configure different ports insupabase/config.toml.
Reset database
To start fresh with a clean database:Next Steps
After setting up the database:- Note your API URL, anon key, and service_role key from
npx supabase status - Configure environment variables with these credentials
- Optionally set up Neo4j knowledge graph