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

# Activate Profile

> Switch ``agent_settings.llm`` to use a saved profile.

Applies the same ``base_url`` fixups as ``POST /api/v1/settings``, so
activating a profile that omits ``base_url`` still points at the
provider's default endpoint.



## OpenAPI

````yaml /openapi/openhands-cloud.json post /api/v1/settings/profiles/{name}/activate
openapi: 3.1.0
info:
  title: OpenHands
  description: 'OpenHands: Code Less, Make More'
  version: 0.0.1
servers: []
security: []
paths:
  /api/v1/settings/profiles/{name}/activate:
    post:
      tags:
        - Settings
      summary: Activate Profile
      description: |-
        Switch ``agent_settings.llm`` to use a saved profile.

        Applies the same ``base_url`` fixups as ``POST /api/v1/settings``, so
        activating a profile that omits ``base_url`` still points at the
        provider's default endpoint.
      operationId: activate_profile_api_v1_settings_profiles__name__activate_post
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 64
            pattern: ^[A-Za-z0-9._-]{1,64}$
            title: Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/openhands__app_server__settings__settings_router__ActivateProfileResponse
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    openhands__app_server__settings__settings_router__ActivateProfileResponse:
      properties:
        name:
          type: string
          title: Name
        message:
          type: string
          title: Message
        model:
          anyOf:
            - type: string
            - type: 'null'
          title: Model
      type: object
      required:
        - name
        - message
      title: ActivateProfileResponse
      description: Response body for activating a profile.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Access-Token

````