Installation
Install the latest version of the Modal Go SDK:The Go SDK requires Go 1.23 or later.
Authentication
You need to authenticate with Modal before using the SDK. There are two ways to authenticate:Replace the example values with your actual token credentials from modal.com/settings.
Package reference
The Go SDK is available at:- Package:
github.com/modal-labs/modal-client/go - Documentation: pkg.go.dev/github.com/modal-labs/modal-client/go
Module information
The Modal Go SDK uses the following module:Telemetry and observability
The Modal Go SDK supports custom gRPC interceptors for telemetry, tracing, and observability. You can add custom unary and stream interceptors to:- Measure API call latency
- Trace requests across your system
- Integrate with observability tools like OpenTelemetry, DataDog, and others
Next steps
Now that you have the SDK installed and configured:- Learn about basic usage patterns
- Understand client initialization
- Explore the examples on GitHub