Requirements
Before installing Modal, ensure you have:- Python 3.10 - 3.14 (Python 3.15+ is not yet supported)
- A package manager (pip, uv, or poetry)
Installation methods
Dependencies
The Modal SDK includes the following core dependencies (frompyproject.toml:16-32):
- aiohttp - Async HTTP client
- click ~8.1 - Command-line interface framework
- typer >=0.9 - CLI framework built on Click
- grpclib - gRPC implementation
- protobuf >=3.19, <7.0 - Protocol buffers
- rich >=12.0.0 - Terminal formatting
- synchronicity ~0.11.1 - Async/sync API generation
- watchfiles - File system monitoring
- typing_extensions ~4.6 - Extended typing support
Verify installation
After installation, verify that Modal is installed correctly:Authentication setup
After installing the SDK, you need to authenticate with Modal:Run the setup command
Run the following command to create or link your Modal account:This will open your browser and guide you through authentication.
If the
modal command is not found on your PATH, you can always use python -m modal as an alternative.Development installation
For development or contributing to Modal, you can install from source:Using profiles
Modal supports multiple authentication profiles for working with different accounts or environments:Troubleshooting
Command not found
If you see “command not found: modal”, the modal executable may not be on your PATH. Usepython -m modal instead:
Python version errors
If you see version-related errors, check your Python version:Permission errors
On some systems, you may need to install with user permissions:Next steps
Basic usage
Start writing your first Modal function
CLI reference
Learn about available CLI commands