Key features
The Go SDK enables you to:- Run code in sandboxes: Create secure, isolated environments with custom images and dependencies
- Call Modal Functions: Invoke Python functions deployed on Modal from your Go applications
- Manage resources: Interact with Volumes, Secrets, Queues, and other Modal resources
- Build custom images: Create and configure container images for your workloads
- Telemetry and observability: Add custom gRPC interceptors for tracing and monitoring
The Go SDK is approaching feature parity with the Python SDK, although defining Modal Functions will likely remain exclusive to Python.
Requirements
- Go 1.23 or later
- Modal account with valid authentication credentials
Feature parity
The Go SDK supports most features from the Python SDK:- Creating and managing Sandboxes with GPU support
- Calling deployed Functions and Classes
- Working with Volumes, Secrets, and Queues
- Building and managing container Images
- Filesystem operations and snapshots
- Port tunnels and network access
- Custom observability via gRPC interceptors