Skip to main content
Connect OpenHands Enterprise to Azure OpenAI or Azure AI Foundry model deployments through its bundled LiteLLM gateway. These configurations apply whether OpenHands runs on AKS or another supported Kubernetes platform. Choose your installation method:
  • Replicated: configure the gateway in the Admin Console.
  • Helm: configure the gateway through your installation values.

Choose the Provider Route

Azure AI Foundry includes Azure OpenAI and other model deployments. Use the route that matches your deployment’s inference API, rather than choosing by the portal name alone. An installation can expose both routes as separate model aliases in the same bundled gateway. Each route can use its own endpoint and Secret.

Configure the Gateway

Confirm Azure OpenAI support for your installed Replicated release before using these settings. The API-version rendering issue tracked in OpenHands-Cloud #1337 remains unresolved. The Helm configuration below sets the API version directly.
  1. Open the Admin Console LLM configuration.
  2. Select Azure for Azure OpenAI.
  3. Under Azure Authentication Method, select API Key and enter your resource key in Azure OpenAI API Key. To use a service principal, select Microsoft Entra ID — Service Principal and complete the authentication fields shown by the Admin Console.
  4. In Azure OpenAI Endpoint, enter your resource endpoint, such as https://<resource-name>.openai.azure.com/.
  5. In Azure OpenAI API Version, enter a version that supports your model and selected API mode. For the Responses example in this guide, enter 2025-04-01-preview instead of the displayed 2024-10-21 default.
  6. In Azure OpenAI Deployments, enter one deployment name per line. Use the deployment names from your Azure resource, without an azure/ prefix. For example:
    All deployments must be reachable at the endpoint and API version above. Deployment names can differ from the underlying model names.
  7. Save the configuration and deploy the updated version.
Use the Admin Console to manage this configuration rather than applying the Helm snippets in the Helm tab to a Replicated-managed installation. The Admin Console configures Azure OpenAI routes only. For Azure AI Foundry on a Replicated installation, contact OpenHands Support.

Select the Model in OpenHands

For a Replicated installation, select the Azure model configured in the Admin Console. For a Helm installation, save a separate LLM profile for each gateway alias you want to use. For the GPT-4.1-mini Helm routes above, use these settings: The Foundry example uses Chat Completions, while the Azure OpenAI example uses Responses. Choose the API mode supported by your configured inference route. Use your installation’s internal LiteLLM Service DNS name. The profile base URL points to the bundled gateway; the Azure resource endpoint belongs in Helm litellm_params.api_base.

Start Using the Model

  1. Select the profile you configured and start a conversation. Ask the agent to run pwd, write a file containing a literal test string, and read it back.
  2. Confirm the sandbox starts, tool actions succeed, and the agent completes.
  3. If you use automations, follow Enable Automations with Helm. Select the saved profile name, such as Azure-GPT-4.1-mini or Foundry-GPT-4.1-mini, dispatch one test run, and verify its status reaches COMPLETED and its output is correct. Disable any test schedule afterward.

Troubleshooting

Check the resource endpoint, deployment name and API version. Chat Completions support does not establish Responses support; use a version that supports your selected API mode.
Set the profile base URL to the internal LiteLLM Service URL shown above if your release does not supply it automatically.
Check the resource key and Secret injection. For Entra authentication, grant the required inference permissions; subscription Contributor access alone does not grant model inference access.
Check deployment token quota, request limits and available capacity. Agent prompts and tool definitions can require more capacity than short direct completions.
Check provider support; drop_params: true can omit unsupported optional parameters, but does not add tool support to a model
Check its endpoint path, supported API and LiteLLM provider configuration. Some model families require a different route, such as an Anthropic endpoint for Claude.
Check Kubernetes events and runtime registration. Inspect the configured sandbox runtime and node placement through your installation values.
For Azure model routing details, see LiteLLM’s Azure OpenAI reference. If your organization routes through an existing external gateway, use External LLM Gateways.