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 lexmountNode.js 18 or later is required. Install playwright separately when your application connects to a browser.
Current browser names
| Product name | SDK/API value | Best for |
|---|---|---|
| Chromium | normal | Full browser sessions, persistent contexts, and replay |
| Moli | light | Lightweight 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
Configuration
export LEXMOUNT_API_KEY=<your-api-key>
export LEXMOUNT_PROJECT_ID=<your-project-id>
# Optional; defaults to the CN API
export LEXMOUNT_BASE_URL=https://api.lexmount.cnUse https://api.lexmount.com for the global service. Constructor options take precedence over environment variables. Never commit an API Key.
Maintained sources
Continue with Quick Start, Capabilities, or Examples.
Lexmount Browser