# Self-host Bifrost

> Fast open source LLM gateway that routes requests to many providers behind one OpenAI compatible API, with a web UI for keys and routing rules.

- Page: https://levelrail.com/templates/bifrost/
- JSON: https://levelrail.com/templates/bifrost.json
- Category: AI
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/maximhq/bifrost
- Upstream docs: https://docs.getbifrost.ai/

## Requirements
- Memory: about 256 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v2.5.1

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| bifrost | maximhq/bifrost | v2.5.1 | 8080 | data -> /app/data |

## Deploy

### CLI

```bash
levelrail-cli templates deploy bifrost --name my-bifrost
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/bifrost/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Open the address, add provider keys in the web UI, then point your OpenAI compatible clients at it. Keep it private or add a login in front.

## Questions

### Can I deploy Bifrost on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Bifrost, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image maximhq/bifrost:v2.5.1 is what you deploy there.

Self-host Bifrost, Bifrost docker compose file, deploy Bifrost on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
