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
| Variable | Argument | Role |
|---|---|---|
AZATAI_API_KEY | api_key | Your API key |
AZATAI_SANDBOX_DOMAIN | domain | The sandbox domain. The API is at https://api.<domain> and the sandboxes at https://<domain> |
AZATAI_SANDBOX_API_URL | api_url | The API address, if it is not https://api.<domain> |
AZATAI_SANDBOX_URL | sandbox_url | The sandbox address, if it is not https://<domain> |
What to set
- Set
AZATAI_API_KEY. - Set
AZATAI_SANDBOX_DOMAIN, or set bothAZATAI_SANDBOX_API_URLandAZATAI_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.