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 from Python with the native agent-browser engine. Inspect a page, act on an element, and get the before-and-after snapshots with a diff of what changed.

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.observe()
    result = snapshot.one(role="button", name="Run").click()

    print(result.after.one(role="button").name)
    print(result.diff.changed)
Done
True

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 browser.find for live element queries.

Browser workflows

  • Inspect and act. Navigate pages, fill forms, read documents, and capture screenshots and PDFs through typed namespaces.
  • 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 · 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

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

Built distributions (wheels)

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

Total release size: 47.8 MB

Release files / pyagentbrowser-0.37.1.tar.gz

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

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

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

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

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

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