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

# Claude Login Code

> Pump the OAuth callback code into the box's pty stdin.

No real validation here — claude itself surfaces "invalid code"
on the next pty stdout line, which our claude_login_failed event
captures.



## OpenAPI

````yaml /cloud/openapi/v3.json post /boxes/me/claude-login/code
openapi: 3.1.0
info:
  title: Browser Use Public API v3
  summary: Browser Use session-based agent API (v3)
  version: 3.0.0
servers:
  - url: https://api.browser-use.com/api/v3
    description: Production server
security: []
paths:
  /boxes/me/claude-login/code:
    post:
      tags:
        - Boxes
      summary: Claude Login Code
      description: |-
        Pump the OAuth callback code into the box's pty stdin.

        No real validation here — claude itself surfaces "invalid code"
        on the next pty stdout line, which our claude_login_failed event
        captures.
      operationId: claude_login_code_boxes_me_claude_login_code_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClaudeLoginCodeRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ClaudeLoginCodeRequest:
      properties:
        code:
          type: string
          title: Code
      type: object
      required:
        - code
      title: ClaudeLoginCodeRequest
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Browser-Use-API-Key

````