Run the quickstart
You need Python 3.12 or later. You also need a Modal account with local credentials. Install the package with the Modal extra:quickstart.py:
with block ends. It also closes the daemon connection.
Install
Install the package and set up Modal credentials.
Choose an example
Find a maintained pattern for your use case and lifecycle.
Create or attach
Choose the lifecycle that matches your application.
Automate a browser
Configure Chromium or Firefox and open a page.
Run action batches
Send ordered desktop actions in one request.
Capture output
Save screenshots and record the desktop.
Persist artifacts
Store files in a Sandbox or a Modal Volume.
How the parts connect
Your application owns the task and any model loop. The SDK owns Modal orchestration. The daemon executes desktop primitives inside the Sandbox.Choose an API surface
Use the Python API guide for the complete contract. Use the OpenAPI schema for HTTP request and response models.

