openhands.server.settings
Settings Objects
class Settings(BaseModel)
Persisted settings for OpenHands sessions
llm_api_key_serializer
@field_serializer('llm_api_key')
def llm_api_key_serializer(llm_api_key: SecretStr, info: SerializationInfo)
Custom serializer for the LLM API key.
To serialize the API key instead of ********, set expose_secrets to True in the serialization context.
github_token_serializer
@field_serializer('github_token')
def github_token_serializer(github_token: SecretStr | None,
info: SerializationInfo)
Custom serializer for the GitHub token.
To serialize the token instead of ********, set expose_secrets to True in the serialization context.
POSTSettingsModel Objects
class POSTSettingsModel(Settings)
Settings for POST requests
GETSettingsModel Objects
class GETSettingsModel(Settings)
Settings with additional token data for the frontend