Skip to main content
POST
Save Profile

Authorizations

X-Session-API-Key
string
header
required

Path Parameters

name
string
required
Required string length: 1 - 64
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$

Body

application/json
llm
LLM · object
required

Language model interface for OpenHands agents.

The LLM class provides a unified interface for interacting with various language models through the litellm library. It handles model configuration, API authentication, retry logic, and tool calling capabilities.

Attributes: model: Model name (e.g., "gpt-5.6"). api_key: API key for authentication. base_url: Custom API base URL. num_retries: Number of retry attempts for failed requests. timeout: Request timeout in seconds.

Example: ```python from openhands.sdk import LLM from pydantic import SecretStr

include_secrets
boolean
default:true

Whether to persist the API key with the profile.

Response

Successful Response

message
string
required
name
string
required