In production there is no browser and no elding login. You need two environment variables:
The SDK reads them automatically — your application code does not change between development and production.
Method 1 — CLI (recommended)
Run once, locally, in your project folder:
The CLI asks for an optional key name, creates the key, and prints the two variables:
Paste them into your host’s environment settings (Vercel → Settings → Environment Variables, Railway, Render, etc.).
Do not run elding deploy in a CI pipeline with public logs. The token would be exposed.
Always run it locally and paste the values manually into your host.
Method 2 — Dashboard
- Open elding.app and go to API Keys.
- Click New key, give it a name, and copy the
ELDING_REFRESH_TOKEN shown once.
- Open the target set. Its ID is in the URL:
elding.app/vault?set=<ELDING_SET_ID>.
- Add both variables to your host’s environment.
What to do with the variables
Once set on your host, the SDK works automatically with no code changes:
DATABASE_URL, JWT_SECRET, REDIS_URL, and other non-HTTP variables remain in your
host’s environment variables.
Revoke a key
Go to API Keys in the dashboard and click Revoke next to the key. The token is immediately invalidated — no deployment or code change needed.