Skip to main content
--browser gives your bot a browser_automate tool that drives a real local Chromium β€” no cloud API key required.

Quick Start

1

Install the local browser

2

Enable on a bot

3

Try it from your chat

Message the bot from Telegram, Slack, or Discord:
Go to news.ycombinator.com and tell me the top 3 stories.
The agent calls browser_automate(goal="Get the top 3 stories", start_url="https://news.ycombinator.com"), the local Chromium opens (or stays headless), and the bot replies with the summary.

How It Works

--browser prefers local Playwright automation and falls back to the cloud tool only when the local browser is unavailable.

Configuration Options


Common Patterns

Choosing local vs cloud

Use local Playwright for zero-credential dev boxes and personal automation; use the cloud fallback for serverless or no-Playwright environments.

Combining with --web

--web adds a search tool, --browser adds a real browser, and --memory lets the agent remember what it saw between messages.

Best Practices

Headed mode requires a display; on a headless server or Docker container the launch will fail. On a display-less host, wrap the command with xvfb-run to provide a virtual display.
Three exact log lines tell you which mode you landed in:
  • Local browser automation enabled (headless=…, profile=…) β€” local Playwright is running.
  • Browser tool enabled via BrowserBaseTool (cloud fallback). Install praisonai-browser for local automation. β€” cloud fallback path.
  • Browser tool not available. Install praisonai-browser (local) or praisonai-tools (cloud). β€” --browser was a no-op; the agent has no browser tool.
--browser-profile is accepted for forward-compatibility, but the current release always uses a fresh Chromium context. For a persistent profile, watch praisonai-browser upstream and use the CDP mode from Browser Agent β†’ Deep Dive in the meantime.
browser_automate returns {"success": False, "error": "…"} on Playwright errors instead of raising β€” the agent can retry, apologise, or fall back to search_web. This differs from BrowserBaseTool, which fails at construction if the API key is absent.

Bot CLI

All praisonai bot flags and platforms

Bot Default Tools

The tools every bot gets automatically

Browser Agent (standalone)

The standalone browser agent this wraps

praisonai-browser Package

Install matrix and Chromium extras