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.
  • Replay recorded tasks. Record a task once as a saved flow, then run its requests again with new parameters.
  • 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.43.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.43.0
File Size Uploaded Provenance Actions
pyagentbrowser-0.43.0.tar.gz 1.6 MB Without provenance Details for pyagentbrowser-0.43.0.tar.gz

Built distributions (wheels)

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

Total release size: 61.4 MB

Release files / pyagentbrowser-0.43.0.tar.gz

Download URL pyagentbrowser-0.43.0.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
18cd93d7cddd05c969e4bae6ed55e1d7c0e087255f711acb70881cc771e9c3ad
BLAKE2b-256 checksum
How to use checksums
10f02d2d55725ef9d0833cba0bb2b6bddb409080ac1e83acdfc17e1b1ec7a052
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

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

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

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

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

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

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

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

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

Download URL pyagentbrowser-0.43.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 12.0 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
19e72aa7a0aeaaad431c57deb86a406e691e6249ead4fbfaa5387ddf5e34865c
BLAKE2b-256 checksum
How to use checksums
5f7a34382d6510115d97cd3eb6185880f607bd09b42bfb6e2fc67f5e15d5143c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyagentbrowser 0.43.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.43.0 This release

6 release files No provenance

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