> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Models and Gateways

> Connect OpenHands Enterprise to your models and choose where to manage budgets and track spend.

## How do you want to manage your models and budgets?

OpenHands can call your model provider directly or send inference requests through a gateway.
Your choice determines where you set spending limits and which usage reports you can use.

### 1. Bundled LiteLLM — set budgets and review usage in OpenHands

Use bundled LiteLLM if you want a gateway integrated with OpenHands Enterprise and don't already
run one. Once you configure it, organization admins can set
[organization and per-member budgets](https://docs.openhands.dev/openhands/usage/cloud/organizations/budgets.md) and review usage
in OpenHands. LiteLLM enforces the limits.

* **Helm.** Enable and configure bundled LiteLLM in the
  [installation values](https://docs.openhands.dev/enterprise/k8s-install/installation.md#step-2-configure-values).
* **Docker Compose.** Add the optional
  [Compose LiteLLM overlay](https://github.com/OpenHands/enterprise/blob/main/docs/compose-litellm.md).
* **Replicated.** Configure your provider in the
  [Admin Console](https://docs.openhands.dev/enterprise/vm-install/admin-console-configuration.md#llm-configuration).

### 2. Connect directly and manage spend with your inference provider

Connect to a provider such as OpenAI, Anthropic, or Amazon Bedrock using your provider credentials.

* **Docker Compose.** Follow [Compose onboarding](https://docs.openhands.dev/enterprise/docker-compose) for providers that use
  an API key.
* **Helm.** If your deployment allows custom provider settings, select a direct provider profile.
  The agent sandbox needs access to the provider endpoint and its credentials. For Bedrock, the
  published [Helm recipe](https://docs.openhands.dev/enterprise/integrations/aws-bedrock-llm-gateway.md) configures the bundled
  gateway to call AWS.

OpenHands can still show conversation tokens and estimated cost. Direct calls bypass the
organization and per-member budget limits in OpenHands.

### 3. Use your own external gateway

If you already run a gateway, choose how OpenHands should connect to it:

* [**Forward through bundled LiteLLM**](https://docs.openhands.dev/enterprise/integrations/external-llm-gateways.md). Set
  budgets in OpenHands. Bundled LiteLLM forwards
  inference to your gateway using a credential configured by an admin.
* [**Use per-member keys**](https://docs.openhands.dev/enterprise/integrations/customer-llm-gateway.md). OpenHands calls
  your gateway with each member's existing virtual key. Your gateway records spend and
  enforces limits for that key.

The per-member relay uses the OpenAI-compatible Chat Completions API and a configurable credential
header. The per-member guide covers Docker Compose and Helm with the OpenHands Runtime API, using
LiteLLM as the validated example. For other gateways, verify authentication, spend attribution, and
limits for each member’s key.

## Provider-specific setup

These guides cover provider credentials, endpoints, and model IDs for the deployment methods
listed on each page.

> [card] [Azure](https://docs.openhands.dev/enterprise/integrations/azure-llm-gateway.md)
>
> Azure OpenAI and Azure AI Foundry model routes.

> [card] [AWS Bedrock](https://docs.openhands.dev/enterprise/integrations/aws-bedrock-llm-gateway.md)
>
> Amazon Bedrock models.

> [card] [Google](https://docs.openhands.dev/enterprise/integrations/google-llm-gateway.md)
>
> Vertex AI and Gemini API models.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.