web-search that points at https://api.example.com. Replace them with your API’s name, URL and secret.
Create the relay
- Web UI
- config.json
- Helm
- Open Relays in the sidebar and select Add Relay.
- Enter a Name. Callers will use
/relay/<name>/.... - Enter the Base URL of the API.
- Pick how Bifrost signs in under Authentication, and enter the API Key.
- Select Add Relay.

Name and base URL
Authentication
Callers never see or send the API’s secret. They send their Bifrost virtual key, and Bifrost adds the relay’s credential to each call before it goes out. Any credential header the caller sends (Authorization, x-api-key, api-key, cookies and similar) is removed first.
Pick the method the API expects under Authentication, either when you add the relay or on the Authentication tab of Edit Relay Config.
- Bearer token
- Custom header
- Query parameter
- Basic auth
- AWS SigV4
- No authentication
The most common method. Enter the key under API Key, and Bifrost sends it as 
The same relay in
Authorization: Bearer <key>.
config.json:bifrost.relays with the same fields.
Extra headers
Extra Headers on the Advanced tab are added to every call the relay sends. Use them for headers the API always needs, such as an account ID, an API version or a second key.
config.json, this adds a team name and a second account key (read from an environment variable) to every call:
- If a caller sends a header with the same name, the caller’s copy is removed and yours is used.
- Each header name may appear once.
X-Teamandx-teamtogether are refused. - Values of headers that carry credentials are masked in the dashboard and API.
Network
The Network tab controls the connection from Bifrost to the API.
In
config.json, this gives a slow API 30 seconds per call, lets its streams stay quiet for 2 minutes, and caps it at 1,000 open connections:
Proxy
The Proxy tab sends this relay’s traffic through a forward proxy.
Username, Password and CA Certificate (PEM) are optional. The CA certificate is for proxies that inspect TLS traffic.
In
config.json, this sends the relay’s traffic through an HTTP proxy inside your network:
All fields
Next steps
- Routes: list the operations callers may use.
- Pricing: put a price on each call.
- Virtual keys: relay access: let a key call the relay.





