Overview
Bifrost provides built-in authentication to protect your dashboard and admin API endpoints. When enabled, users must log in with credentials before accessing the dashboard or making admin API calls. This feature helps secure your Bifrost instance, especially when deployed in production environments.Enabling Authentication
Step 1: Navigate to Security Settings
- Open your Bifrost dashboard
- Go to Workspace → Config → Security tab
- Scroll to the Password protect the dashboard section

Step 2: Enable Authentication
- Toggle the Password protect the dashboard switch to enable authentication
- Enter your Username in the admin username field
- Enter your Password in the admin password field
The username and password fields are only enabled when the authentication toggle is turned on. Make sure to use a strong password for security.
Step 3: Configure Inference Call Authentication (Optional)
By default, when authentication is enabled, all API calls (including inference calls) require authentication. You can optionally disable authentication for inference calls while keeping it enabled for the dashboard and admin API:- Enable the Disable authentication on inference calls toggle
- When enabled:
- Dashboard and admin API calls will still require authentication
- Inference API calls (chat completions, embeddings, etc.) will not require authentication
- MCP tool execution calls will still require authentication
This option is useful if you want to protect your dashboard and admin functions while allowing public access to inference endpoints.
Step 4: Save Changes
- Click Save Changes to apply your authentication settings
- You may need to restart Bifrost for the changes to take effect (a warning will be displayed if a restart is required)
Logging In
Once authentication is enabled:- Navigate to your Bifrost dashboard URL
- You will be automatically redirected to the login page
- Enter your configured username and password
- Click Sign in
Authentication Methods
Bifrost supports different authentication methods depending on the type of request:Dashboard Access
- Bearer Token Authentication: The dashboard uses Bearer token authentication
- Tokens are automatically managed through the login session
- Tokens are stored in browser localStorage and sent with each API request
API Calls
When authentication is enabled, API calls can use:- Basic Authentication: For inference calls, you can use HTTP Basic Auth with your username and password
- Bearer Token: For admin API calls, use the Bearer token obtained from the login session
Example: Using Basic Auth for API Calls
Important Notes
- Restart Required: After enabling or changing authentication settings, you may need to restart Bifrost for changes to take effect
- Session Duration: Login sessions last for 30 days
- Password Security: Passwords are hashed and stored securely in the database
- Inference Calls: If you disable authentication on inference calls, only dashboard and admin API endpoints will be protected
Disabling Authentication
To disable authentication:- Navigate to Workspace → Config → Security
- Toggle off the Password protect the dashboard switch
- Click Save Changes
- Restart Bifrost if prompted

