Skip to main content
Inconsistent provenance

Files in this release originate from inconsistent repositories or configurations. View details.

GL Browser Use

GL Browser Use is a typed Python package for running browser automation tasks through browser-use. It provides a stable client facade, structured stream events, explicit result objects, optional Steel or OpenSandbox browser infrastructure, optional S3-compatible recording storage through the MinIO Python client, and bounded retries for recoverable browser-session failures.

Installation

Use pip 26.2.2 or newer, or uv 0.13.4 or newer. For existing environments, follow the Python eMudhra/emSign security advisory to bootstrap an updated installer securely. This SDK requires certifi 2026.10.19 or newer; upgrading certifi does not update the certificate bundle embedded in pip or uv. Rebuild browser container images with updated system CA certificates. Upgrade sigstore to at least 4.5.1 if it is installed separately.

Published binary package

Install the published binary distribution for normal application use:

pip install gl-browser-use-binary

Supported Python versions are 3.12 and 3.13.

Install optional providers with the binary package only when you need them:

pip install "gl-browser-use-binary[cubesandbox]"    # CubeSandbox browser infrastructure
pip install "gl-browser-use-binary[opensandbox]"    # OpenSandbox browser infrastructure
pip install "gl-browser-use-binary[steel]"          # Steel browser infrastructure
pip install "gl-browser-use-binary[infrastructure]" # All browser infrastructure providers
pip install "gl-browser-use-binary[minio]"          # MinIO/S3-compatible object storage
pip install "gl-browser-use-binary[storage]"        # All object storage providers
pip install "gl-browser-use-binary[full]"           # Infrastructure + storage providers

Use the concrete extras (cubesandbox, opensandbox, steel, minio) in application dependency files when you want to pin exactly which provider you depend on. The slot extras (infrastructure, storage, full) are convenience aliases and may include more providers later.

The repository project is named gl-browser-use; the release workflow compiles and publishes it as gl-browser-use-binary. Both use the same gl_browser_use import namespace.

Local development

From the repository checkout, install the source project and development dependencies with uv:

cd libs/gl-browser-use
uv sync --all-extras --group dev
cp -n .env.example .env
make dev-up

The local Compose service is SeaweedFS. It stores data in the seaweedfs_data named volume and exposes its S3 API at localhost:8333. The defaults in .env.example match the local service; change OBJECT_STORAGE_URL when the application runs in another network. The endpoint used to sign a URL must also be reachable by the process or browser that downloads it. Compose's healthcheck only confirms that the SeaweedFS master responds; verify authenticated S3 access from your application. To use an existing S3-compatible endpoint, set the OBJECT_STORAGE_* variables for the application and skip make dev-up.

Quick Start

BrowserUseClient supports streaming and non-streaming execution. API keys can be passed directly or, when omitted, read from environment variables.

import asyncio

from gl_browser_use import BrowserUseClient, BrowserUseClientConfig
from gl_browser_use.infrastructure import SteelBrowserInfrastructure
from gl_browser_use.storage import MinIOS3CompatibleStorage


async def main() -> None:
    client = BrowserUseClient(
        config=BrowserUseClientConfig(
            llm_openai_api_key="...",
            page_extraction_llm_openai_api_key="...",
            max_session_retries=2,
            session_retry_delay_in_s=3.0,
        ),
        infrastructure=SteelBrowserInfrastructure(),  # reads STEEL_API_KEY by default
        storage=MinIOS3CompatibleStorage.from_environment(),
    )

    async for event in client.run("Open Hacker News and list five article titles"):
        print(event.content)


asyncio.run(main())

For a single aggregated result:

from gl_browser_use import BrowserUseClient, BrowserUseClientConfig
from gl_browser_use.infrastructure import SteelBrowserInfrastructure

client = BrowserUseClient(
    config=BrowserUseClientConfig(
        llm_openai_api_key="...",
        page_extraction_llm_openai_api_key="...",
    ),
    infrastructure=SteelBrowserInfrastructure(),
)

result = client.run_sync("Open Hacker News and list five article titles")

print(result.status)
print(result.final_output)
print(result.session_id)
print(result.streaming_url)
print(result.recording_url)
print(result.metadata)

Configuration

BrowserUseClientConfig validates required values when the client is created. If llm_openai_api_key or page_extraction_llm_openai_api_key is omitted, it defaults to OPENAI_API_KEY. An explicit None is kept as missing, and is reported by validation.

Common client options:

  1. llm_openai_model: primary browser-control model. Default: o3.
  2. page_extraction_llm_openai_model: page extraction model. Default: gpt-5-mini.
  3. sensitive_data: optional browser-use placeholder map. It accepts either a flat placeholder-to-value map or a domain-scoped map. Values are excluded from normal config serialization and redacted from redacted_dict() output.
  4. extend_system_message: optional system prompt extension.
  5. vision_detail_level: auto, low, or high. Default: auto.
  6. llm_timeout_in_s: optional LLM timeout.
  7. step_timeout_in_s: per-step browser timeout. Default: 180.
  8. agent_kwargs: additional browser_use.Agent constructor arguments. It cannot override client-managed arguments such as the task, LLMs, browser session, sensitive_data, or timeouts.
  9. enable_cloud_sync: kept for compatibility, with no effect: browser-use 0.11 removed cloud sync. Default: False.
  10. logging_level: debug, info, warning, error, or result. Default: info. Process-wide: it configures browser-use's shared loggers once, and only when the application hasn't configured logging (see below).
  11. max_session_retries: recoverable session retries. Default: 2.
  12. session_retry_delay_in_s: delay between retries. Default: 3.0.

Sensitive data and Agent options

config = BrowserUseClientConfig(
    llm_openai_api_key="...",
    page_extraction_llm_openai_api_key="...",
    sensitive_data={"username": "example-user", "password": "example-password"},
    agent_kwargs={"use_vision": False, "max_actions_per_step": 2},
)

Keep one configured client per credential scope. Browser-use also accepts domain-scoped sensitive_data maps. Never put real values in logs, serialized configuration, or agent_kwargs.

When supplying sensitive data, restrict browser navigation to the expected domains (for example, through the infrastructure session's browser-use BrowserProfile(allowed_domains=...)) to reduce prompt-injection exfiltration risk. agent_kwargs cannot override browser/session ownership (browser, browser_profile, and browser_session are reserved); configure those controls through the selected infrastructure instead.

Optional provider environment variables:

  1. STEEL_API_KEY: used by SteelBrowserInfrastructure() when api_key is omitted.
  2. OPENSANDBOX_DOMAIN: OpenSandbox control-plane host. Default: localhost:8080.
  3. OPENSANDBOX_API_KEY: required for shared OpenSandbox clusters; optional for local insecure servers.
  4. OBJECT_STORAGE_URL: S3 endpoint, for example localhost:8333 or https://storage.example.
  5. OBJECT_STORAGE_USERNAME: object storage access key.
  6. OBJECT_STORAGE_PASSWORD: object storage secret key.
  7. OBJECT_STORAGE_BUCKET_NAME: target bucket name.
  8. OBJECT_STORAGE_DIRECTORY_PREFIX: optional object key prefix.
  9. OBJECT_STORAGE_SECURE: true for HTTPS when the endpoint has no scheme.

An environment variable is read only for an argument you omit. An explicit value, including None, is used as given. So in a service that runs browser tasks for several users, pass each user's own settings explicitly: SteelBrowserInfrastructure(api_key=None) raises BrowserUseConfigurationError instead of running on the host's STEEL_API_KEY. The same applies to the OpenSandbox and storage settings, and to the two OpenAI keys in BrowserUseClientConfig.

The client never writes environment variables. One setting is still process-wide: logging_level is applied through browser-use's setup_logging, which configures shared, process-level loggers, and only when the application hasn't configured logging (the root logger has no handlers). The first client to run sets the level for the whole process, and an application with its own logging setup keeps its own levels. Configure logging in the application when clients need different levels.

Copy .env.example to .env for local development, then load it with your application environment manager.

Moving an existing local MinIO bucket

The Compose change creates a new seaweedfs_data volume. Docker keeps the old MinIO volume when you stop the previous service with docker compose down; do not use docker compose down -v during migration. Keep MinIO available on localhost:9001 and SeaweedFS on localhost:8333 at the same time. If the old MinIO container was removed, start it again with the old minio_data volume and the same pinned image and credentials from the previous dev-compose.yml. Find the exact volume name with docker volume ls --filter name=minio_data; Compose prefixes it with the project name. For the default project name, the previous service can be restored with:

docker run -d --name gl-browser-use-minio-source \
  --mount source=gl-browser-use_minio_data,target=/data \
  -e MINIO_ROOT_USER="$MINIO_SOURCE_USERNAME" \
  -e MINIO_ROOT_PASSWORD="$MINIO_SOURCE_PASSWORD" \
  -p 9001:9001 -p 9002:9002 \
  minio/minio:RELEASE.2024-08-29T01-40-52Z \
  server /data --address ":9001" --console-address ":9002"

Replace the volume name if the project used a different Compose project name.

Pause recording writers during the copy. From this directory, set the source MinIO endpoint and credentials in MINIO_SOURCE_URL, MINIO_SOURCE_USERNAME, and MINIO_SOURCE_PASSWORD. Set the destination OBJECT_STORAGE_* values to SeaweedFS, then run:

uv run --extra minio python scripts/migrate_minio_to_seaweedfs.py

The migration copies current objects into the SeaweedFS bucket and checks every key's size, SHA-256 bytes, content type, user metadata, and supported HTTP headers. It never deletes source objects. Existing destination keys are accepted only when all those checks match; mismatches stop the copy without overwriting the destination. During verification, the helper downloads both source and destination objects to temporary files, so peak temporary disk use is approximately twice the size of the largest object, plus filesystem overhead. Bucket policies, version history, tags, lifecycle rules, and objects with a standard Expires header are outside this object-copy step. MinIO Python SDK 7.2.20 rewrites Expires as X-Amz-Meta-Expires when put_object receives it through metadata; the helper detects this header in a full-source preflight and stops before creating or writing to the destination bucket. The source volume remains intact so you can choose a separate migration method for those objects.

Keep the old volume until the migration completes and the destination checks pass. For rollback, point the application back to MinIO and restart its service using that retained volume. If SeaweedFS has accepted new recordings after cutover, copy those back before rollback or they will be absent from MinIO. After rollback or cutover, old presigned URLs may no longer work because they are signed for the endpoint that issued them.

Runtime API

The client exposes three run methods:

  1. run(task, *, session=None, keep_session=False): async generator that yields BrowserUseStreamEvent values as work progresses.
  2. run_once(task, *, session=None, keep_session=False): async method that returns one BrowserUseRunResult and includes emitted events in result.events.
  3. run_sync(task, *, session=None, keep_session=False): blocking wrapper around run_once() using asyncio.run().

Do not call run_sync() from an already running event loop. Use await run_once() or async for event in run() in async applications.

For Steel and OpenSandbox, set keep_session=True on a new run to retain its remote browser. The returned BrowserUseRunResult.session_ref is a BrowserUseSessionReference containing provider and session identifiers, but no credentials or live SDK objects. Save session_ref.to_dict() as JSON to reconnect from another call or a later process:

import json

first = await client.run_once("Sign in and open the dashboard", keep_session=True)
stored_reference = json.dumps(first.session_ref.to_dict())

# A later process can load the saved JSON and use it with a client configured
# for the same provider and credentials.
session = json.loads(stored_reference)
continued = await client.run_once("Open the reports page", session=session)
await client.release_session(continued.session_ref)

Passing session= keeps that remote browser alive after the task, including when the task fails. Expired or inaccessible sessions return an error and are never replaced with a new browser automatically. The remote provider's session timeout still applies. A reference can be explicitly terminated with await client.release_session(session_ref) or client.release_session_sync(session_ref).

For streaming, the final event exposes the same session_ref. With object storage enabled, recordings for later tasks sharing one browser use a run-specific recording name so they do not overwrite the first task's recording.

Cancelling the stream by breaking from async for or calling await stream.aclose() cancels the underlying run task. Existing referenced sessions remain available; a newly created session is released on cancellation because no result can return its reference. Sessions created without keep_session=True keep the existing automatic cleanup behavior.

Error Contract

Failures return safe, actionable messages and preserve the legacy error string for compatibility. Error results and terminal stream events also expose error_info with:

  1. code: a stable, library-scoped machine-readable code;
  2. message: a bounded summary that explains what failed without secrets or provider internals;
  3. next_action: the next step for the caller;
  4. retryable: whether a retry may be appropriate;
  5. reference_id: a run-level ID shared by the result, events, and structured logs; and
  6. details: JSON-safe public diagnostic fields (see Diagnostics and privacy); and
  7. recovery: how to react (see Recovery).

Each error type has two stable codes. The public gl_browser_use.<category>.<condition> code is exposed as error.public_code and error_info.code. The GL-BU-<NAME> code is the shared gllm_core.exceptions.BaseError code, exposed as error.code and attached to log records by gllm_core logging (installed from the public gllm-core-binary wheel). gl_browser_use.errors.registered_error_codes() returns the same mapping at runtime.

Public code (error_info.code) BaseError code (error.code) Error type Meaning
gl_browser_use.error GL-BU-ERROR BrowserUseSDKError Unclassified SDK failure.
gl_browser_use.dependency.missing GL-BU-DEPENDENCY-MISSING BrowserUseMissingDependencyError An optional provider dependency is unavailable.
gl_browser_use.config.invalid GL-BU-CONFIG-INVALID BrowserUseConfigurationError Configuration is missing or invalid.
gl_browser_use.execution.failed GL-BU-EXECUTION-FAILED BrowserUseExecutionError Browser task execution failed.
gl_browser_use.task.failed GL-BU-TASK-FAILED BrowserUseTaskFailedError The underlying agent reported a failed task.
gl_browser_use.task.output_invalid GL-BU-TASK-OUTPUT-INVALID BrowserUseTaskOutputError Structured task output could not be parsed or validated.
gl_browser_use.session.retry_exhausted GL-BU-SESSION-RETRY-EXHAUSTED BrowserUseRetryExhaustedError Recoverable session failures exhausted the retry budget.
gl_browser_use.execution.timeout GL-BU-TIMEOUT BrowserUseTimeoutError A browser step or dependency call timed out.
gl_browser_use.provider.auth_failed GL-BU-PROVIDER-AUTH BrowserUseProviderAuthError A model or browser provider rejected the credentials or permissions.
gl_browser_use.provider.rate_limited GL-BU-PROVIDER-RATE-LIMIT BrowserUseRateLimitError A model or browser provider rate-limited the request.
gl_browser_use.provider.unavailable GL-BU-PROVIDER-UNAVAILABLE BrowserUseProviderUnavailableError A model or browser provider could not be reached or failed.

Codes are append-only. A code is never reused for a different failure or removed; a code that is no longer emitted is marked deprecated here for at least one minor release first. Every new concrete error type must define both codes, a default_message, and a DEFAULT_NEXT_ACTION; class definition fails on a missing, malformed, or duplicate code.

Diagnostic logs use the same gl_browser_use. prefix. Recording diagnostics include gl_browser_use.recording.resolve_failed, gl_browser_use.recording.schedule_failed, gl_browser_use.recording.storage_unavailable, gl_browser_use.recording.download_failed, gl_browser_use.recording.background_failed, gl_browser_use.recording.background_unavailable, gl_browser_use.recording.start_failed, gl_browser_use.recording.navigation_failed, and gl_browser_use.recording.upload_failed. Cleanup diagnostics include gl_browser_use.cleanup.endpoint_unavailable, gl_browser_use.cleanup.recorder_failed, gl_browser_use.cleanup.eventbus_failed, gl_browser_use.cleanup.agent_failed, gl_browser_use.cleanup.browser_failed, gl_browser_use.cleanup.infrastructure_failed, and gl_browser_use.cleanup.sandbox_failed.

str(error), terminal event content, error-event thinking_and_activity_info["data_value"], and the legacy result error combine message with next_action, so callers can act without reading logs first. Public exception strings and error messages are bounded, sanitized summaries; detailed causes remain in redacted structured diagnostics.

Reference IDs use the glbu_<hex> format and are distinct from error codes. Use the reference_id when searching centralized logs or contacting support. Configuration diagnostics are redacted recursively, including API keys, nested secret-shaped values, and URL credentials; arbitrary non-JSON values are replaced with a safe placeholder. A recoverable session retry restarts the task from the beginning, so external actions can be repeated; make retried tasks idempotent when possible. Recording is optional telemetry: a recording failure is reported in safe metadata and cannot change the primary task status.

Recovery

error_info.recovery (BrowserUseRecoveryInfo) tells callers how to react:

Field Meaning
retryable Whether retrying the same task can succeed. Non-retryable failures, such as invalid configuration or rejected credentials, are always False.
retry_after_seconds Seconds to wait before retrying, when known: the provider's retry-after value for rate limits, or session_retry_delay_in_s for session retries. None when not retryable or unknown.
attempt, max_attempts The SDK's own retry budget for the run. max_attempts is max_session_retries + 1.
escalation When to stop retrying and who to contact, for example support with the reference_id.
Failure retryable Default wait
provider.rate_limited True Provider retry-after or try again in <n>s, when reported.
provider.unavailable, execution.timeout True None
session.retry_exhausted True session_retry_delay_in_s
provider.auth_failed, config.invalid, dependency.missing, task.*, execution.failed False None

Provider failures are classified from exception types and HTTP status codes first, then from provider error text. browser-use records most model-provider errors as failed steps instead of raising them, so after repeated failed steps the SDK classifies the last recorded step error. The SDK retries only recoverable browser-session failures itself; for other retryable failures, the caller decides whether to retry using recovery.

Logging and reference lookup

The SDK logs through the standard logging module under the gl_browser_use logger and never removes handlers that the embedding application installed. Route these records to your centralized log store with your own handlers, for example the gllm-core JSON formatter.

Each run creates one reference_id that is shared by every attempt, retry event, terminal event, result, and log record of that run. Failure records carry these extra fields:

Field Meaning
reference_id The run's glbu_<hex> reference ID.
error_code / base_error_code The public code and the GL-BU-* code.
error_message, next_action The safe public message and next step.
stage, attempt, max_attempts Where the failure happened and which attempt it was.
retryable, retry_after_seconds The recovery guidance.
details, diagnostics Public and internal diagnostics, both redacted.
failure_type, cause The raw failure type and a redacted, bounded cause.

A terminal failure writes exactly one ERROR record for its reference_id (Browser-use execution failed or Browser-use run failed). Session retries write a WARNING record (Browser-use session failed; retrying) per retried attempt. To investigate a failure a user reports, search the log store for reference_id = <id> and level ERROR.

If a log handler or formatter fails, the SDK attempts one fallback record with only reference_id and error_code, and the run still returns its original result, error code, message, recovery data, and reference ID.

Diagnostics and privacy

Error diagnostics follow a fixed schema, gl_browser_use.errors.DIAGNOSTIC_FIELDS:

Visibility Fields Where they appear
Public stage, attempt, max_attempts, step_count, streaming_url, recording_url, session_id, missing_dependency, package_hint, missing, errors error.details, error_info.details, logs
Internal url, last_error, web_socket_debugger_url, config, browser_context, and any unlisted field error.debug_info["diagnostics"] and logs only

All diagnostic values are redacted recursively and made JSON-safe. Raw objects, including exceptions, become <non-serializable> instead of their representation.

Redaction (redact_text / redact_value) masks:

  • configured API keys, sensitive_data values, and the task prompt when it is at least 12 characters;
  • values under secret-shaped keys such as api_key, token, password, authorization, and secret;
  • URL credentials, secret query parameters, inline key=value secrets, Bearer tokens, and sk-/pk-/rk- style API keys;
  • email addresses.

It applies to error messages, error_info, error diagnostics, structured log fields, and step-event tool-call arguments and outputs. The run result keeps task and final_output unchanged because they are the caller's own input and output, and so does the final stream event's final_output. Activity events keep the streaming URL unchanged so it can be embedded.

Result Contract

BrowserUseRunResult contains:

  1. status: success, error, or cancelled.
  2. task: normalized task string.
  3. final_output: final text extracted from the underlying agent, or Task completed when no final text is available.
  4. session_id: infrastructure session ID when an external browser session was used.
  5. streaming_url: browser debug or streaming URL when available.
  6. recording_url: expected recording URL when recording is configured.
  7. steps: number of browser-use steps executed.
  8. error: terminal error message for error results.
  9. events: collected stream events for run_once().
  10. metadata: attempt, retry, and recording metadata.
  11. session_ref: a portable reference when a run retained a new session or used an existing reference.

Recording metadata uses these statuses:

  1. disabled: infrastructure, storage, or browser context is not available.
  2. unsupported: the selected infrastructure does not support recording.
  3. unavailable: storage is configured but not available.
  4. scheduled: a background recording upload has been scheduled.
  5. failed: recording was eligible but could not be scheduled, resolved, or uploaded.
  6. unknown: recording may have started, but the terminal error did not include enough context to determine the final state.

Streaming Contract

BrowserUseStreamEvent contains:

  1. event_type
  2. content
  3. thinking_and_activity_info
  4. is_final
  5. tool_info
  6. metadata
  7. final_output: set only on the final event of a successful run, to the same unredacted answer as BrowserUseRunResult.final_output. Every other event has None. Use it rather than reading the answer out of tool_info, whose tool-call data is redacted.
  8. session_ref: set on the final event when a run retained a new session or used an existing reference.

Important event content values:

  1. Receive streaming URL: emitted when a browser debug or streaming URL is available.
  2. Receive recording URL: emitted when a recording URL can be resolved.
  3. Task completed: emitted for the final successful step.

Activity events encode iframe URLs in thinking_and_activity_info["data_value"] as a JSON string:

{"type": "iframe", "message": "<url>"}

Step events include serialized tool calls in tool_info["tool_calls"].

Retries And Errors

The client retries only classified recoverable browser-session failures, such as browser closure or websocket disconnect messages. Before each retry, it emits a retry status event. Retries are bounded by max_session_retries, so total attempts are max_session_retries + 1. Each retry restarts the task from the beginning and may replay external side effects, so use idempotent tasks or set max_session_retries=0 when replay is unsafe.

Every task failure returns BrowserUseRunResult(status="error") (or ends the stream with one terminal error event), including recoverable failures that exhaust all attempts. Those carry the gl_browser_use.session.retry_exhausted code, with the last failure in the message, on the result, the terminal event and the error log alike. The client doesn't raise BrowserUseRetryExhaustedError for them; the type remains the source of that code and its recovery guidance.

Error types:

All error types derive from BrowserUseSDKError, which derives from gllm_core.exceptions.BaseError and RuntimeError.

  1. BrowserUseConfigurationError: missing or invalid runtime configuration. BrowserUseClientConfig raises it for every validation failure, including construction, model_validate, and attribute assignment, instead of a raw pydantic ValidationError. Rejected input values are never included.
  2. BrowserUseDependencyError: abstract base for optional provider dependency problems.
  3. BrowserUseMissingDependencyError: optional provider extra is not installed.
  4. BrowserUseExecutionError: execution-time failure.
  5. BrowserUseTaskFailedError: the agent reported completion without a successful result.
  6. BrowserUseTaskOutputError: structured task output could not be parsed or validated.
  7. BrowserUseRetryExhaustedError: recoverable session retries were exhausted. It is reported through error_info, not raised.
  8. BrowserUseTimeoutError: a browser step or dependency call timed out.
  9. BrowserUseProviderAuthError: a provider rejected the credentials or permissions.
  10. BrowserUseRateLimitError: a provider rate-limited the request.
  11. BrowserUseProviderUnavailableError: a provider could not be reached or failed.

Unexpected third-party errors are converted at one boundary, gl_browser_use.errors.normalize_error(), before they reach results, events, or logs.

Optional Providers

Optional providers are lazy-loaded. Importing gl_browser_use does not require Steel, OpenSandbox, or MinIO to be installed.

from gl_browser_use.infrastructure import OpenSandboxBrowserInfrastructure, SteelBrowserInfrastructure
from gl_browser_use.storage import MinIOS3CompatibleStorage

SteelBrowserInfrastructure creates Steel browser sessions and provides CDP/streaming URLs.

OpenSandboxBrowserInfrastructure provisions a Chrome sandbox image (DEFAULT_OPENSANDBOX_IMAGE, or the one image= selects; see Image below) through a local or shared OpenSandbox server, exposes noVNC inspection URLs, connects over proxied CDP, and uploads WebM session recordings to object storage with the same deferred recording_url semantics as Steel. Pass storage to BrowserUseClient when recording is enabled.

OpenSandbox recordings are made with Playwright on the client side, so they need Playwright's Chromium as well as the opensandbox extra (playwright install --with-deps chromium). The recorder starts only for a run with usable storage; without storage, Playwright's browser isn't launched or needed. If the recorder can't start (Chromium not installed, for example), the run goes on unrecorded: a gl_browser_use.recording.start_failed warning names the cause, and the result's recording_status is failed.

An OpenSandbox recording runs on an event loop the recorder owns, on its own daemon thread. It is finished and uploaded there in the background after the run returns, so the run never waits for it, and a caller may close its loop right after (asyncio.run). As with Steel, recording_url works once the upload completes. The upload is lost if the process exits first, for example a short script that calls run_sync() and exits.

Image: the default is public.ecr.aws/c1z4u5m0/external/browser-sandbox:opensandbox (DEFAULT_OPENSANDBOX_IMAGE), a linux/amd64 Chrome image with DevTools forwarded to 0.0.0.0:9222 that GDP's OpenSandbox servers can pull. Pass image= for another one, such as a local build (see the local setup below). The opensandbox/chrome:latest published on Docker Hub doesn't work with GL Browser Use: its DevTools listens on 127.0.0.1 only.

DevTools note: the Chrome image exposes CDP on 0.0.0.0:9222 (--remote-debugging-address=0.0.0.0 plus a socat forward for Chromium M113+). Rebuild from examples/opensandbox/chrome after pulling changes; GL Browser Use discovers CDP via sandbox.get_endpoint(9222). See examples/opensandbox/chrome/README.md.

Configure the management API HTTP timeout separately from the sandbox lifetime when sandbox provisioning takes longer than the default 30 seconds:

from datetime import timedelta

from gl_browser_use.infrastructure import OpenSandboxBrowserInfrastructure

infrastructure = OpenSandboxBrowserInfrastructure(
    request_timeout=timedelta(seconds=180),  # HTTP requests to the management API
    timeout=timedelta(minutes=5),  # Sandbox lifetime
)

request_timeout must be positive. devtools_poll_timeout_s separately controls how long GL Browser Use waits for the browser's DevTools endpoint.

OpenSandbox local setup:

DOCKER_HOST=unix://${HOME}/.docker/desktop/docker.sock \
  OPENSANDBOX_INSECURE_SERVER=YES opensandbox-server

cd libs/gl-browser-use/examples/opensandbox/chrome
docker build -t opensandbox/chrome:latest .
playwright install chromium

Then pass image="opensandbox/chrome:latest" to use the local build (on Apple silicon, the default amd64 image runs only under emulation).

MinIOS3CompatibleStorage uses the MinIO Python SDK to upload session recordings to any compatible S3 endpoint and returns presigned URLs. Its authenticated bucket probe has finite connection and read timeouts. Storage requests retry transient server responses (500, 502, 503, or 504) at most twice; if the probe still fails, check the endpoint and credentials and retry after the service is available.

CubeSandbox

Install the cubesandbox extra and register a template with an image that provides both services below.

  • DevTools on port 9222. Serve Chromium discovery at /json/version and forward WebSocket upgrades on /devtools/browser/<id>. The browser image's reverse proxy must rewrite webSocketDebuggerUrl to wss://<public-devtools-host>/devtools/browser/<id>, using the same host as the CubeProxy discovery request.
  • noVNC on port 6080. Serve the live view at /vnc.html.

The internal CubeSandbox browser image definition is one implementation of this contract. To register a compatible image, set BROWSER_IMAGE to an image reference your CubeSandbox deployment can pull, then run:

cubemastercli tpl create-from-image \
  --image "${BROWSER_IMAGE:?Set BROWSER_IMAGE to a compatible browser image}" \
  --expose-port 9222 \
  --expose-port 6080 \
  --probe 9222 \
  --probe-path /json/version

Use the returned template ID for CUBE_TEMPLATE_ID. The machine running the SDK needs DNS resolution and certificate trust for the deployment's CubeProxy hostnames.

Set CUBE_API_URL, CUBE_API_KEY, and CUBE_TEMPLATE_ID in the environment. You can also pass api_url, api_key, and template_id directly. Each setting reads from the environment only when its argument is omitted.

from gl_browser_use import CubeSandboxBrowserInfrastructure

infrastructure = CubeSandboxBrowserInfrastructure()

Pass infrastructure to BrowserUseClient. The provider waits for Chromium to advertise its CDP WebSocket at /json/version on port 9222, then releases the sandbox after the run. The live noVNC view defaults to port 6080. Set novnc_port if your template exposes noVNC on a different port. Recording uses the live view when object storage is configured and Playwright Chromium is installed.

Development

From libs/gl-browser-use:

make install-dev
make test-unit
make test-integration
make lint
make build-check

Useful targets:

  1. make test: run all tests.
  2. make test-unit: run unit tests with coverage.
  3. make test-integration: run integration-marked contract tests.
  4. make lint: run Ruff checks.
  5. make format: run Ruff fixes and formatter.
  6. make pre-commit: run pre-commit hooks.
  7. make build-check: build the package and validate artifacts with Twine.

Metadata

Release files for gl-browser-use-binary 0.1.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Inconsistent provenance

These files originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Built distributions (wheels)

Table of built distributions (wheels) for gl-browser-use-binary 0.1.11
File Actions
gl_browser_use_binary-0.1.11-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for gl_browser_use_binary-0.1.11-cp313-cp313-win_amd64.whl
gl_browser_use_binary-0.1.11-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for gl_browser_use_binary-0.1.11-cp313-cp313-manylinux_2_28_x86_64.whl
gl_browser_use_binary-0.1.11-cp313-cp313-macosx_13_0_arm64.whl CPython 3.13 CPython 3.13 macOS 13.0+ ARM64 Details for gl_browser_use_binary-0.1.11-cp313-cp313-macosx_13_0_arm64.whl
gl_browser_use_binary-0.1.11-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for gl_browser_use_binary-0.1.11-cp312-cp312-win_amd64.whl
gl_browser_use_binary-0.1.11-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for gl_browser_use_binary-0.1.11-cp312-cp312-manylinux_2_28_x86_64.whl
gl_browser_use_binary-0.1.11-cp312-cp312-macosx_13_0_arm64.whl CPython 3.12 CPython 3.12 macOS 13.0+ ARM64 Details for gl_browser_use_binary-0.1.11-cp312-cp312-macosx_13_0_arm64.whl

Total release size: 4.6 MB

Release files / gl_browser_use_binary-0.1.11-cp313-cp313-win_amd64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp313-cp313-win_amd64.whl
Size 619.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
e136a55d9ca6d9d98cbb00973083041810fb4509a597ec66d5a03fc5279c507a
BLAKE2b-256 checksum
How to use checksums
7d2d9d28f8f9da810b3db1c03db1b63c4bd0680d276c04eb5879ca5ab36ef204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / gl_browser_use_binary-0.1.11-cp313-cp313-manylinux_2_28_x86_64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp313-cp313-manylinux_2_28_x86_64.whl
Size 979.8 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5df0d59648f6fdbd9541882c1f27c001f9c1b049351df337c2fc339299fab58c
BLAKE2b-256 checksum
How to use checksums
0b7c565e4a41d24709e1ca0fc44f26b4b98adab7044bcbce678653495d5c9648
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"AlmaLinux","version":"8.10","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / gl_browser_use_binary-0.1.11-cp313-cp313-macosx_13_0_arm64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp313-cp313-macosx_13_0_arm64.whl
Size 715.3 kB
Tags CPython 3.13 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
e86aa85af6dc9e308a42ee9bec93a328bb0fa470b3f46be5b832b20497a2579b
BLAKE2b-256 checksum
How to use checksums
d34ca06c749d45b67da7c0ea4b66aa2c19636282dbe9aadec2224f9cf4bb96a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / gl_browser_use_binary-0.1.11-cp312-cp312-win_amd64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp312-cp312-win_amd64.whl
Size 619.3 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a0d7ae0fa7baa256ac604067eaf38963d3dfddb4042331334be40772f294f090
BLAKE2b-256 checksum
How to use checksums
bb399599feef9833b26a0d5d3eebda5f82716e9eab94805a7f3827eeba8c6c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / gl_browser_use_binary-0.1.11-cp312-cp312-manylinux_2_28_x86_64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp312-cp312-manylinux_2_28_x86_64.whl
Size 973.9 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
75a73b16366c8d1ce3bd50034f7a54eb4c1ffcbe727cb3da3d40394496c40bdb
BLAKE2b-256 checksum
How to use checksums
64f251e472fd25079442af3937e4940bcfd5252aa95bdc8420b3a956ef459eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"AlmaLinux","version":"8.10","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by Google Cloud, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / gl_browser_use_binary-0.1.11-cp312-cp312-macosx_13_0_arm64.whl

Inconsistent provenance

This file belongs to a release with inconsistent provenance: the files in this release originate from different repositories or configurations.

We recommend inspecting each repository and configuration before proceeding. View details.

Download URL gl_browser_use_binary-0.1.11-cp312-cp312-macosx_13_0_arm64.whl
Size 697.2 kB
Tags CPython 3.12 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
a77ff4ffede869790e203347ce134cbad578fd57a42106245f30a2c8b9b829d8
BLAKE2b-256 checksum
How to use checksums
06327338751590de462b056921d0ad028643d939d6823505151c5d80ae6e7bf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for gl-browser-use-binary 0.1.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Inconsistent provenance

The release files originate from multiple, inconsistent repositories.

While this could reflect a legitimate choice by the project maintainers, it may also indicate that the release has been compromised.

Repository/Account

Select from 6 files

Attestation for gl_browser_use_binary-0.1.11-cp313-cp313-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page