Skip to main content

pyagentbrowser

Native browser automation with typed Python APIs and before-and-after evidence.

Documentation · Get started · Examples · PyPI · Issues

PyPI version Python 3.11 through 3.14 Release Check Apache-2.0 license

Control browsers and iframe applications from Python with the native agent-browser engine. Bind page and frame handles, act on inspected elements, capture model-ready images, and retain before-and-after evidence.

Alpha: The public API and native integration can change between minor releases. Pin a version for production automation.

Get started

python -m pip install pyagentbrowser

Requires Python 3.11 through 3.14. Local browsers run headlessly by default. The first launch finds Chrome or Chromium, or downloads Chrome for Testing when needed.

from agentbrowser import Browser

with Browser.launch() as browser:
    browser.page.set_content(
        "<button onclick=\"this.textContent='Done'\">Run</button>"
    )
    snapshot = browser.page.observe()
    result = snapshot.one(role="button", name="Run").click()

    print(result.after.one(role="button").name)
    print(result.diff.changed)
Done
True

page.observe() captures a Snapshot of the page's accessible elements. Selecting a button returns a Ref. Clicking it returns an ActionResult with before, after, and diff. Use page.find for live element queries and page.frames for embedded applications.

Browser workflows

  • Inspect and act. Navigate pages, fill forms, read documents, and capture screenshots and PDFs through typed namespaces.
  • Keep document scope. Bind an exact page or frame so observation, evaluation, waits, scrolling, capture, and ref actions share one target.
  • Deliver evidence. Read screenshot bytes and MIME metadata, and inspect structured snapshots and action results.
  • Manage sessions. Launch a browser or attach to an existing one. Work with tabs, cookies, saved state, and explicit cleanup.
  • Control actions. Configure domain restrictions and confirmation policy for operations through the native engine.
  • Compose in Python. Use synchronous or asynchronous controllers, agent skills, and the complete engine protocol through browser.native.

Documentation

Get started · Concepts · Action evidence · Code-mode integration · Safety · API reference · Troubleshooting

The documentation site covers browser workflows, optional packages, supported platforms, and integrations. See examples for Python scripts and Contributing for development setup and checks.

License

pyagentbrowser is licensed under the Apache License 2.0. See NOTICE for bundled software attribution.

Metadata

Release files for pyagentbrowser 0.39.0

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

Source distribution (sdist)

Source distribution for pyagentbrowser 0.39.0
File Size Uploaded
pyagentbrowser-0.39.0.tar.gz 1.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyagentbrowser 0.39.0
File
pyagentbrowser-0.39.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
pyagentbrowser-0.39.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
pyagentbrowser-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 48.6 MB

Release files / pyagentbrowser-0.39.0.tar.gz

Download URL pyagentbrowser-0.39.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
17a30dd7dc1f6a481b0c56922d93a7a51c451ddb0e1966013ed2be6df8791aa7
BLAKE2b-256 checksum
How to use checksums
ce4fbfdaa127addb0ee80884b38541eec55b69bf05ff6c9cfb805556df364f70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.39.0-cp311-abi3-win_amd64.whl

Download URL pyagentbrowser-0.39.0-cp311-abi3-win_amd64.whl
Size 9.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
941619fea840feb5fde081aa603b5d703a0075d06cfad605838965238f3c7b96
BLAKE2b-256 checksum
How to use checksums
cac95b7fb083e90d31c37e3cea52f441390f50b0d998d9687507119ea088c239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 10.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
62a77c94ee20725f60355426748558dd31f7f7a67589caf2c10b866cb72cf9a1
BLAKE2b-256 checksum
How to use checksums
24b87381560b75010b06833d109e24f77a44adc783de873e0fa01a0dc7775271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL pyagentbrowser-0.39.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 9.6 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
f2775a30b29cb2fdb5da4b28d8a52948c69ca5d79f216703e68b9f3d40b31e24
BLAKE2b-256 checksum
How to use checksums
89a8056429910fbee901795864412f2f29db4b19f099b6b896f95041ea50766e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.39.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyagentbrowser-0.39.0-cp311-abi3-macosx_11_0_arm64.whl
Size 9.0 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
37ce1b2f4d5ee0a79a8cfd76b54cae6019d1e22c8c88fd1d0654f335f58675ff
BLAKE2b-256 checksum
How to use checksums
cfee2de2248928c5011df97bc21dd8c6846c10ac154cf49f7c6a04d070ec31d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL pyagentbrowser-0.39.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 9.5 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
814d7b7f81279254464ab34abf7227ebc6c8b2d201d5157fe848fafcf3ae36f1
BLAKE2b-256 checksum
How to use checksums
b2a2afa516dfeee8d48aa512fe8f8563e487a84f3e5f6b86d0f8fd0162c27db4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
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