Environment Variables
| Variable | Used by | Default |
|---|---|---|
CUSTODIAN_SDK_API_KEY | Python & TypeScript SDKs | — |
CUSTODIAN_SDK_BASE_URL | SDKs — Platform API host | https://platform.custodianlabs.io/v1 |
CUSTODIAN_MASKING_BASE_URL | SDKs — Guardian Layer host | https://privacy.custodianlabs.io |
CUSTODIAN_API_KEY | Platform API curl examples | — |
The SDK key and the raw-API key are the same key — the two names just reflect different code. Guardian Layer and the Platform API both accept it.
Legacy aliases (still read)
AI_SDK_API_KEY → CUSTODIAN_SDK_API_KEY · AI_SDK_BASE_URL → CUSTODIAN_SDK_BASE_URL ·
GUARDIAN_LAYER_BASE_URL → CUSTODIAN_MASKING_BASE_URL
Notes
Backend / secret manager only — never browser code or commits. Restart the app after
changing a value; the SDKs don't load .env files themselves.