The Modal Go SDK provides convenient, on-demand access to serverless cloud compute on Modal from Go projects. Use it to safely run arbitrary code in Modal Sandboxes, call Modal Functions, and interact with Modal resources.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/modal-labs/modal-client/llms.txt
Use this file to discover all available pages before exploring further.
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