Skip to main content
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. 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

  1. Open elding.app and go to API Keys.
  2. Click New key, give it a name, and copy the ELDING_REFRESH_TOKEN shown once.
  3. Open the target set. Its ID is in the URL: elding.app/vault?set=<ELDING_SET_ID>.
  4. 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.