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

# OpenHands

> Configure TokenLab models for OpenHands CLI and headless workflows

## Overview

OpenHands can use TokenLab through its LiteLLM/OpenAI-compatible model configuration, especially for CLI and headless workflows where you provide the model, API key, and base URL.

<Note>
  **Type**: Coding Agent

  **Primary Path**: OpenAI-compatible model configuration

  **Support Confidence**: Supported custom endpoint path
</Note>

## Environment

```bash theme={null}
export TOKENLAB_API_KEY="sk-your-tokenlab-key"
```

## Model Settings

Use:

```text theme={null}
Model: openai/claude-sonnet-5
API key: sk-your-tokenlab-key
Base URL: https://api.tokenlab.sh/v1
```

The `openai/` prefix tells the LiteLLM-backed path to use an OpenAI-compatible provider configuration.

## Headless Setup

If you are preparing local defaults for CLI or headless usage, run the OpenHands setup flow and enter:

```bash theme={null}
make setup-config
```

When prompted for model details, use the TokenLab model ID with the `openai/` prefix and TokenLab's `/v1` base URL.

## Model Suggestions

Use `claude-sonnet-5` or `gpt-5.4` for coding-agent planning, `gpt-5.4-mini` for faster routine loops, and `deepseek-v4-pro` when you want a strong alternative reasoning model.
