Overview
Narada can control an existing browser window from another machine or process. UseRemoteBrowserEnvironment when you already have a browser window ID and want to run an Agent against that browser.
Prerequisites
Install Narada
Install Narada on the remote machine
Chrome Extension
Install and sign in to the Narada extension in Chrome
Python SDK
Set up the Python SDK on the controlling machine
Getting Started
Initialize the remote browser
On the remote machine:
- Open Chrome with the Narada extension installed.
- Visit https://app.narada.ai/initialize.
- Copy the browser window ID displayed by the initialization page.
Keep this browser window ID secure because it grants access to the remote browser.
How It Works
- Browser Window ID: Each initialized browser window has a unique ID that identifies the remote execution target.
- Remote Environment:
RemoteBrowserEnvironment(browser_window_id=...)points the SDK at that existing browser. - Agent Execution:
Agent(environment=env)sends browser automation requests to the remote window. - Response Handling:
Agent.run()returns anAgentResponsethat you can inspect in Python.
Reconnecting to Cloud Browser Sessions
If you’re using Cloud Browser Sessions, provide both the browser window ID and the cloud browser session ID:Closing a
RemoteBrowserEnvironment backed by a cloud session stops the entire cloud session. Make sure you’re done before calling close().