Skip to main content

Environment Variables

VariableUsed byDefault
CUSTODIAN_SDK_API_KEYPython & TypeScript SDKs—
CUSTODIAN_SDK_BASE_URLSDKs — Platform API hosthttps://platform.custodianlabs.io/v1
CUSTODIAN_MASKING_BASE_URLSDKs — Guardian Layer hosthttps://privacy.custodianlabs.io
CUSTODIAN_API_KEYPlatform 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.

See also​

Python auth · TypeScript auth · Use API keys securely