Skip to main content
Use DigitalOcean Inference when you want to run OpenHands on models hosted by DigitalOcean Serverless Inference and billed to your DigitalOcean account. One DigitalOcean key gives you access to Anthropic, OpenAI, and open-weight models. This pairs well with DigitalOcean Managed Agents, so both your sandboxes and your model usage stay on DigitalOcean. It works with any backend.

Create a Model Access Key

  1. In the DigitalOcean control panel, open Model Access Keys.
  2. Select Create model access key and enter an Access Key Name.
  3. On the Foundation models tab, choose All models, or Select models to limit the key to the models you plan to use.
  4. Select Continue. Under VPC Network, choose No VPC network.
  5. Select Add model access key, then copy the secret key. DigitalOcean shows it only once.
Do not restrict the key to a VPC network. OpenHands calls the public inference endpoint, and VPC-scoped keys are not supported from DigitalOcean Managed Agents sandboxes.

Configure Agent Canvas

  1. Open Settings > LLM.
  2. In the Basic tab, select digitalocean as the provider.
  3. Select a model, enter your model access key, and save the profile.
  4. Start a new conversation and send a short message to verify the model responds.
You do not need to set a base URL. OpenHands sends digitalocean/ models to https://inference.do-ai.run/v1 automatically. To reuse the key across several models, create a digitalocean Provider Connection and select it in each profile.

Verified Models

These models are verified for tool calling with OpenHands. Enter the model string as shown when you use the Advanced tab or the SDK. To use a model that is not listed, use the Advanced tab and add the digitalocean/ prefix to its DigitalOcean model ID. Get current IDs from DigitalOcean’s available models or from GET https://inference.do-ai.run/v1/models. For example:
OpenHands needs tool calling through the Chat Completions API. Models that support tools only through the Responses API, such as the GPT-6 line, do not work through this provider yet.

Use It With the SDK

The SDK fills in the DigitalOcean endpoint for you. Pass base_url only to override it.

Costs

DigitalOcean bills inference to your Inference and Agents balance, then your account prepayment balance. See Serverless Inference pricing for per-model rates. Third-party models, such as Anthropic and OpenAI models, are not discounted by Agent Droplets plans.

Fix Common Problems

For the broader configuration decision and recovery paths, see Configure a Model.