Skip to main content
Choose your provider below and add its block to the .env file beside your Docker Compose file before you start the platform. Keep both the RELAI_AGENT_* and RELAI_OPTIMIZER_* settings from the chosen block. They configure the different parts of RELAI that make model requests. Only edit the values in angle brackets — replace each <...> placeholder with your own value before starting the containers. Every other value is a fixed constant; leave it exactly as shown.
Create a project API key in the OpenAI Platform, then add:
In case you want to change the provider block in .env on a running deployment, recreate the affected services to apply the change:

Use Django Admin instead

You can configure the same values in Django Admin under Agent Studio. Add and enable a Generation Runtime Config and an Optimizer Runtime Config, using the provider and model values from the matching block above. An enabled Admin entry takes precedence over .env for that setting.

Verify the setup

After applying your changes, run a small task in RELAI. If it fails, check that the model or deployment name, endpoint, region, and credential are correct. Container logs identify the provider and model used, but should never contain the key itself.