Custom Browser Setup

Environment Setup

# Initialize client and create environment
client = SyncPlato()
env = client.make_environment(
    env_id="doordash",
    interface_type=None,  # Required for custom browser
)

# Initialize environment
env.wait_for_ready()
env.reset()

# Get proxy configuration for browser
proxy_config = env.get_proxy_config()

Browser Launch

with sync_playwright() as p:
    browser = p.chromium.launch(
        headless=False,  # Set to True for headless mode
        proxy=proxy_config,
        args=[
            "--ignore-certificate-errors",
            "--ignore-ssl-errors",
            "--disable-http2",
        ],
    )

    page = browser.new_page()
    # Your automation code here
    browser.close()

Required Setup

Environment Variables

PLATO_API_KEY=your_plato_api_key

Dependencies

pip install plato-sdk playwright python-dotenv

Set interface_type=None to use your own browser instance instead of Plato’s managed browser.

Key Features

Sync SDK

Uses SyncPlato for easier synchronous operations

Custom Browser

Full control over browser configuration and automation