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

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.41.1
File Size Uploaded Provenance Actions
pyagentbrowser-0.41.1.tar.gz 1.4 MB Without provenance Details for pyagentbrowser-0.41.1.tar.gz

Built distributions (wheels)

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

Total release size: 49.4 MB

Release files / pyagentbrowser-0.41.1.tar.gz

Download URL pyagentbrowser-0.41.1.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
51a72ff20bf21e8c59e259146c05464c8147e0b2e64a6a2a5a14c31a5de23130
BLAKE2b-256 checksum
How to use checksums
0a4a43150aa4ff6549e8cdd6472bc4f7faee4a332abf29a68890f7b57ed88624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1-cp311-abi3-win_amd64.whl

Download URL pyagentbrowser-0.41.1-cp311-abi3-win_amd64.whl
Size 9.4 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1b51c1e30b7a0c9369a049c1e708fbab13488170168a2fadfef746cd68273d61
BLAKE2b-256 checksum
How to use checksums
13a1d7d642f8f3a379a4840d5dd1cd70536f663f137abb706bc9457e6007d905
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL pyagentbrowser-0.41.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 10.1 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
b2aa097981cf53dbc6cd428ff62cf58164184af17e1ee38d4be5b58d6f954a11
BLAKE2b-256 checksum
How to use checksums
54f05eb6a8122b7aaddc28c9ed530b4b27630cefd7fd8cc6674f817c483a9565
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL pyagentbrowser-0.41.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 9.7 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
59cce3481ff98964cabe8773fd4491c5d48aa10778f811b62605615b6626a87a
BLAKE2b-256 checksum
How to use checksums
5d212fe85a090d67c417f4d90b7f5ac2170aa6884bea3149a34e2bb7d833896d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyagentbrowser-0.41.1-cp311-abi3-macosx_11_0_arm64.whl
Size 9.1 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
dec52049cdb0dc50321206e1eee0f9deacd7f5cbc06ab0a1f9b3cfd911147354
BLAKE2b-256 checksum
How to use checksums
5e607f5192f2156575e12191b8eb99dd76cb43a25c5ef69b35e07e268b7a2043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL pyagentbrowser-0.41.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 9.6 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c89c94fa35833a239978da9fd06e7bbf4f89c82218a8f91455f48338cba1499e
BLAKE2b-256 checksum
How to use checksums
37142f2038b253d8c7dbabcb86afff93687694f4cad55201835cd8b43e424840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.41.1

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