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

3

Or use the Python API


Install

Pick the extras you need — core alone covers the CLI and CDP agent.
ExtraAddsUse it for
(none)rich, typer, clickCore CLI and CDP agent
serverfastapi, uvicorn, websockets, aiohttpBridge server + Chrome extension
playwrightplaywrightFirefox/WebKit and headless runs
allEverything aboveFull feature set
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 ….

Python API

Import the public classes straight from praisonai_browser.
ExportWhat it does
BrowserServerFastAPI + WebSocket bridge for the Chrome extension
BrowserAgentDecides the next action from a page observation
SessionManagerSQLite-backed session and step history
CDPBrowserAgentDrives Chrome directly over CDP (no extension)
run_cdp_onlyOne-call CDP automation runner
run_hybridCDP with on-device fallback

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.
Old usageStill worksCanonical form
from praisonai.browser import BrowserServer, BrowserAgentfrom praisonai_browser import BrowserServer, BrowserAgent
from praisonai.browser.sessions import SessionManagerfrom praisonai_browser import SessionManager
praisonai browser run "…"praisonai-browser run "…"
python -m praisonai.browser.serverpraisonai-browser start
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.