Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion openhands/usage/llms/openhands-llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ When you use OpenHands as an LLM provider in the CLI, we may collect minimal usa

## Using OpenHands LLM Provider with the SDK

You can use your OpenHands API key with the [OpenHands SDK](https://docs.openhands.dev/sdk) to build custom agents and automation pipelines.
You can use your OpenHands LLM API key with the [OpenHands SDK](https://docs.openhands.dev/sdk) to build custom agents and automation pipelines.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!




### Configuration

Expand All @@ -46,6 +48,16 @@ export LLM_API_KEY="your-openhands-api-key"
export LLM_MODEL="openhands/claude-sonnet-4-20250514"
```

<Warning>
**The SDK uses the OpenHands LLM Key not the OpenHands Cloud API Keys** : If you see the following error ensure you are using the [OpenHands LLM Key](https://app.all-hands.dev/settings/api-keys).

```bash
Unable to find token in cache or `LiteLLM_VerificationTokenTable`
```

OpenHands Cloud API Keys work with the [Cloud API](https://docs.openhands.dev/openhands/usage/cloud/cloud-api), while OpenHands LLM API Keys work with your chosen LLM via the OpenHands provider.
</Warning>

### Example

```python
Expand Down
2 changes: 1 addition & 1 deletion sdk/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The SDK requires an LLM API key from any [LiteLLM-supported provider](https://do
</Accordion>

<Accordion title="Option 2: OpenHands Cloud (Recommended)" icon="cloud">
Sign up for [OpenHands Cloud](https://app.all-hands.dev) and get an LLM API key from the [API keys page](https://app.all-hands.dev/settings/api-keys). This gives you access to models verified to work well with OpenHands, with no markup.
Sign up for [OpenHands Cloud](https://app.all-hands.dev), add credits to your account, and get your OpenHands LLM API key from the [API keys page](https://app.all-hands.dev/settings/api-keys). This gives you access to models verified to work well with OpenHands, with no markup.

Example:
```bash
Expand Down
Loading