LogoLexmount Docs
LogoLexmount Docs
Homepage

Introduction

How to UseOpenClaw Integration with LexmountCodex Skill Integration with Lexmount
X (Twitter)

Examples

Quickstart example scripts and how to run them.

Quickstart Example Catalog

demo.py - Basic Demo

  • Visit Lexmount website
  • Verify page title
  • Take screenshot

light-demo.py - Light Browser Demo

  • Use chrome-light-docker mode
  • Visit Sina News
  • Extract all links and save to links.txt

extension_basic.py - Extension Demo

  • Upload test_extension.zip
  • List uploaded extensions
  • Create a browser session with extension_ids

proxy_demo.py - Proxy Demo

  • Create a browser session with proxy
  • Verify the remote browser can use authenticated upstream proxy

inspect_url_demo.py - Inspect URL Demo

  • Create a browser session
  • Print the inspect_url for manual inspection
  • Wait for user input before closing the session

session_downloads.py - Session Downloads Demo

  • Explicitly configure Browser.setDownloadBehavior to /config/Downloads
  • Trigger a file download in the remote browser
  • Query the session downloads list via SDK
  • Fetch the session downloads zip via SDK

Run The Examples

# 1. Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate  # Linux/macOS or venv\Scripts\activate (Windows)

# 2. Install dependencies
pip install -r requirements.txt

# 3. Create .env file
cp .env.example .env
# Edit .env and fill in your actual API Key and Project ID
# For office test environment:
# LEXMOUNT_BASE_URL=https://apitest.local.lexmount.net

# 4. Run examples
python3 demo.py              # Basic demo
python3 light_demo.py        # Light browser demo
python3 extension_basic.py   # Extension demo
python3 proxy_demo.py        # Proxy demo
python3 inspect_url_demo.py  # Inspect URL demo
python3 session_downloads.py # Session downloads demo

Example Source Files

  • lexmount-python-sdk-quickstart/demo.py for the minimal browser connection flow.
  • lexmount-python-sdk-quickstart/light_demo.py for light browser mode.
  • lexmount-python-sdk-quickstart/context_basic.py for persistent context access.
  • lexmount-python-sdk-quickstart/extension_basic.py for extension upload and session mount.
  • lexmount-python-sdk-quickstart/proxy_demo.py for upstream proxy configuration.
  • lexmount-python-sdk-quickstart/inspect_url_demo.py for printing inspect_url and keeping the session open until manual confirmation.
  • lexmount-python-sdk-quickstart/session_downloads.py for download retrieval.

Table of Contents

Quickstart Example Catalog
demo.py - Basic Demo
light-demo.py - Light Browser Demo
extension_basic.py - Extension Demo
proxy_demo.py - Proxy Demo
inspect_url_demo.py - Inspect URL Demo
session_downloads.py - Session Downloads Demo
Run The Examples
Example Source Files