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.38.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.38.1.1
File Size Uploaded
pyagentbrowser-0.38.1.1.tar.gz 1.3 MB Details

Built distributions (wheels)

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

Total release size: 50.4 MB

Release files / pyagentbrowser-0.38.1.1.tar.gz

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

Download URL pyagentbrowser-0.38.1.1-cp311-abi3-win_amd64.whl
Size 9.7 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cb3802e9a29ce610f99156bd300610601c802e32ae9da14f1f45e28ab2eb6bb0
BLAKE2b-256 checksum
How to use checksums
e557035ed77da8cfbc2e75efc4828c2bae789f694838e28816825d5deaddcecb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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.38.1.1-cp311-abi3-manylinux_2_28_x86_64.whl

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

Download URL pyagentbrowser-0.38.1.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 9.9 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
cb8e019f2b73412c7d56faf74ee3562414786bd79c26a39e85ef91d4f6228e1c
BLAKE2b-256 checksum
How to use checksums
11fa42b9e590041e4904d2c60ea8efb0a00afc11263ecab5dfc6b3e258c492e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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.38.1.1-cp311-abi3-macosx_11_0_arm64.whl

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

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