Skip to main content
praisonai-browser is the standalone package that powers AI browser automation — the bridge server, CDP agent, and Playwright engine — usable on its own or inside the full praisonai stack.
The agent states a goal; praisonai-browser drives Chrome until the task completes.

Quick Start

1

Install the package

2

Run a goal from the CLI

run performs a fast pre-flight /health check and exits 2 with an actionable message if the bridge is down or no extension is connected — no more 180-second silent hangs.
3

Or use the Python API

BrowserServer.start() blocks for the lifetime of the server (it calls uvicorn.run). It has no built-in port pre-check — that lives in the CLI. Programmatic callers who want the same “already running” behaviour should probe the port first:
Alternatively, wrap server.start() in try/except OSError and check errno.EADDRINUSE (or winerror == 10048 on Windows).

Install

Pick the extras you need — core alone covers the CLI and CDP agent.
pip install "praisonai[all]" (or praisonai[browser]) installs praisonai-browser for you as part of the umbrella product.

Console Entry Point

The package ships a praisonai-browser console script that mirrors the praisonai browser subcommands.
Inside the full stack the same commands are available as praisonai browser ….
Running praisonai-browser start a second time on the same port exits cleanly with an “already running” message and exit code 0 — it does not fail. See Already running behaviour for the exact output and the Windows/IPv6 details.

Python API

Import the public classes straight from praisonai_browser.

Protocol Types

The lightweight type definitions live in the agents tier and are shared across engines.
BrowserActionType includes click, type, scroll, navigate, wait, screenshot, evaluate, submit, clear_input, and done.

Backward Compatibility

Everything from the pre-extraction layout keeps working.
praisonai.browser is a compatibility shim that re-exports praisonai_browser, so existing scripts need no changes.

Best Practices

Core covers the CLI and CDP agent. Add [server] for the Chrome extension bridge and [playwright] for Firefox/WebKit or headless runs.
Import from praisonai_browser in new code. The praisonai.browser shim stays for existing scripts.
praisonai-browser runs without the full wrapper, keeping browser-only images small.
praisonai-browser doctor checks the server, Chrome debugging, extension, and session database in one pass.

Browser Agent

Setup, CLI reference, and supported actions.

Browser Agent Deep Dive

Execution modes, APIs, and package layout in detail.