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

# Update Box Agent

> Tell the box-agent to git-pull + restart from the OSS repo.

Default `branch` is whatever the box is currently tracking (the agent
resolves it from `git rev-parse --abbrev-ref HEAD`); pass `branch=main`
or `branch=stable` to switch tracks.

Returns the old + new SHA so the FE can show "updated to a3f9c1d".
The agent restarts itself at the tail of the update — the next hello
will report the new version. We wait up to 90s for the update_result
reply since git fetch + bootstrap.sh can stretch on slow networks.



## OpenAPI

````yaml /cloud/openapi/v3.json post /boxes/me/update
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/update:
    post:
      tags:
        - Boxes
      summary: Update Box Agent
      description: |-
        Tell the box-agent to git-pull + restart from the OSS repo.

        Default `branch` is whatever the box is currently tracking (the agent
        resolves it from `git rev-parse --abbrev-ref HEAD`); pass `branch=main`
        or `branch=stable` to switch tracks.

        Returns the old + new SHA so the FE can show "updated to a3f9c1d".
        The agent restarts itself at the tail of the update — the next hello
        will report the new version. We wait up to 90s for the update_result
        reply since git fetch + bootstrap.sh can stretch on slow networks.
      operationId: update_box_agent_boxes_me_update_post
      parameters:
        - name: branch
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Branch
      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:
    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

````