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
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
Note: When using file-based config, Bifrost only looks for
config.json in your specified app directory.