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

# openhands.sdk.secret

> API reference for openhands.sdk.secret module

Secret management module for handling sensitive data.

This module provides classes and types for managing secrets in OpenHands.

***

### class LookupSecret

Bases: [`SecretSource`](#class-secretsource)

A secret looked up from some external url

#### Properties

* `headers`: dict\[str, str]
* `url`: str

#### Methods

#### get\_value()

Get the value of a secret in plain text

#### model\_config = (configuration object)

Configuration for the model, should be a dictionary conforming to \[ConfigDict]\[pydantic.config.ConfigDict].

***

### class SecretSource

Bases: `DiscriminatedUnionMixin`, `ABC`

Source for a named secret which may be obtained dynamically

#### Properties

* `description`: str | None

#### Methods

#### abstractmethod get\_value()

Get the value of a secret in plain text

#### model\_config = (configuration object)

Configuration for the model, should be a dictionary conforming to \[ConfigDict]\[pydantic.config.ConfigDict].

***

### class StaticSecret

Bases: [`SecretSource`](#class-secretsource)

A secret stored locally

#### Properties

* `value`: SecretStr | None

#### Methods

#### get\_value()

Get the value of a secret in plain text

#### model\_config = (configuration object)

Configuration for the model, should be a dictionary conforming to \[ConfigDict]\[pydantic.config.ConfigDict].


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