Endpoints
Configure private and public Rivet endpoints for your nodes and clients, including namespace credentials and environment variable options.
Local development
No configuration is needed. RivetKit runs a local control plane on your machine.
Production
Private endpoint
The private endpoint tells your nodes and backend where the control plane is. It carries a secret token, so keep it server-side.
Public endpoint
The public endpoint is what your app hands to browser clients. It is exposed to the internet, so use a public token (pk_), never a secret token (sk_).
RIVET_PUBLIC_ENDPOINT=https://my-namespace:pk_xxxxx@api.rivet.dev
URL auth syntax
Endpoint URLs carry the namespace and token:
https://namespace:token@host/path
This is the recommended form. Alternatively, set them separately:
RIVET_ENDPOINT=https://api.rivet.dev
RIVET_NAMESPACE=my-namespace
RIVET_TOKEN=sk_xxxxx
On a self-hosted control plane, use your namespace slug and admin token. For the default namespace: https://default:<admin-token>@rivet.example.com.
Reference
| Environment Variable | Config Option | Description |
|---|---|---|
RIVET_ENDPOINT | endpoint | Control plane URL for your nodes and backend |
RIVET_NAMESPACE | namespace | Namespace for Rivet Actor isolation |
RIVET_TOKEN | token | Token for the control plane connection |
RIVET_PUBLIC_ENDPOINT | Client-facing endpoint | |
RIVET_PUBLIC_TOKEN | Client-facing token |