Skip to main content

Python wrapper for agent-browser CLI — browser automation for AI agents, no npm required

Project description

agent-browser (Python wrapper)

A Python wrapper for agent-browser that eliminates the need for npm/Node.js installation.

Install via pip/uv and get a fully working agent-browser CLI — no npm or Node.js required.

Installation

pip install agent-browser
# or
uv pip install agent-browser

First run

On first invocation, Node.js v22 is automatically downloaded to ~/.cache/agent-browser-py/ (one-time, ~30MB):

agent-browser --version
# Downloading Node.js v22.14.0 (one-time setup)...
# Done.
# 0.17.1

Then install the browser (Chromium via Playwright):

agent-browser install

On Linux you may need system dependencies:

agent-browser install --with-deps

Usage

agent-browser open example.com
agent-browser snapshot
agent-browser click @e1

All commands are proxied directly to the bundled Rust CLI binary.

How it works

The wheel bundles:

  1. Rust CLI binary (~15MB) — from GitHub releases
  2. Node.js daemon code (~18MB) — from the npm registry with all JS dependencies

Downloaded at runtime (cached in ~/.cache/agent-browser-py/):

  1. Node.js runtime (~30MB) — from nodejs.org, downloaded on first use
  2. Chromium — via agent-browser install (Playwright CDN)

No npm or Node.js installation is required on your system.

Supported platforms

  • macOS (arm64, x86_64)
  • Linux (x86_64, aarch64)
  • Windows (x86_64)

Building from source

make wheel TARGET_SYSTEM=darwin TARGET_MACHINE=arm64  # Single platform
make wheels                                            # All 5 platforms
make verify                                            # Install and verify

License

MIT — This wrapper packages upstream software under their respective licenses:

  • agent-browser: MIT
  • Node.js: MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agent_browser_cli-0.17.1-py3-none-win_amd64.whl (35.1 MB view details)

Uploaded Python 3Windows x86-64

agent_browser_cli-0.17.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

agent_browser_cli-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (34.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

agent_browser_cli-0.17.1-py3-none-macosx_11_0_arm64.whl (34.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

agent_browser_cli-0.17.1-py3-none-macosx_10_9_x86_64.whl (35.0 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file agent_browser_cli-0.17.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 218e41a8c77ce0b6872150992d9d2e20dbc2dc873d50062d4fe5c527dca92751
MD5 3bcc8de33b6e02b2d57e051ab93658cf
BLAKE2b-256 2e84e3c51da5f7976f41838b17b5fa3e4492792fe82a89dc6ce934dee31d31ad

See more details on using hashes here.

File details

Details for the file agent_browser_cli-0.17.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1db468546f877463e33720e2da0476aa42c677a56ad39229bb1263be4c394a30
MD5 80c482bd84aa08f1a8ef7e0c2771797b
BLAKE2b-256 d5ac24ebcee185250a59fb7704727f5fba77099a50159ec174eaa07cb325358e

See more details on using hashes here.

File details

Details for the file agent_browser_cli-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 de685bb67dd95b728ca6bd99aa23a3e13ddb6da8d212ed2725990184a2969c0f
MD5 08edb8418b0ee256660bd60b7af36d46
BLAKE2b-256 c65b8a47e0969f428aca3d05cdf36ce8f8b1208d2b81f341cfc30cb0ca154f33

See more details on using hashes here.

File details

Details for the file agent_browser_cli-0.17.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47bca363a936ffd666b737bb03708de70e4bb8046aa9a6f2d38932d21d1f2e3f
MD5 0e600757b72de974228143778f1496df
BLAKE2b-256 7e9dccffd720d0ec59112e63d59f95c34dab47ba315898711d77eb610fb024c7

See more details on using hashes here.

File details

Details for the file agent_browser_cli-0.17.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9e1ad0ef35ff8ca8fe935062bb8e621b10b6c8cade7cfe361d2d1f6e945f1d61
MD5 3b1d4be64ba5f018fd3037f0dd3079f4
BLAKE2b-256 0976beca4660b6e0ca149c90ba57f957b249379c9213cb630c33b2205b36ece0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page