-
Notifications
You must be signed in to change notification settings - Fork 737
Go SDK for OpenSandbox (Lifecycle, Execd, Egress) #596
Copy link
Copy link
Open
Description
Summary
Implement a Go SDK for the three OpenSandbox OpenAPI specs: Lifecycle, Execd, and Egress.
Go SDK is listed on the 2026.03 roadmap. I'd like to pick this up and contribute it upstream.
Approach
- Use oapi-codegen for type-safe client generation from the existing spec files (
specs/sandbox-lifecycle.yml,specs/execd-api.yaml,specs/egress-api.yaml) - Follow the existing SDK directory pattern:
sdks/sandbox/go/ - Zero runtime dependencies beyond stdlib + generated code
- SSE streaming support for Execd command/code execution endpoints
- Full coverage of all 3 specs (~23 endpoints)
Planned Structure
sdks/sandbox/go/
opensandbox/
api/
lifecycle.go # generated from sandbox-lifecycle.yml
execd.go # generated from execd-api.yaml
egress.go # generated from egress-api.yaml
client.go # high-level wrapper (SandboxClient)
streaming.go # SSE event handling
client_test.go
go.mod
go.sum
Makefile # generate + test targets
README.md
References
- Python SDK:
sdks/sandbox/python/ - TypeScript SDK:
sdks/sandbox/javascript/ - Related: [Feature] Support OpenAPI-based code generation for C# SDK and OSSFS volume support #346 (OpenAPI-based code generation for C# SDK)
- Related: SSE Resumption Between
execdand SDKs #507 (SSE resumption between execd and SDKs)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels