Install
openclaw skills install @psyb0t/go-klavisUnofficial Go client for the Klavis AI API, generated with oapi-codegen. In package klavis (github.com/psyb0t/go-klavis), the client from klavis.NewClientWithResponses has a typed ...WithResponse method for every endpoint: MCP server discovery, listing and calling tools, MCP server instances and their auth, Strata, users and their integrations, OAuth, white labeling, sandboxes and universes. Auth is a Bearer API key added through a request editor, against the US or EU host. Use when Go code needs to call the Klavis AI API, manage Klavis MCP servers or tool calls, or already imports go-klavis.
openclaw skills install @psyb0t/go-klavisUnofficial, typed Go client for the Klavis AI API, in package klavis at the module root.
Read references/setup.md before adding the dependency or choosing an operation. It covers authentication, regional hosts, operation names, pagination and response fields.
KLAVIS_API_KEY. Set Authorization: Bearer <key> in a request editor. Never hardcode, commit or log credentials, downstream authentication headers or returned authentication data.https://api.klavis.ai or https://api.eu.klavis.ai for the account's region. Do not send credentials to another host.github.com/psyb0t/go-klavis.AGENTS.md in the repository.The reference covers a few calls. Every operation in the spec has a generated method, and the spec's descriptions are on them as Go doc comments. Look names and fields up instead of guessing. After go get github.com/psyb0t/go-klavis, from inside your module:
go doc github.com/psyb0t/go-klavis ClientWithResponsesInterface # every endpoint method
go doc github.com/psyb0t/go-klavis CallToolRequest # one method, params type or model
go doc -all github.com/psyb0t/go-klavis # the whole package
The same documentation is at https://pkg.go.dev/github.com/psyb0t/go-klavis.
Method names come from the spec's operation IDs. <OperationId>WithResponse takes the context, then the path parameters in order, then *<OperationId>Params when the operation has query or header parameters, then the request body when it has one. The JSON200 field (or JSON201 and so on, per declared status) holds the decoded body; it is nil for any other status. The SandboxSchemas...GoogleCalendarEvent... types are deprecated aliases of GoogleCalendarEvent; use GoogleCalendarEvent in new code.
WithRequestEditorFn for Bearer auth and WithHTTPClient for the application's timeout policy.NewClientWithResponses and the operation's ...WithResponse method. Inspect transport errors, HTTP status and decoded fields before using the result.Success and Error even on HTTP 200. A tool result can also carry IsError.Optional fields are often pointers. Check for nil before dereferencing. The error return covers transport and decoding failures; API errors require checking StatusCode(), the status-specific fields and Body.