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.
praisonai-browser drives Chrome until the task completes.
Quick Start
Install
Pick the extras you need — core alone covers the CLI and CDP agent.| Extra | Adds | Use it for |
|---|---|---|
| (none) | rich, typer, click | Core CLI and CDP agent |
server | fastapi, uvicorn, websockets, aiohttp | Bridge server + Chrome extension |
playwright | playwright | Firefox/WebKit and headless runs |
all | Everything above | Full 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 apraisonai-browser console script that mirrors the praisonai browser subcommands.
praisonai browser ….
Python API
Import the public classes straight frompraisonai_browser.
| Export | What it does |
|---|---|
BrowserServer | FastAPI + WebSocket bridge for the Chrome extension |
BrowserAgent | Decides the next action from a page observation |
SessionManager | SQLite-backed session and step history |
CDPBrowserAgent | Drives Chrome directly over CDP (no extension) |
run_cdp_only | One-call CDP automation runner |
run_hybrid | CDP 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 usage | Still works | Canonical form |
|---|---|---|
from praisonai.browser import BrowserServer, BrowserAgent | ✅ | from praisonai_browser import BrowserServer, BrowserAgent |
from praisonai.browser.sessions import SessionManager | ✅ | from praisonai_browser import SessionManager |
praisonai browser run "…" | ✅ | praisonai-browser run "…" |
python -m praisonai.browser.server | ✅ | praisonai-browser start |
praisonai.browser is a compatibility shim that re-exports praisonai_browser, so existing scripts need no changes.Best Practices
Install only the extras you use
Install only the extras you use
Core covers the CLI and CDP agent. Add
[server] for the Chrome extension bridge and [playwright] for Firefox/WebKit or headless runs.Prefer the canonical import
Prefer the canonical import
Import from
praisonai_browser in new code. The praisonai.browser shim stays for existing scripts.Use the standalone CLI in slim environments
Use the standalone CLI in slim environments
praisonai-browser runs without the full wrapper, keeping browser-only images small.Run doctor before your first session
Run doctor before your first session
praisonai-browser doctor checks the server, Chrome debugging, extension, and session database in one pass.Related
Browser Agent
Setup, CLI reference, and supported actions.
Browser Agent Deep Dive
Execution modes, APIs, and package layout in detail.

