Zero-Config Setup (15 seconds!)
1. Start Bifrost (No config needed!)
2. Open the Web Interface
📂 File-Based Configuration (Optional)
Want to use a config file instead? Bifrost automatically looks forconfig.json in your app directory:
1. Create config.json in your app directory
2. Set environment variables and start
📁 Understanding App Directory & Docker Volumes
How the -app-dir Flag Works
The -app-dir flag tells Bifrost where to store and look for data:
config.json- Configuration file (if using file-based config)logs/- Database logs and request history- Any other persistent data
How Docker Volumes Work with App Directory
Docker volumes map your host directory to Bifrost’s app directory:Persistence Scenarios
| Scenario | Command | Result |
|---|---|---|
| Ephemeral (testing) | docker run -p 8080:8080 maximhq/bifrost | No persistence, configure via web UI |
| Persistent (recommended) | docker run -p 8080:8080 -v $(pwd):/app/data maximhq/bifrost | Saves config & logs to host directory |
| Pre-configured | Create config.json, then run with volume | Starts with your existing configuration |
Best Practices
- 🔧 Development: Use
-v $(pwd):/app/datato persist config between restarts - 🚀 Production: Mount dedicated volume for data persistence
- 🧪 Testing: Run without volume for clean ephemeral instances
- 👥 Teams: Share
config.jsonin version control, mount directory with volume
3. Test the API
📋 Note: All Bifrost responses follow OpenAI’s response structure, regardless of the underlying provider. This ensures consistent integration across different AI providers.
🔄 Drop-in Integrations (Zero Code Changes!)
Already using OpenAI, Anthropic, or Google GenAI? Get instant benefits with zero code changes:🤖 OpenAI SDK Replacement
🧠 Anthropic SDK Replacement
🔍 Google GenAI Replacement
🚀 Next Steps (30 seconds each)
🖥️ Add Multiple Providers via Web UI
- Open
http://localhost:8080in your browser - Click “Add Provider”
- Select OpenAI, enter your API key, choose models
- Click “Add Provider” again
- Select Anthropic, enter your API key, choose models
- Done! Your providers are now load-balanced automatically
📡 Or Add Multiple Providers via API
⚡ Test Different Providers
🔄 Add Automatic Fallbacks
🔗 Language Examples
Python
JavaScript/Node.js
Go
🔧 Setup Methods Comparison
| Method | Pros | Use When |
|---|---|---|
| Zero Config | No files needed, visual setup, instant start | Quick testing, demos, new users |
| File-Based | Version control, automation, reproducible deployment | Production, CI/CD, team setups |
| Docker | No Go installation needed, isolated environment | Production, CI/CD, quick testing |
| Go Binary | Direct execution, easier debugging | Development, custom builds |
config.json in your specified app directory.