Skip to main content

Clado Observe

Project description

Clado Observe

A Python SDK for browser automation and observability using Chrome DevTools Protocol (CDP).

Features

  • Browser automation through Chrome DevTools Protocol
  • Integration with Browser Use agents
  • WebSocket-based communication with Chrome instances
  • Screenshot and screencast capabilities
  • DOM manipulation and observation
  • Vision-Language Model (VLM) evaluation support

Installation

pip install clado-observe

Quick Start

import os

from browser_use.llm import ChatAnthropic
from dotenv import load_dotenv

from clado_observe.agents.browser_use import Agent

load_dotenv()


def main() -> None:
    agent = Agent(
        task="Find the number of stars of the browser-use repo",
        llm=ChatAnthropic(model="claude-sonnet-4-0"),
        cdp_url=cdp_url,
        api_key=os.getenv("CLADO_API_KEY", ""),
    )

    agent.run_sync()

if __name__ == "__main__":
    main()

Local Development

Testing with Chrome DevTools

To test locally, you need a Chrome DevTools WebSocket debugger URL.

1) Start Chrome with remote debugging enabled

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --user-data-dir=/tmp/chrome-debug

Keep this Chrome instance running while you test.

2) Verify and copy the WebSocket URL

Open http://localhost:9222/json/version in your browser. Find the webSocketDebuggerUrl field and copy its value. It will look like:

ws://localhost:9222/devtools/browser/<some-guid>

3) Set your .env

Create or update .env with your keys and the copied URL:

ANTHROPIC_API_KEY=sk-...
WEBSOCKET_DEBUGGER_URL=ws://localhost:9222/devtools/browser/<some-guid>

Documentation

For more detailed documentation, please visit https://github.com/clado-ai/observability

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and feature requests, please use the GitHub issue tracker.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clado_observe-0.1.0.tar.gz (229.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clado_observe-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file clado_observe-0.1.0.tar.gz.

File metadata

  • Download URL: clado_observe-0.1.0.tar.gz
  • Upload date:
  • Size: 229.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for clado_observe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1afb58928cdb4c4759a476691c6e3c12eda6f5417003be843d987b83ecb48980
MD5 c664c27e9be1dffa260b6b1ff42aba59
BLAKE2b-256 e1574a66b2c36d8e594a7f557da885cfd3d93d97dfddd90507979507b43ffc00

See more details on using hashes here.

File details

Details for the file clado_observe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clado_observe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for clado_observe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 233676666e1159dbb0fb66cbac2403d0ece7b7b19104b132dc6ed94026669ac6
MD5 fe7aab2f43fbd0f4aa6db85e4348c5ba
BLAKE2b-256 158f2f55b2df62d3dd37bb28b9fc598163dbb86337cfd0f904d34dccc598edb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page