Skip to main content

Requirements

You need Python 3.12 or later. The Modal integration supports the Modal 1.5 line and requires Modal 1.5.2 or later.

Install the package

Install the package with uv:
The modal extra installs the supported Modal SDK. The base package does not import Modal until you use a Modal lifecycle operation. Use pip if your project does not use uv:

Set up Modal credentials

Run the Modal setup command:
Complete the browser flow that Modal opens. Then confirm that the CLI can access your Modal environment:
Do not store Modal credentials in source files. Do not commit credential files.

Choose optional extras

You can combine extras in one install:
The provider adapters do not call model APIs. Your application owns provider credentials, model calls, and confirmation policy.

Verify the install

Continue with the quickstart.