Skip to main content

Overview

The Rust SDK is the core implementation of BoxLite. It provides async-first APIs built on Tokio for creating and managing isolated VM environments. Crate: boxlite Repository: github.com/boxlite-ai/boxlite

BoxliteRuntime

Main entry point for creating and managing boxes.

Methods

Example


BoxliteOptions

Runtime configuration options.

Example


Box Handle

LiteBox

Handle to a box instance. Thin wrapper providing access to box operations.

Methods

Lifecycle

  • start() initializes VM for Configured or Stopped boxes
  • Idempotent: calling on Running box is a no-op
  • exec() implicitly calls start() if needed
  • stop() terminates VM; box can be restarted

Example

BoxInfo

Public metadata about a box (returned by list operations).

BoxStatus

Lifecycle status of a box.

Methods

State Machine

BoxState

Dynamic box state (changes during lifecycle).

Complete Example


See Also