Getting Started
Installation and basic setup for UnifyRoute
Table of Contents
Prerequisites
Before installing UnifyRoute, ensure you have:
- Python 3.11+ - Core language requirement
- Node.js 18+ - Required for the frontend dashboard
- npm - Node package manager
- Redis - For session and queue management (optional for development)
- uv - Fast Python package installer
Installation
1. Clone the Repository
| |
2. Configure Environment
Copy the sample environment file and update with your settings:
| |
Edit .env with your configuration:
| |
3. Run Setup
Execute the setup command to initialize the system:
| |
This will:
- Create necessary databases
- Initialize the credential vault
- Generate initial API tokens
- Set up provider configurations
4. Start Services
Start UnifyRoute:
| |
The services will be available at:
- Dashboard: http://localhost:6565
- API Gateway: http://localhost:6565/api/v1
5. Verify Installation
Check that services are running:
| |
You should see a response indicating all services are healthy.
First Steps
Add Your First Provider
- Open the dashboard at http://localhost:6565
- Navigate to “Providers”
- Click “Add Provider”
- Select your provider (OpenAI, Anthropic, etc.)
- Enter your API credentials
- Test the connection
Create an API Token
- Go to “Tokens” in the dashboard
- Click “Create Token”
- Configure token permissions
- Copy and save the generated token securely
Configure Routing
- Go to “Routing” settings
- Set up routing tiers (primary, fallback, etc.)
- Select which providers for each tier
- Save configuration
Test Your Setup
Use your API token to make a test request:
| |
Common Issues
Redis Connection Error
If you see Redis connection errors, ensure Redis is running:
| |
Port Already in Use
If port 6565 is already in use, change it in .env:
| |
Database Lock
Remove the old database and reinitialize:
| |
Next Steps
- Read the Architecture guide to understand how UnifyRoute works
- Check Configuration options for advanced settings
- Review API Reference to understand available endpoints
- Explore Deployment guides for production setup
Last updated: January 1, 0001