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

Uploaded Python 3Windows x86-64

agent_browser_cli-0.17.1.post1-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.post1-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.post1-py3-none-macosx_11_0_arm64.whl (34.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

agent_browser_cli-0.17.1.post1-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.post1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 61a641539757edb3b828da4f9d8fb727e39b2843d7197c6a8398b408796a69b9
MD5 bcb6fd9e2e5ac76889e895aa13b22e05
BLAKE2b-256 5495769cb5bfa0ea72beb747baa7be44eea3b3c56782c2e3404a8c7ddf0b0850

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62d76e123bbefc447d4d5f9a6b9d8c16b2b97c007433e0e2091019f3134f0985
MD5 6ef75af94635273f23edae74b9a08a75
BLAKE2b-256 b4e2406238ef0ba39fb8854422a8b4b45fc3e38268f4cc09b515b049c1222e69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 30bf9d8c1d98ba28772edece66ab663192bca1c1db073c08f8e37ec406be0a96
MD5 4adaaf281c8b82a1b0dc8965e50cc811
BLAKE2b-256 37aa860b9863c04a3bf1f88703515af18a9e507d74c4631587e9a5a4b2e7b002

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8474380f5f861f93a8cdde2a1e90f79af79c6df1a80ddaf4124a2363804aa839
MD5 bbd504480128ef032cc3fa66be72d516
BLAKE2b-256 2dba4e79fbde530d741c56cca9c74c2d43caf0e6cfacc22159f67bcdd892e3e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agent_browser_cli-0.17.1.post1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 901e6197616af88d7995807adffcbd2e6e5a9a3cc1d139f71f52ec79cf9d1b77
MD5 47c4be9a9432944d178c71a79d4be2b9
BLAKE2b-256 8655b9b78088f53633633c7e1879c9991a8b15b6e7e757074b3a10ced5995f1f

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