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.37.1.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.37.1.1
File Size Uploaded
pyagentbrowser-0.37.1.1.tar.gz 1.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyagentbrowser 0.37.1.1
File
pyagentbrowser-0.37.1.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
pyagentbrowser-0.37.1.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
pyagentbrowser-0.37.1.1-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details
pyagentbrowser-0.37.1.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
pyagentbrowser-0.37.1.1-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.37.1.1.tar.gz

Download URL pyagentbrowser-0.37.1.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
19242986a7739339769f8b564d3b0bdffb288e218af2aae4360ac509f2e20856
BLAKE2b-256 checksum
How to use checksums
f3ceb5207aed0e04733f31b4c822e2007df7ed25da6ee5a35ba9283ed1d9bb3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.37.1.1-cp311-abi3-win_amd64.whl

Download URL pyagentbrowser-0.37.1.1-cp311-abi3-win_amd64.whl
Size 9.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
70628c45410f5041080ecfea208cdbd877ab72b1d9af8b6888d499010065630c
BLAKE2b-256 checksum
How to use checksums
8b4d6c7de99a92bc1b0c2a6ad32af17bcd4558e4175e086246ba9352cbe1e67a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.37.1.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL pyagentbrowser-0.37.1.1-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
3573e5600cbbcdd83bcef6027c464048d8ec3eaac7fd9dac54394db09d6a376a
BLAKE2b-256 checksum
How to use checksums
8c484b2a58b9b16bd45931d281dd51b833e485119f5dbdc862e3db1cec0b095f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.37.1.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL pyagentbrowser-0.37.1.1-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
baafc0ac4b932b4d730868bebde3f8239679efc280ed14eae44b527b82bdd66b
BLAKE2b-256 checksum
How to use checksums
265a0ce6e8461287cf120aebe54581181b3b299d57f4d99586925f7f8e30f5b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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.37.1.1-cp311-abi3-macosx_11_0_arm64.whl

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

Download URL pyagentbrowser-0.37.1.1-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
f04c4053c20f6010ea1d9b0829fab0636a810cb1ddb57a6420c906bdff743e0d
BLAKE2b-256 checksum
How to use checksums
aedf9304323c76e5142cc3cfa5d38a2c3d671a7fef15485119d039ee280f60c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","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