Skip to main content
By default, the backend uses OpenAI (OPENAI_API_KEY in .env). If you’d rather use a different provider — your own Azure OpenAI deployment, AWS Bedrock, Anthropic directly, or something else — it’s configurable.
You don’t have to redeploy to switch providers. This is also configurable live from Django Admin (Agent Studio → Coding agent runtime configs), which takes precedence over .env once you enable a config there. Use .env for the version you want to ship with by default, and Django Admin if you want to change it afterward without restarting containers.

Two tracks

RELAI_AGENT_PROVIDER picks which track you’re on:
  • codex (the default) — an OpenAI-compatible track. Works with OpenAI, Azure OpenAI, AWS Bedrock, or any OpenAI-compatible gateway.
  • claude — an Anthropic-compatible track. Works with direct Anthropic, or Claude on AWS Bedrock, Google Vertex AI, AWS Marketplace, or Microsoft Foundry.
Within whichever track you pick, RELAI_AGENT_MODEL_PROVIDER selects the concrete backend. The sections below cover each one.
Nothing extra to configure beyond what’s already in Configuration:
Not every combination is valid — for example, the claude track only accepts anthropic, bedrock, vertex, anthropic-aws, or foundry as a model provider, and the codex track rejects those same values. If a config is invalid, the backend will tell you exactly what’s wrong when it starts up or when you try to enable it in Django Admin.