Go SDK
The Go SDK provides context-aware, concurrency-safe access to the installed A3S Box runtime. The v3 module requires Go 1.25 or newer.
Install
Install the matching A3S Box runtime and verify it with a3s-box info.
Create a Sandbox
Use box.Argv(...) for direct execution. Use box.Shell(...) only when guest
shell syntax is intentional.
Builder-style CI/CD
Cancellation and errors
Every runtime I/O method accepts context.Context. Set caller deadlines around
guest work and lifecycle operations:
Use errors.Is for stable categories such as box.ErrNotFound,
box.ErrConflict, and box.ErrUnavailable. Use errors.As to inspect the
typed *box.Error.
Runtime selection
The SDK resolves A3S_BOX_BINARY and then a3s-box on PATH:
Command and file data are binary-safe. String helpers are conveniences for text workloads.
See the complete module guide and Go API reference.