Environment variables
Where the SDKs look for your key and settings.
JavaScript
Checked in this order:
| Variable | Use |
|---|---|
LEAP360_API_KEY | Preferred |
NEXT_PUBLIC_LEAP360_API_KEY | Next.js public runtime config |
VITE_LEAP360_API_KEY | Vite projects |
REACT_APP_LEAP360_API_KEY | Create React App |
LEAP360_BASE_URL | Override the API URL (self-hosting) |
NEXT_PUBLIC_, VITE_ and REACT_APP_ variables are bundled into code that ships to browsers. Only use them for keys you are happy for visitors to see. Keep agent keys on the server.
Python
| Variable | Use |
|---|---|
LEAP360_API_KEY | API key |
LEAP360_API_URL | Override the API URL (self-hosting) |
Both SDKs fall back to ~/.leap360/config.json, written by npx leap360 login.