Skip to main content
BoxLite provides several specialized box types, each tailored for a specific use case. All box types share a common foundation built on the low-level JsBox handle.

Box Handle

JsBox

Handle to a running or stopped box.

Properties

Methods


JsBoxInfo

Metadata about a box.

BoxStatus

A box can be in one of the following states:

SimpleBox

Context manager for basic command execution with automatic cleanup.

Constructor Options

Properties

Methods

Example


CodeBox

Python code execution sandbox.

Constructor Options

Methods

Example


BrowserBox

Browser automation with Chrome DevTools Protocol.

Constructor Options

BrowserType

Supported browser types.

Default image

All browser types use a single Playwright image: mcr.microsoft.com/playwright:v1.58.0-jammy The Playwright Server listens on port 3000. The CDP endpoint (for Puppeteer) is on port 9222.

Properties

Methods

Example


ComputerBox

Desktop automation with full GUI environment. Uses the lscr.io/linuxserver/webtop:ubuntu-xfce image by default.

Constructor Options

Mouse Methods

Keyboard Methods

Key Syntax Reference (xdotool format)

Examples:

Display Methods

Screenshot Return Type

Scroll Directions

Example


InteractiveBox

Interactive terminal sessions with PTY support.

Constructor Options

TTY Mode

Methods

Example