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 Distribution

agent_browser_cli-0.0.1.tar.gz (27.6 MB view details)

Uploaded Source

File details

Details for the file agent_browser_cli-0.0.1.tar.gz.

File metadata

  • Download URL: agent_browser_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 27.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for agent_browser_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7dad9150620ecf27902ed6ca440bc310be17eee98ea9305fbd49c4a507067d95
MD5 b9a00fc98649b738e63a198dfabd084e
BLAKE2b-256 0027b769fb4bfc9d79734c1591d32e5e0f6c39b8f93f2b5785f64a3f11a0f4d5

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