> ## 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.

# Run Task

> Fire a one-shot `claude -p "<prompt>"` on the box. Streams output as SSE.

Events:
  - data: {"chunk": "..."}      — stdout chunks
  - event: done, data: {"rc": 0} — final exit code



## OpenAPI

````yaml /cloud/openapi/v3.json post /boxes/me/run
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/run:
    post:
      tags:
        - Boxes
      summary: Run Task
      description: >-
        Fire a one-shot `claude -p "<prompt>"` on the box. Streams output as
        SSE.


        Events:
          - data: {"chunk": "..."}      — stdout chunks
          - event: done, data: {"rc": 0} — final exit code
      operationId: run_task_boxes_me_run_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunTaskRequest'
        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:
    RunTaskRequest:
      properties:
        prompt:
          type: string
          title: Prompt
      type: object
      required:
        - prompt
      title: RunTaskRequest
    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

````