In short.
This reference page is for Go developers managing OpenRouter workspaces, their members and spending budgets through its Go software development kit (SDK). Its main catch is that every call needs a management key, while the page gives no install steps, version, licence or pricing. The page documents 12 operations: List, Create, Delete, Get, Update, ListMembers, BulkAddMembers, BulkRemoveMembers, ListBudgets, DeleteBudget, GetBudget and SetBudget. Each has a Go example, a parameter table, a response type and a table of error types. The most important behaviours are that deleting a workspace permanently deletes its budgets and guardrails, that a workspace with active API keys cannot be deleted, and that budget limits must shrink as the interval gets shorter. Members cannot be removed from a workspace while they have active API keys in that workspace. Nothing was run, so all behaviour described here comes from the documentation text alone.
Researched and written by an AI model and checked by a second AI model. How it works
The report covers only the complete text of the single selected page, [https://openrouter.ai/docs/client-sdks/go/sdks/workspaces/README.md]. That is all 12 documented Workspaces operations with their examples, parameter tables and error tables. Pages the document links to were not read: the management API keys guide, the model and component type definitions, the documentation index and any other SDK pages. Their content is treated as unknown. The SDK's source code, version, licence, pricing and repository status were not available. No code was compiled or run, and no behaviour was verified against a live OpenRouter account. All statements about behaviour are the documentation's own claims.
The overview
What this resource is
This is one documentation page titled Workspaces, under the Go client SDK section of the OpenRouter docs. It describes the Workspaces sub-client of the Go package imported as github.com/OpenRouterTeam/go-sdk (the examples alias it as openrouter). The page calls itself 'Workspaces endpoints'.
It is API reference material for one part of an SDK. It is not a tutorial, a complete SDK guide or a standalone tool. The reviewed scope is only this page, so other parts of the SDK, such as chat or model calls, are not described here.
Overall assessment
For a Go developer who already uses OpenRouter and needs to automate workspace administration, the page is a clear, consistent reference. Every operation has a runnable-looking example, a typed parameter table and an explicit list of HTTP status codes mapped to Go error types. It also states several important side effects, such as what deleting a workspace destroys and when a member cannot be removed.
The main gaps are about what the page leaves out. It gives no install command, SDK version, minimum Go version, licence, pricing or plan requirements for workspaces. It also does not explain what a workspace, guardrail, classifier or broadcast destination is, so a reader new to OpenRouter will need other documentation. None of that was assessed here.
Who it is for
The page fits Go developers and platform or DevOps engineers who run an OpenRouter organisation and want to script workspace setup. Typical jobs are creating a workspace per environment (the Create example uses a 'Production' workspace), adding organisation members to it, and setting spending caps.
It is probably a poor fit for people who only call models through OpenRouter and never administer workspaces. It is also a poor fit for non-Go users, because the examples are Go only. Beginners will need to learn the OpenRouter concepts elsewhere, since this page assumes them.
What it can do
Workspace lifecycle: List returns the authenticated user's workspaces with offset and limit paging (limit maximum 100). Create takes a name and slug, plus optional description, default text model, default image model and default provider sort. The Create example sets those defaults to openai/gpt-4o, openai/dall-e-3 and price. Get, Update and Delete address a workspace by UUID or slug. Update's example changes name and slug.
Membership: ListMembers returns a paginated list. For the default workspace it returns all organisation members, because membership there is implicit. BulkAddMembers adds several organisation members by user ID, and they get the same role they hold in the organisation. BulkRemoveMembers removes several members by user ID.
Budgets: ListBudgets, GetBudget, SetBudget and DeleteBudget manage spending limits per interval. The page mentions lifetime, monthly, weekly and daily intervals, and the examples use monthly with a limit in US dollars (LimitUsd 100.0). SetBudget also accepts an optional include_byok_in_budgets flag. BYOK is not defined on this page.
Using it
Requirements
Every operation is marked 'Management key required', with a link to a management API keys guide. That guide was not part of the reviewed page, so how to obtain a management key is not covered here. The examples read the credential from an environment variable named OPENROUTER_API_KEY and pass it with openrouter.WithSecurity. Given the management-key note, the value used must be a management key. The page does not say so in those words.
You need a Go toolchain and the SDK module with its optionalnullable and models/components subpackages, which the examples import. The minimum Go version, SDK version and installation command are not stated on this page and are unknown. Some calls also need existing resources. BulkAddMembers needs people who are already organisation members, and Delete needs a workspace with no active API keys.
How it works
You create a client with openrouter.New and the WithSecurity option, then call methods on its Workspaces field, such as s.Workspaces.List(ctx, ...). The method names, parameter tables and typed request objects (for example components.CreateWorkspaceRequest and components.UpsertWorkspaceBudgetRequest) indicate a typed wrapper around OpenRouter's HTTP API. The page does not name the underlying URLs, but the error tables list HTTP status codes (400, 401, 403, 404, 500 and a catch-all 4XX/5XX).
Optional or nullable fields use helper types: optionalnullable.From for offset and for Create fields, and openrouter.Pointer for plain pointers. List and ListMembers return a response with a Next() method, and the example loops until Next returns nil. Errors come back as typed values such as sdkerrors.UnauthorizedResponseError and sdkerrors.NotFoundResponseError, with sdkerrors.APIError as the general case.
Setup
The page gives no installation or configuration steps beyond the import lines and client construction. A reader would need to add the module github.com/OpenRouterTeam/go-sdk to a Go project by their usual means, set an environment variable holding a management key, and build the client as shown. The page does not show a go get command, so the exact installation route is not documented here.
Several details are left to linked pages that were not read: the response and request model definitions (for example CreateWorkspaceRequest, UpdateWorkspaceRequest, WorkspaceBudgetInterval) and the management key guide. Allowed values for fields such as the default provider sort are not listed beyond the single example value 'price'.
Worked example from the page
The page's Create example builds a client with openrouter.New(openrouter.WithSecurity(os.Getenv("OPENROUTER_API_KEY"))). It then calls s.Workspaces.Create with a components.CreateWorkspaceRequest. The request has Name 'Production', Slug 'production', Description 'Production environment workspace', and defaults of openai/gpt-4o for text, openai/dall-e-3 for images and 'price' for provider sort. It checks err with log.Fatal and then leaves a comment where the response should be handled.
A budget example follows the same pattern. SetBudget is called with the workspace slug 'production', the monthly interval constant and a request with LimitUsd 100.0 and IncludeBYOKInBudgets set to true. The page warns that this flag is workspace-wide and applies to every interval, not just the monthly one.
The List and ListMembers examples handle pages in a for loop that calls res.Next(). The error branch contains only a placeholder comment. A real program should stop or return when err is non-nil, because the example as written would continue to the nil check. These snippets were not compiled or run for this report.
Assessment & evidence
Limitations and risks
Some operations are destructive. The page says deleting any workspace permanently deletes its budgets and guardrails and disables its classifiers and broadcast destinations. Deleting the default workspace needs confirm_default_workspace_deletion set to true, and it permanently disables the account's unscoped inference API keys, though management and provisioning keys are retained. The Delete example passes nil for that flag, so it does not confirm default-workspace deletion.
Other documented restrictions: a workspace with active API keys cannot be deleted until those keys are removed. Members with active API keys in a workspace cannot be removed from it. SCIM-managed members cannot be removed through this call, and changes must be made in the identity provider. SetBudget requires limits to strictly decrease as the interval narrows (lifetime above monthly above weekly above daily). The BYOK flag affects all intervals. A change applies to enforcement immediately, but an open dashboard page may show the old value until reloaded.
The page does not document rate limits, idempotency, partial-failure behaviour for bulk calls, or the exact response contents. The examples were not executed, and the page does not say which SDK version they match.
Why this assessment
The assessment rests on the page text alone. Its structure is regular: a list of 12 operations, then for each a description, a Go example, a parameter table and an error table. That supports a detailed account of what the SDK exposes. The side-effect and restriction statements are written in the operation descriptions themselves, so they are reported as the vendor's claims.
Claims about quality, stability and compatibility are not made, because the page has no version, date, changelog or test information. Where the page is silent (costs, licence, installation, plan requirements), this report says unknown rather than guessing.
Alternatives
The evidence names no alternatives. The SetBudget note mentions a workspace settings page in OpenRouter's web dashboard, but this page does not say which administrative operations the dashboard supports, so its operation coverage is unknown from this page.
The error tables list HTTP status codes, but the page does not document the raw HTTP routes, so they are unknown from this page and calling the API directly would need other documentation. The page's URL path (client-sdks/go) suggests a per-language section, but whether SDKs exist for other languages is unknown from this page.
Evidence used
One captured file supports this report: the full text of the selected documentation page at [https://openrouter.ai/docs/client-sdks/go/sdks/workspaces/README.md] (about 25 KB). It includes the operation list and all 12 operation sections with examples, parameter tables and error tables.
No repository, release notes, licence file, package metadata or test results were available. The code examples were not compiled or run.
Access & freshness
Costs
The page states no prices, quotas, rate limits or plan requirements for the SDK, for management keys or for workspace features. The cost of using these operations is unknown from the evidence.
The budget operations deal in US dollars (the limit field is limit_usd, with an example of 100). This is a spending-control feature, not a price list. Any charges for the model usage that budgets limit are outside this page. Whether the SDK itself carries a fee is not stated.
Rights and licence
The page contains no licence text, copyright notice or terms of use for the documentation or for the Go SDK. The SDK's licence is therefore unknown from this evidence, and nobody should assume reuse rights from the page alone. Check the SDK's repository ([https://github.com/OpenRouterTeam/go-sdk], named in the import path) and OpenRouter's terms before redistributing code or documentation.
The page itself is published on OpenRouter's documentation site at [https://openrouter.ai/docs/client-sdks/go/sdks/workspaces/README.md]. Reuse terms for that text are not stated on it.
Freshness
The page was captured on 2026-11-15 (08:43 UTC). It shows no publication date, last-updated date, SDK version or changelog, so how current it is relative to the released SDK is unknown. Features described here, such as the BYOK budget flag and the SCIM restriction, are as documented at capture time and may change. Re-check the live page before relying on exact parameter names.
Suggested next steps
If you plan to use this module, first confirm that you can create a management key and that your OpenRouter account has the workspaces feature. This page cannot confirm either. Then find the SDK's install instructions, version and licence in its repository or the SDK overview, since this page omits them.
Try the read-only calls (List, Get, ListMembers, ListBudgets, GetBudget) in a non-production setup before any write operation. Treat Delete with particular care. The page says deleting any workspace permanently deletes its budgets and guardrails, and that confirming default-workspace deletion with confirm_default_workspace_deletion permanently disables the account's unscoped inference API keys. BulkRemoveMembers removes workspace memberships and DeleteBudget removes the budget for one interval. The page does not describe those changes as permanent. In loops over paged results, add real error handling instead of the placeholder comment.
