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

# Use CerasAI with OpenHands

> Connect OpenHands directly to CerasAI through its OpenAI-compatible LLM settings.

## Before you begin

Install and start OpenHands, create a key on the
[API Keys](https://console.cerasai.cloud/keys) page, and confirm the model ID you want to use
on the [Models](https://console.cerasai.cloud/models) page.

**1. Open the LLM settings**

Open the OpenHands web interface. In the initial setup dialog, select
**See advanced settings**. If setup is already complete, open **Settings**, choose
**LLM**, and enable **Advanced**.

**2. Configure CerasAI**

Enter the following values:

| Field | Value |
| - | - |
| Custom Model | `openai/deepseek-ai/DeepSeek-V4.1-Flash-1017` |
| Base URL | `https://api.cerasai.cloud/v1` |
| API Key | Your CerasAI API key |

`deepseek-ai/DeepSeek-V4.1-Flash-1017` is an example. Replace it with your chosen model or tier.

The `openai/` prefix selects OpenHands' OpenAI-compatible client. The remainder must match
the model ID shown in the CerasAI console.

> [!TIP]
>
> OpenHands needs a large context window for its system prompt and tools. Pick a model with
> enough context for your repository and task.

**3. Save and start a session**

Select **Save Settings**, create a workspace, and start a new conversation.

## Troubleshooting

| Symptom | Cause |
| - | - |
| OpenHands cannot find the model | The Custom Model value is missing `openai/`, or the remaining model ID is incorrect. |
| OpenHands behaves like a plain chatbot | The selected model may not perform tool calls reliably. Try a stronger coding model. |
| The agent loses context early | The selected model's context window is too small for the OpenHands prompt and workspace. |

Issues common to every agent are listed under [Common issues](https://docs.cerasai.com/agent-integrations#common-issues).

## Resources

* [OpenHands OpenAI-compatible LLM setup](https://docs.openhands.dev/openhands/usage/llms/local-llms)
* [Install OpenHands](https://docs.openhands.dev/openhands/usage/installation)
* [CerasAI models](https://console.cerasai.cloud/models)


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