Skip to content

Go SDK for OpenSandbox (Lifecycle, Execd, Egress) #596

@AlexandrePh

Description

@AlexandrePh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions