Logo of Lexmount
DocsTemplatesBlogHelp Center
GitHub
Logo of LexmountLexmount Browser

Get started

Lexmount Documentation
Console guide

Browser

OverviewQuickstartCapabilitiesExamples

Web Fetch

OverviewQuick Start
Common Errors

Web Search

OverviewQuick StartSearch API

Runtime

OverviewQuickstartCapabilitiesExamples

Help and billing

Capability FAQ
ChangelogContact support
Node.js SDK

Node.js SDK

Build remote-browser workflows with the current Lexmount Node.js SDK.

Lexmount Node.js SDK is the typed JavaScript and TypeScript client for browser sessions, persistent contexts, extensions, stored downloads, regions, and CDP connections.

Install

npm install lexmount@0.7.0

Node.js 18 or later is required. Install playwright separately when your application connects to a browser.

Current browser names

Product nameSDK/API valueBest for
ChromiumnormalFull browser sessions, persistent contexts, and replay
MolilightLightweight agent browsing and content-oriented tasks

Keep normal and light in code. The product UI displays them as Chromium and Moli.

What the SDK covers

  • Async session creation, status polling, list/get/close, targets, and stored downloads
  • Region catalog discovery and explicit region selection
  • Persistent context create/list/get/fork/delete and emergency force-release
  • Extension upload/list/get/delete and session mounting
  • Custom images, window size, custom or official proxy, and LightMount options
  • Structured errors, logging, CDP helpers, and integrated-auth callbacks
  • Browser Agent: create saved Agents, run tasks, inspect results, and cancel Runs (SDK 0.7.0).

Configuration

export LEXMOUNT_API_KEY='<your-api-key>'
export LEXMOUNT_PROJECT_ID='<your-project-id>'

# Optional; defaults to the global COM API
export LEXMOUNT_BASE_URL=https://api.lexmount.com

Use https://api.lexmount.cn to explicitly select the CN service. Constructor options take precedence over environment variables. Never commit an API Key.

Package and examples

  • Node.js SDK (npm)
  • Runnable Node.js quickstarts

Continue with Quick Start, Capabilities, or Examples.

  • SDK local proxy: reach internal sites through the SDK machine's network and DNS.

Python Examples

Choose a runnable Python quickstart script by browser task.

Node.js Quick Start

Create Chromium and Moli sessions and connect to Chromium with Playwright.

Table of Contents

Install
Current browser names
What the SDK covers
Configuration
Package and examples

Still need help?Ask on Discord