Full desktop environments in isolated micro-VMs
BoxLite can run full desktop environments with XFCE, providing mouse/keyboard control and screenshot capabilities. This is perfect for GUI testing, RPA workflows, and AI agents that need to interact with desktop applications—all in an isolated sandbox that cannot affect your host system.
Desktop automation involves programmatically controlling a graphical desktop environment: moving the mouse, clicking buttons, typing text, and capturing screenshots. Common use cases include:
Move, click, drag, and scroll with pixel precision
Type text and send key combinations
Capture the current screen state as an image
Connect via VNC for live viewing and debugging
BoxLite provides a ComputerBox with full desktop environment:
import boxlite
async def automate_desktop():
async with boxlite.ComputerBox() as computer:
# Take a screenshot
screenshot = await computer.screenshot()
# Move mouse and click
await computer.mouse_move(500, 300)
await computer.left_click()
# Type text
await computer.type("Hello, World!")
# Press keyboard shortcut
await computer.key("ctrl+s") Modern AI models like Claude can control computers through screenshots and mouse/keyboard commands. BoxLite provides the perfect sandboxed environment for AI computer use:
Learn more about AI Agent Sandboxing →
Test desktop applications in consistent, isolated environments:
Automate legacy applications that don't have APIs:
Get started with BoxLite's desktop sandboxes.