Skip to main content

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 and review usage in OpenHands. LiteLLM enforces the limits.

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 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 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. Set budgets in OpenHands. Bundled LiteLLM forwards inference to your gateway using a credential configured by an admin.
  • Use per-member keys. 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.

Azure

Azure OpenAI and Azure AI Foundry model routes.

AWS Bedrock

Amazon Bedrock models.

Google

Vertex AI and Gemini API models.