Skip to content
AzatAI

AzatAI Sandbox

Configuration

The settings of the Python client, and how to set them with environment variables or arguments.

The client reads its settings from environment variables. A keyword argument with the same role overrides the variable, for example Sandbox.create(api_key=...).

Settings

VariableArgumentRole
AZATAI_API_KEYapi_keyYour API key
AZATAI_SANDBOX_DOMAINdomainThe sandbox domain. The API is at https://api.<domain> and the sandboxes at https://<domain>
AZATAI_SANDBOX_API_URLapi_urlThe API address, if it is not https://api.<domain>
AZATAI_SANDBOX_URLsandbox_urlThe sandbox address, if it is not https://<domain>

What to set

  1. Set AZATAI_API_KEY.
  2. Set AZATAI_SANDBOX_DOMAIN, or set both AZATAI_SANDBOX_API_URL and AZATAI_SANDBOX_URL.

If a setting is missing, the client raises azatai.ConfigError.

Keep your key safe

Keep the API key out of your code and out of version control. Read it from the environment or from a secret store, and give each system its own key.