Skip to main content

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

Project description

agent-browser-cli

Install agent-browser via pip/uv — no npm required. Node.js is managed automatically.

Installation

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

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 installation is required on your system. Node.js is downloaded and managed automatically.

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.post2-py3-none-win_amd64.whl (35.2 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 72b9015c8447ac4b1d1a4069a52b33e0c314d31dc3c915ade40383811ee33855
MD5 772d586988173b7ac55d011acbdacce9
BLAKE2b-256 36e3626b3b374720fc9248d2d2a0065a1d7708816effaf21ddea3b6831b59c17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a9f8ad86d51045a28b73b7d1c4904a60dbddf1f5ef668c36ade01b066298070c
MD5 9e2b1433e84ce1dffe07871ac3cc298e
BLAKE2b-256 43e1d7c794a926096ef52a1a0374086d0f93d0e20d26f249ca0d0da5d458071f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2fc5c13455bd5f6abda85fa72097060fd4e340acc9832dceb28c59967422a2d9
MD5 1fdaa79d41451b9100755934e10a1645
BLAKE2b-256 0678617dfcfac95c4b5d31e35cd003c0ebbb3381a657f8cf4e055d2567b9016d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9cb8abedcd0051b672cd12d18d9866031263ac473cf43922957cfcf2b10ae82a
MD5 b0700e403ef36b3ab182ded1e33f3981
BLAKE2b-256 b684eafb2a256bb115edcc6e98510bf10a0138326d681bb1decbc7fd583d21b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 627a02c34d4540a917171c3809f66d33015f76ea598ef0ce762014cb8c7359e4
MD5 e1436f7bcbb60b45c3e6531da58f975d
BLAKE2b-256 7fdcd39a7694e4ade2b9fb7d66cdb05d1902dc00e4680f5445be4ebd4159b298

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