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

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.2
File Size Uploaded Provenance Actions
pyagentbrowser-0.43.0.2.tar.gz 1.6 MB Without provenance Details for pyagentbrowser-0.43.0.2.tar.gz

Built distributions (wheels)

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

Total release size: 59.9 MB

Release files / pyagentbrowser-0.43.0.2.tar.gz

Download URL pyagentbrowser-0.43.0.2.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
bf91d23213bfefde211e07399ae850a9f5853b6d2119c7ac71c69c2687883872
BLAKE2b-256 checksum
How to use checksums
44ddf3e85fbab9a3d4e5c9041c816e9f20d9725c957e56ab58637f3fb42bafc6
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.2-cp311-abi3-win_amd64.whl

Download URL pyagentbrowser-0.43.0.2-cp311-abi3-win_amd64.whl
Size 11.5 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
13fe569c7424e82c604ea5556d24c0584bbafa38ecb81e9e01049f8f263ec9a5
BLAKE2b-256 checksum
How to use checksums
8d7a38969b218e897f4dad9eb95832fa5dcf2a2532b52cff8b212a784697ed32
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.2-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL pyagentbrowser-0.43.0.2-cp311-abi3-manylinux_2_28_x86_64.whl
Size 12.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2a16701e06829f68b32d82d005891639052e27383fd66f8c16af0671f3e3b13d
BLAKE2b-256 checksum
How to use checksums
c0451c490ee2d82f3b84a630eff6e6d8ca05e0c30ba0cd76db532dab6389addb
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.2-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL pyagentbrowser-0.43.0.2-cp311-abi3-manylinux_2_28_aarch64.whl
Size 11.8 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
d05974d1ca6a71f27b2ec0a700988de931b0e7154b6ee71a5d04bc5def8966eb
BLAKE2b-256 checksum
How to use checksums
038834e9aad977ae97fb149bcd7764ddae65ad2bf99e0ab8e15309fd27b44e84
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.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyagentbrowser-0.43.0.2-cp311-abi3-macosx_11_0_arm64.whl
Size 11.1 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
896717beddb51bb0818487ef4ed98bf928931e438cbb898dc7ba82922ac7137a
BLAKE2b-256 checksum
How to use checksums
692ab4c7d41d1c204d848ecd5c5b6999ff3adf852ba0f367a1213a6e442b40bc
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.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL pyagentbrowser-0.43.0.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 11.7 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
482000eaabf00ed083bc1e53549a9e943c346d6d232331b67b10e16eeebbb0f7
BLAKE2b-256 checksum
How to use checksums
afcf3df3a0061739ffa1fd7a2b3c9a832aa8bbcbfd9f580b77fd8bcf4fa1cce8
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.2

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