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

# OpenHands

> OpenHands LLM provider with access to state-of-the-art (SOTA) agentic coding models.

## Obtain Your OpenHands LLM API Key

1. [Log in to OpenHands Cloud](/openhands/usage/cloud/openhands-cloud).
2. Go to the Settings page and navigate to the `API Keys` tab.
3. Copy your `LLM API Key`.

<img src="https://mintcdn.com/allhandsai-sdk-docs/rxzAPde3vWbuB1mU/openhands/static/img/openhands-llm-api-key.png?fit=max&auto=format&n=rxzAPde3vWbuB1mU&q=85&s=cffd06e0f080d7ee97cf62896600b5c3" alt="OpenHands LLM API Key" width="1138" height="319" data-path="openhands/static/img/openhands-llm-api-key.png" />

## Configuration

When running OpenHands, you'll need to set the following in the OpenHands UI through the Settings under the `LLM` tab:

* `LLM Provider` to `OpenHands`
* `LLM Model` to the model you will be using (e.g. claude-sonnet-4-20250514 or claude-sonnet-4-5-20250929)
* `API Key` to your OpenHands LLM API key copied from above

## Using OpenHands LLM Provider in the CLI

1. [Run OpenHands CLI](/openhands/usage/run-openhands/cli-mode).
2. To select OpenHands as the LLM provider:

* If this is your first time running the CLI, choose `openhands` and then select the model that you would like to use.
* If you have previously run the CLI, run the `/settings` command and select to modify the `Basic` settings. Then
  choose `openhands` and finally the model.

<img src="https://mintcdn.com/allhandsai-sdk-docs/rxzAPde3vWbuB1mU/openhands/static/img/openhands-provider-cli.png?fit=max&auto=format&n=rxzAPde3vWbuB1mU&q=85&s=7aaa6a98bf343173888223afac990ed9" alt="OpenHands Provider in CLI" width="318" height="407" data-path="openhands/static/img/openhands-provider-cli.png" />

## Pricing

Pricing follows official API provider rates. Below are the current pricing details for OpenHands models:

| Model                      | Input Cost (per 1M tokens) | Cached Input Cost (per 1M tokens) | Output Cost (per 1M tokens) | Max Input Tokens | Max Output Tokens |
| -------------------------- | -------------------------- | --------------------------------- | --------------------------- | ---------------- | ----------------- |
| claude-opus-4-20250514     | \$15.00                    | \$1.50                            | \$75.00                     | 200,000          | 32,000            |
| claude-sonnet-4-20250514   | \$3.00                     | \$0.30                            | \$15.00                     | 200,000          | 64,000            |
| claude-sonnet-4-5-20250929 | \$3.00                     | \$0.30                            | \$15.00                     | 200,000          | 64,000            |
| devstral-medium-2507       | \$0.40                     | N/A                               | \$2.00                      | 128,000          | 128,000           |
| devstral-small-2505        | \$0.10                     | N/A                               | \$0.30                      | 128,000          | 128,000           |
| devstral-small-2507        | \$0.10                     | N/A                               | \$0.30                      | 128,000          | 128,000           |
| gemini-2.5-pro             | \$1.25                     | \$0.31                            | \$10.00                     | 1,048,576        | 65,535            |
| gpt-5-2025-08-07           | \$1.25                     | \$0.125                           | \$10.00                     | 400,000          | 128,000           |
| gpt-5-mini-2025-08-07      | \$0.25                     | \$0.025                           | \$2.00                      | 400,000          | 128,000           |
| o3                         | \$2.00                     | \$0.50                            | \$8.00                      | 200,000          | 100,000           |
| o4-mini                    | \$1.10                     | \$0.28                            | \$4.40                      | 200,000          | 100,000           |
| qwen3-coder-480b           | \$0.40                     | N/A                               | \$1.60                      | N/A              | N/A               |

**Note:** Cached input tokens are charged at a reduced rate when the same content is reused across requests. Models that don't support prompt caching show "N/A" for cached input cost.
