Running Locally
Get Rhesis running on your local machine in under 5 minutes with zero configuration required.
Overview
Perfect for quickly testing Rhesis locally without any configuration hassles. This setup includes:
- ✅ No Auth0 setup required - Local authentication bypass enabled
- ✅ Pre-configured database - PostgreSQL with automatic setup
- ✅ Auto-login enabled - Access the dashboard immediately
- ✅ Default admin user -
admin@local.devcreated automatically - ✅ All secrets included - Development-safe defaults provided
Local Development Only
This configuration is NOT suitable for production. It includes hardcoded secrets and disabled security features for ease of local development.
Prerequisites
- Docker Desktop installed and running
- Git (to clone the repository)
- Ports 3000, 8080, 8081, 5432, and 6379 available on your system
Quick Start
Get Rhesis running in under 5 minutes:
That’s it! The ./rh start command automatically:
- Checks if Docker is running
- Generates a secure database encryption key
- Creates
.env.docker.localwith all required configuration - Enables local authentication bypass (auto-login)
- Starts all services
- Creates the database and runs migrations
- Creates the default admin user (
Local Admin) - Loads example test data
What You Get
Configuration Files
The zero-configuration setup uses these files:
Auto-Generated Configuration
When you run ./rh start, the .env.docker.local file is automatically created with:
Auto-Generated Keys:
- Database encryption key (using Python cryptography.fernet)
- Local authentication bypass flags:
QUICK_START=true(enables backend auto-login endpoint)NEXT_PUBLIC_QUICK_START=true(enables frontend auto-login detection)
You can add (optional):
- Rhesis API key (for test generation)
- AI provider keys (Gemini, OpenAI, Azure)
- SMTP credentials (for email notifications)
Default Services:
- Backend API on port 8080
- Frontend on port 3000
- Worker on port 8081
- PostgreSQL on port 5432
- Redis on port 6379
Default Access
Once running, access the platform at:
| Service | URL | Credentials |
|---|---|---|
| Frontend | http://localhost:3000 | Auto-login (no credentials needed) |
| Backend API | http://localhost:8080/docs | API documentation |
| Worker Health | http://localhost:8081/health/basic | Health check endpoint |
| Default Admin | Local Admin | Created automatically with auto-login |
Optional Configuration
Enable Test Generation
The local setup works out-of-the-box, but to enable test generation, you need an AI provider. Two options:
Option 1: Use Rhesis API (Recommended)
- Get your API key from https://app.rhesis.ai/
- Edit
.env.docker.localand add:
Option 2: Use Your Own AI Provider
Add your provider’s credentials to .env.docker.local:
After updating, restart services:
Managing Services
Use the ./rh CLI for easy service management:
Stop services:
View logs:
Restart services:
Delete everything (fresh start):
Troubleshooting
Docker not running
Port already in use
Need a fresh start
Check service health
Python cryptography package missing
Auto-login not working
Note: The ./rh start command automatically sets both variables. If you’re manually configuring, ensure both QUICK_START=true (for backend) and NEXT_PUBLIC_QUICK_START=true (for frontend) are set in your .env.docker.local file. If you add these variables after the frontend container was already built, you may need to rebuild it: docker compose --env-file .env.docker.local build frontend && ./rh restart
Next Steps
Ready for Production?
This local setup is great for testing and development. When you’re ready to deploy to production, see the Self-Hosting Guide for proper security configuration and production deployment.
For local development setup without Docker (for contributing to Rhesis), see the Environment Setup Guide.