Skip to main content

Overview

Narada can control an existing browser window from another machine or process. Use RemoteBrowserEnvironment 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

1

Initialize the remote browser

On the remote machine:
  1. Open Chrome with the Narada extension installed.
  2. Visit https://app.narada.ai/initialize.
  3. Copy the browser window ID displayed by the initialization page.
Keep this browser window ID secure because it grants access to the remote browser.
2

Create the control script

Create a Python script on your controlling machine:
Replace browser_window_id with the ID from your remote browser.
3

Run the remote task

Execute your control script:
If successful, the remote browser executes your command and returns the result.

How It Works

  1. Browser Window ID: Each initialized browser window has a unique ID that identifies the remote execution target.
  2. Remote Environment: RemoteBrowserEnvironment(browser_window_id=...) points the SDK at that existing browser.
  3. Agent Execution: Agent(environment=env) sends browser automation requests to the remote window.
  4. Response Handling: Agent.run() returns an AgentResponse that 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().