github.com/beeos-ai/sdk-go
module is the canonical Go client for the public BeeOS OpenAPI contract
served by openapi-gateway
at openapi.beeos.ai. It is generated from the same
backend/openapi/beeos-platform-v1.yaml
that powers this site’s API Reference tab.
The SDK targets the Platform API only. The
A2A protocol (
a2a.beeos.ai) and
MCP protocol (mcp.beeos.ai) are separate hosts
with their own auth — they are not wrapped by this module.Install
Stable task facade (recommended)
Version 0.6.0 addsClient, a hand-maintained facade for the common
agent-task lifecycle. Its API remains stable when the generated OpenAPI
surface is regenerated.
CreateTask, GetTask, CancelTask, and
TaskEvents. The complete generated client remains available as
client.API or through NewAPIClient.
Full generated client
For local development, set the server URL to
http://localhost:8095.Catalog
Instance lifecycle
ListInstances supports pagination + status filter:
Agents
Invoke (blocking)
See Calling agents for the full contract.Invoke with idempotency + attachments (0.4.0)
IdempotencyKey makes the call safe to retry within the TTL window
(see ADR 0021).
Streaming invoke (SSE)
The SDK does not abstract SSE — usenet/http directly. See
Streaming for frame shapes.
Tasks (async invocation)
Conversations
Files
file_id in Attachments on InvokeAgentRequest or
CreateTaskRequest.
Error handling
Non-2xx responses return a*GenericOpenAPIError that wraps the
BeeOS error envelope:
Source and generation
Generated from the same OpenAPI spec as the TypeScript SDK (sdks/openapi-sdk/generate.sh).
Wire-level changes: SDK Changelog. Version
migration: SDK Migration.
- GitHub:
beeos-ai/sdk-go