Skip to content

Environment and platform reference

pyagentbrowser publishes one Python distribution with an ABI3 native extension. Python's stable application binary interface lets one wheel serve several supported Python versions on the same platform.

Supported wheels

Operating systemArchitectureWheel contract
macOSarm64Python 3.11 through 3.14
macOSx86-64Python 3.11 through 3.14
Linuxarm64manylinux 2.28, Python 3.11 through 3.14
Linuxx86-64manylinux 2.28, Python 3.11 through 3.14
Windowsx86-64Python 3.11 through 3.14

Source installations require the Rust toolchain and build dependencies used by Maturin, the Python-to-Rust packaging backend.

manylinux is the Python wheel compatibility standard for broadly deployable Linux binaries. The 2.28 tag requires a Linux runtime with glibc 2.28 or newer.

Optional packages

InstallAdds
pyagentbrowserBrowser controllers, native engine, snapshots, refs, queries, capabilities, and file capture
pyagentbrowser[images]Pillow screenshot loading and conversion
pyagentbrowser[cdp]WebSocket transport for direct Chrome DevTools Protocol APIs

Screenshot.marimo() discovers marimo, a reactive Python notebook, at runtime when the application already provides it.

Browser selection

Local launch checks the explicit executable environment, the native cache and discovery path, system Chrome or Chromium installations, and browser caches managed by Puppeteer or Playwright. It prepares Chrome for Testing when discovery fails.

VariableContract
AGENT_BROWSER_EXECUTABLE_PATHSelect the local Chrome or Chromium executable.
AGENT_BROWSER_ENGINESelect chrome or lightpanda when LaunchOptions.engine is unset.
AGENT_BROWSER_PROVIDERSelect browserbase, browserless, browser-use or browseruse, kernel, agentcore, ios, safari, or a configured provider plugin.
AGENT_BROWSER_CDPSupply an existing browser's Chrome DevTools Protocol port or WebSocket URL for a lazy controller.
AGENT_BROWSER_AUTO_CONNECTAsk the engine to discover and attach to a running Chrome instance.
AGENT_BROWSER_WEBGPUEnable the native local WebGPU preset unless LaunchOptions.webgpu overrides it.
AGENT_BROWSER_AUTOSAVE_INTERVAL_MSSet keyed restore autosave cadence unless RestoreOptions.autosave_interval_ms overrides it.
AGENT_BROWSER_DASHBOARD_CLI_VERSIONSet the external dashboard version written to session discovery metadata.
AGENT_BROWSER_SOCKET_DIRSelect the native socket and control-file base directory. Saved browser state uses its separate state directory.
AGENT_BROWSER_ENABLEEnable built-in launch features such as react-devtools before page scripts run.

Explicit Python options take precedence where the same behavior is configurable in LaunchOptions, SessionOptions, or RestoreOptions.

External providers require provider-specific credentials and can create billable remote browser sessions. Follow the upstream configuration reference for the embedded engine version.

Time units

SurfaceUnit
SessionOptions.timeoutSeconds
AsyncBrowser.close(timeout=...)Seconds
Direct CDP client timeoutSeconds
Browser operation timeout_msMilliseconds
RestoreOptions.autosave_interval_msMilliseconds
Screenshot wait_msMilliseconds

Accepted literal values

ContractValues
Load stateload, domcontentloaded, networkidle, none
Selector wait stateattached, detached, hidden, visible
Storage arealocal, session
Color schemedark, light, no-preference
Cookie same-siteStrict, Lax, None
HAR contentall, text, none
Restore save policyauto, always, never

Version and provenance

python
import agentbrowser

print(agentbrowser.__version__)
print(agentbrowser.__agent_browser_version__)
print(agentbrowser.__agent_browser_commit__)

The Python package version and embedded agent-browser engine version are separate identities. A package version such as 0.36.0.2 embeds upstream tag v0.36.0 and identifies the second downstream update on that tag. Each release records the exact upstream commit in the installed package.

The current package is classified as Alpha. Pin the package version for production workflows and review changes before upgrading.

Released under the Apache License 2.0.