Skip to main content
The self-hosted gateway serves Dari Link out of the box: the popup, the tokens, and the model endpoints.

Required Settings

Without DARI_GATEWAY_ENCRYPTION_KEY, the popup refuses to store anyone’s subscription or key. Keep it in a secret manager: lose it and every stored connection is unreadable.

Rotate The Encryption Key

Put the new key first, keep the old one after it, and restart once:
On start, the gateway re-encrypts everything with the new key. Then you can drop the old one.

Allow http Redirects In Development

In dari-gateway.yaml:

What It Stores

Users have no Dari account. A signed, HttpOnly cookie remembers what they connected, for a year, and lets them manage it at /v1/link/connections.