Metadata-Version: 2.4
Name: open-browser-use-sdk
Version: 0.1.24
Summary: Python SDK for Open Browser Use.
Author: iFurySt
License-Expression: MIT
Project-URL: Homepage, https://github.com/iFurySt/open-codex-browser-use
Project-URL: Repository, https://github.com/iFurySt/open-codex-browser-use
Project-URL: Issues, https://github.com/iFurySt/open-codex-browser-use/issues
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Open Browser Use Python SDK

Python client for controlling a real Chrome profile through Open Browser Use.
The package distribution is `open-browser-use-sdk`; the import module remains
`open_browser_use`.

## Installation

```sh
pip install open-browser-use-sdk
```

The SDK expects the `open-browser-use` CLI and Chrome extension to already be
installed and connected:

```sh
open-browser-use ping
open-browser-use info
```

## Usage

```py
import json
from pathlib import Path

from open_browser_use import connect_open_browser_use

registry = json.loads(Path("/tmp/open-browser-use/active.json").read_text())

browser = connect_open_browser_use(
    socket_path=registry["socketPath"],
    session_id="python-sdk-example",
)

try:
    browser.client.name_session("Python SDK example - OBU")
    tab = browser.new_tab()
    tab.goto("https://example.com", wait_until="domcontentloaded")
    print(tab.title())
finally:
    browser.client.finalize_tabs([])
    browser.close()
```

Use `OpenBrowserUseClient` directly when you need raw Browser Use JSON-RPC or
CDP methods.
