Leap360Leap360DocsBeta

Environment variables

Where the SDKs look for your key and settings.

JavaScript

Checked in this order:

VariableUse
LEAP360_API_KEYPreferred
NEXT_PUBLIC_LEAP360_API_KEYNext.js public runtime config
VITE_LEAP360_API_KEYVite projects
REACT_APP_LEAP360_API_KEYCreate React App
LEAP360_BASE_URLOverride 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

VariableUse
LEAP360_API_KEYAPI key
LEAP360_API_URLOverride the API URL (self-hosting)

Both SDKs fall back to ~/.leap360/config.json, written by npx leap360 login.

On this page