In short.
This is the reference page for the APIKeys module of the OpenRouter Go SDK, written for Go developers who create and manage OpenRouter API keys from code, and its main catch is that most operations need a management key while the page gives no install steps, response fields or licence terms. The page documents six operations on the SDK client's APIKeys object: GetCurrentKeyMetadata, List, Create, Delete, Get and Update. Each has a short description, a Go example, a parameter table, a return type and a table of typed errors. Create returns the plaintext key only once. Create and Update accept a Limit setting, a LimitReset period, a name and an IncludeBYOKInLimit flag. The page does not explain what Limit measures, its units or how it is calculated. Nothing was executed or tested for this report, and it rests only on this one page.
Researched and written by an AI model and checked by a second AI model. How it works
The selected scope is the complete documentation page at [https://openrouter.ai/docs/client-sdks/go/sdks/apikeys/README.md], and the review covers all of that page: the overview, the six operations, their examples, parameter tables, response types and error tables. Linked pages (the management key guide, the operation type pages and the documentation index) were outside the scope and were not read. The SDK source code, repository licence, release history and live service behaviour were not available. Nothing was installed, compiled or executed, so the examples are unverified, and anything the page does not state (install command, SDK version, licence, costs, what Limit measures and its units, response fields) is reported as unknown.
The overview
What this resource is
The resource is one documentation page: the README for the APIKeys module of the OpenRouter Go SDK. Its address is [https://openrouter.ai/docs/client-sdks/go/sdks/apikeys/README.md]. The page is titled APIKeys and describes itself as API key management endpoints. The page's Go examples import github.com/OpenRouterTeam/go-sdk under the alias openrouter.
The page covers a single module of a larger SDK. It does not describe the SDK as a whole, and it gives no SDK version, release date or author names. The page is only about managing OpenRouter API keys.
Overall assessment
As a reference page it is clear and consistent. Every operation follows the same layout: a one-line purpose, a compilable-looking Go example, a parameter table, the return type and an error table. A developer who already knows Go can see what each call needs and which errors it can return. The page repeatedly says that a management key is required, and it flags that a created key's plaintext value cannot be retrieved later.
It is a reference and not a tutorial. It has no install command, no explanation of what a workspace is, no response field listings and no description of the optional external object beyond one sentence. The response and request types are linked to other pages that were not part of this review. Nothing here was run, so the examples are unverified. The assessment is that the page is useful for someone already committed to OpenRouter and Go, and incomplete as a standalone guide.
Who it is for
The page suits Go developers who need to handle OpenRouter API keys in code instead of by hand. Examples are a platform that issues one key per customer or per internal team, a service that rotates or disables keys, and an admin tool that lists keys and checks their state. The Create description mentions that the optional external object can tie a key to a partner-defined user and lookup key. That points to partners who provision keys for their own users, though the page does not explain that scenario further.
It is not aimed at beginners to Go or to OpenRouter. It assumes you know how to add a Go module, use context.Context and handle errors. Someone who only wants to send prompts to a model will not find that here, because this module covers key administration only.
What it can do
The page documents six operations. GetCurrentKeyMetadata returns information about the API key tied to the current authentication session. List returns the API keys for the authenticated user. Create makes a new key. Delete removes a key. Get returns one key by its hash. Update changes an existing key.
List takes three optional parameters: includeDisabled (a bool pointer, to include disabled keys), offset (an optional-nullable int64 for pagination) and workspaceID (a string pointer). By default, keys in the default workspace are returned. Create accepts a request with an expiry time, a flag named IncludeBYOKInLimit, a Limit as a float and a LimitReset period, and the Create example sets Name. The request schema and validation rules are not shown, so which fields are mandatory is unknown. The example uses a monthly reset. Update takes the key hash plus a request body with Disabled, IncludeBYOKInLimit, Limit, LimitReset (the example uses daily) and Name. Delete, Get and Update identify the key by a hash string, not by the key value.
The page does not list the full set of allowed LimitReset values, the units of Limit, or the fields returned for a key. Those are unknown from this evidence.
Using it
What you need
The page states one clear requirement: List, Create, Delete, Get and Update each say a management key is needed, with a link to a management API keys guide at [https://openrouter.ai/docs/client-sdks/go/docs/guides/overview/auth/management-api-keys]. That linked guide was not reviewed. GetCurrentKeyMetadata does not state the same requirement, so which key type it accepts is not established by this page.
Every example builds the client with openrouter.New and openrouter.WithSecurity(os.Getenv("OPENROUTER_API_KEY")). So the examples read credentials from an environment variable called OPENROUTER_API_KEY. The page does not say outright that this variable must hold a management key for the management operations, but that follows from the stated requirement.
You also need a Go toolchain and the go-sdk module. The page does not state a minimum Go version, an install command or a module version. An OpenRouter account is implied, but account terms and eligibility are not covered on the page.
How it works
You create a client with openrouter.New and pass a security option holding your key. Operations hang off the client's APIKeys field, for example s.APIKeys.Create(ctx, request). Each call takes a context.Context first, then operation-specific arguments, and optional request options listed as []operations.Option. Each returns a typed response pointer and an error.
Failures come back as typed errors. The page lists, per operation, error types such as UnauthorizedResponseError (401), BadRequestResponseError (400), ForbiddenResponseError (403 on Create), NotFoundResponseError (404 on Delete, Get and Update), TooManyRequestsResponseError (429), InternalServerResponseError (500) and a general APIError for other 4XX and 5XX codes. GetCurrentKeyMetadata lists only 401, 500 and the general APIError. The page shows the calls only, so the exact HTTP paths and the shape of responses are not described here. Optional and nullable fields use helper packages: the examples import optionalnullable and types and use openrouter.Pointer to build pointers.
Setup
The page has no install section. From the examples, the setup steps would be: add github.com/OpenRouterTeam/go-sdk to your Go module, put a key in the OPENROUTER_API_KEY environment variable, create a client with openrouter.New and openrouter.WithSecurity, and call the APIKeys methods. The exact install command and version pinning are not given on the page and are unknown here.
For anything except GetCurrentKeyMetadata, the page says you need a management key. How to obtain one is covered by a linked guide that was not reviewed. Because Create returns the plaintext key only once, your code needs somewhere safe to store it before the response is discarded.
Worked example from the page
The Create example on the page builds a client from the environment variable, then calls s.APIKeys.Create with an operations.CreateKeysRequest. The values are an expiry of 2027-12-31T23:59:59Z (built with types.MustNewTimeFromString), IncludeBYOKInLimit set to true, a Limit of 50.0, a LimitReset of monthly (operations.CreateKeysLimitResetMonthly) and the name My New API Key. The code logs a fatal error if err is not nil and leaves the response handling as a comment.
A later change would use Update with the key's hash. The page's Update example sets Disabled to false, IncludeBYOKInLimit to true, Limit to 75.0, LimitReset to daily and the name Updated API Key Name. The sample hash is f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943. The List example passes nil for the optional filters, and the offset is passed as optionalnullable.From[int64](nil).
These are examples from the documentation. Nothing was compiled or run here, so their behaviour against the live service is unverified.
Assessment & evidence
Limitations and risks
Coverage is narrow. Only API key management is described. The page leaves out install steps, response and request type details (linked to other pages), the structure of the external object, the units of Limit and any description of workspaces. It does not enumerate the complete allowed set of LimitReset values; monthly and daily appear in examples. Whether GetCurrentKeyMetadata accepts a regular key is not stated.
Some operations are destructive or sensitive. Delete removes a key by hash with no confirmation step shown. Create returns a secret that cannot be retrieved again, so a failure to store it means creating a new key. A management key authorizes creating, updating and deleting keys, so protect it as a privileged credential. The examples read the key from an environment variable, which is better than hard-coding it, though the page gives no further advice on secret handling.
The pagination story is thin. List exposes an offset but no limit parameter, and the page does not explain page size. Nothing in this report was tested, so behaviour, error cases and compatibility with current service versions are unverified.
Why this assessment
The conclusions come directly from the page text. The six operations, parameters, error codes and example values are quoted or paraphrased from the tables and code blocks. Statements about who it suits are inferences from the operations offered, such as provisioning keys with limits and expiry, and from the sentence about partner-defined users. They are not claims made by the page.
Where the page is silent, this report says unknown. That applies to the licence, the install method, the cost, the units of Limit and the response contents. The distinction between what the page states and what is implied is kept deliberately, for example on the management key being needed in the environment variable the examples read.
Alternatives
The page does not name alternatives. The address path (client-sdks/go) suggests OpenRouter publishes client SDKs per language, but this page does not list them, so that was not reviewed. These operations are described as endpoints, which means a developer could in principle call the underlying HTTP API directly with Go's standard net/http package. The endpoint paths are not given on this page, so that route would need OpenRouter's HTTP API documentation.
If you do not need to automate key handling, managing keys manually through the service's own interface may be simpler, but this page does not describe such an interface, so that is not assessed. Other providers' SDKs for their own key management are outside the evidence and not compared.
Evidence base
The report rests on one source: the APIKeys reference page for the OpenRouter Go SDK at [https://openrouter.ai/docs/client-sdks/go/sdks/apikeys/README.md]. The page documents six operations (GetCurrentKeyMetadata, List, Create, Delete, Get and Update), each with a short description, a Go example, a parameter table, a return type and an error table. It opens with a note pointing to a documentation index at [https://openrouter.ai/docs/llms.txt], which was not read.
The page has clear limits. It links to separate pages for request and response types and for the management key guide instead of describing them, and those linked pages were not read. It contains no install instructions, licence text or SDK version, and it gives no publication or last-updated date. The only timestamp on the page is 2027-12-31T23:59:59Z, an example expiry value in the Create code sample, which says nothing about when the page was written or updated. Source code, tests, the repository licence and release notes were not available. All claims about behaviour are therefore documented behaviour, not observed runtime behaviour, because nothing was compiled or run.
Access & freshness
Costs
The page states no prices, fees or quotas for the SDK, for key management calls or for any model usage. The cost of the SDK itself and of calling these endpoints is unknown from this evidence.
Create and Update include a Limit setting with a LimitReset period (monthly and daily appear in the examples). The page does not say what Limit measures, what unit it uses or how usage counts against it, so whether it works as a spending cap is unknown. IncludeBYOKInLimit is described only by name and example value. The page does not define BYOK or say how it changes the limit calculation. Rate limits exist in some form, since 429 errors are listed, but the thresholds are not given.
Rights and licence
The captured page contains no licence text, copyright notice or terms of use. The licence of the go-sdk repository, and the terms for reusing this documentation, are therefore not established by this evidence. Anyone planning to depend on the module or reuse the text should check the repository's licence file and OpenRouter's terms directly.
Using the SDK to manage keys would also be governed by OpenRouter's service terms for the account, which are not part of this page.
Freshness
The page gives no publication date, last-updated date or SDK version. The Create example does contain a timestamp, 2027-12-31T23:59:59Z, but that is a sample expiry value for a new key and does not show how recent the page is. The page was retrieved on 15 November 2026. How current it is against the SDK's latest release is unknown. Field names, operations and error types may change between SDK versions, and the examples cannot be matched to a specific version from this evidence. Check the module version you install against the current documentation before relying on any signature.
Suggested next steps
If you plan to use this module, first confirm the licence and install instructions in the SDK repository and read the linked management key guide. Before creating any key, check the linked type pages and OpenRouter's documentation for what the Limit setting measures, its units, how it is calculated, how IncludeBYOKInLimit affects it and the allowed LimitReset values.
Then create a management key and keep it out of source control, for example in a secret store that sets OPENROUTER_API_KEY at runtime. Try the List call first because it changes nothing, then try Create with a small Limit setting and a near expiry on a throwaway key, and store the returned plaintext key immediately.
Before using Delete or Update in automation, check the linked type pages for the response fields, and handle the 401, 404 and 429 errors the page lists. Test against a non-production account first. None of these steps has been carried out for this report.
