# SDK reference

> Developers keep using OpenAI and Anthropic SDKs against the gateway; operators can download typed Agent Router SDKs for configuration management.

# SDK reference

For developers, nothing has to change: the gateway is OpenAI-compatible and Anthropic-compatible, so existing provider SDKs work as-is. For operators automating configuration management, typed Tetrate Agent Router SDKs are published for Go, Python, and TypeScript.

  Release v0.1.1
  Stable channel

## Use an existing provider SDK

The lowest-friction path is to keep the SDK an application already uses. The OpenAI and Anthropic client libraries call the same API shapes the gateway serves, so only two things change: the base URL is set to the gateway endpoint, and the API key is an Agent Router key rather than a provider key. Existing request and response handling is untouched. This approach is covered end to end, with per-language snippets, in [Integrate the gateway with an app](/agent-router-service/guides/integrate-the-gateway-with-an-app/).

## Typed Agent Router SDKs

A typed client for Go, Python, or TypeScript can be downloaded when a generated, strongly typed surface over the management API is preferred. Each artifact is the Agent Router SDK source tree at the release shown above, distributed from `https://tare.tetrate.ai/tools/sdks/stable/`.

  
    Go
    Typed client, source tree.Download <code>.tar.gz</code>
  
  
    Python
    Typed client, source tree.Download <code>.tar.gz</code>
  
  
    TypeScript
    Typed client, source tree.Download <code>.tgz</code>
  

Verify downloads

| Artifact | Version | Size | SHA-256 |
| :---- | :---- | :---- | :---- |
| `agentrouter-go-0.1.1.tar.gz` | 0.1.1 | 1.3 MB | `f63b83728010…` |
| `agentrouter-python-0.1.1.tar.gz` | 0.1.1 | 341.6 KB | `812c473ca692…` |
| `agentrouter-typescript-0.1.1.tgz` | 0.1.1 | 600.5 KB | `654a6f48d68c…` |

## Quickstarts

Each quickstart installs the client for one language, then makes a first read-only identity call to confirm the key and base URL are wired correctly. The curl quickstart needs no SDK at all.

  <Link to="/reference/sdk/quickstart-go/" className="tare-nav-card">
    Go
    Install from the local tarball and run a first whoami call.
  </Link>
  <Link to="/reference/sdk/quickstart-python/" className="tare-nav-card">
    Python
    Install the sdist and run a first whoami call.
  </Link>
  <Link to="/reference/sdk/quickstart-typescript/" className="tare-nav-card">
    TypeScript
    Install the local pack and run a first whoami call.
  </Link>
  <Link to="/reference/sdk/quickstart-curl/" className="tare-nav-card">
    curl
    Make a first whoami call with no SDK, using only an API key.
  </Link>

## Clients

Each SDK exposes one client per management API service, reached from the client constructed in the quickstarts. A client's methods are the service's operations, one method per operation: each takes the operation's request message and returns its response, so the service's page in the [API reference](/reference/api/) documents every method's fields and errors. A method is named after its operation in the language's own convention, so `ListBudgetPolicies` is `ListBudgetPolicies` in Go, `list_budget_policies` in Python, and `listBudgetPolicies` in TypeScript.

| Client | Go | Python | TypeScript | API reference |
| :---- | :---- | :---- | :---- | :---- |
| Admin | `client.Admin()` | `client.admin` | `client.admin` | [AdminService](/reference/api/admin/agentrouter-admin-v-1-admin-service/) |
| AI keys | `client.AiKeys()` | `client.ai_keys` | `client.aiKeys` | [AiKeysService](/reference/api/aikeys/agentrouter-aikeys-v-1-ai-keys-service/) |
| API keys | `client.ApiKeys()` | `client.api_keys` | `client.apiKeys` | [ApiKeysService](/reference/api/api-keys/agentrouter-api-keys-v-1-api-keys-service/) |
| Auth | `client.Auth()` | `client.auth` | `client.auth` | [AuthService](/reference/api/auth/agentrouter-auth-v-1-auth-service/) |
| Catalog | `client.Catalog()` | `client.catalog` | `client.catalog` | [CatalogService](/reference/api/catalog/agentrouter-catalog-v-1-catalog-service/) |
| Clients | `client.Clients()` | `client.clients` | `client.clients` | [ClientsService](/reference/api/clients/agentrouter-clients-v-1-clients-service/) |
| Customer metrics | `client.CustomerMetrics()` | `client.customer_metrics` | `client.customerMetrics` | [CustomerMetricsService](/reference/api/metrics/agentrouter-metrics-v-1-customer-metrics-service/) |
| Customer request logs | `client.CustomerRequestLogs()` | `client.customer_request_logs` | `client.customerRequestLogs` | [CustomerRequestLogsService](/reference/api/insights/agentrouter-insights-v-1-customer-request-logs-service/) |
| Gateway authentication policies (from 0.9.0) | `client.GatewayAuthPolicy()` | `client.gateway_auth_policy` | `client.gatewayAuthPolicy` | [GatewayAuthPolicyService](/reference/api/gateway-auth-policies/agentrouter-admin-v-1-gateway-auth-policy-service/) |
| Identity | `client.Identity()` | `client.identity` | `client.identity` | [IdentityService](/reference/api/identity/agentrouter-identity-v-1-identity-service/) |
| Inference ingress | `client.InferenceIngress()` | `client.inference_ingress` | `client.inferenceIngress` | [InferenceIngressService](/reference/api/inference/agentrouter-inference-v-1-inference-ingress-service/) |
| MCP catalog | `client.MCPCatalog()` | `client.mcp_catalog` | `client.mcpCatalog` | [MCPCatalogService](/reference/api/mcp-catalog/agentrouter-mcp-v-1-mcp-catalog-service/) |
| MCP OAuth clients | `client.McpOAuthClients()` | `client.mcp_oauth_clients` | `client.mcpOauthClients` | [McpOAuthClientsService](/reference/api/mcp-oauth-clients/agentrouter-mcp-v-1-mcp-o-auth-clients-service/) |
| MCP profiles | `client.MCPProfiles()` | `client.mcp_profiles` | `client.mcpProfiles` | [MCPProfilesService](/reference/api/mcp-catalog/agentrouter-mcp-v-1-mcp-profiles-service/) |
| Me | `client.Me()` | `client.me` | `client.me` | [MeService](/reference/api/identity/agentrouter-identity-v-1-me-service/) |
| Policies (from 0.9.0) | `client.Policy()` | `client.policy` | `client.policy` | [PolicyService](/reference/api/policy/agentrouter-policy-v-1-policy-service/) |
| Projects | `client.Projects()` | `client.projects` | `client.projects` | [ProjectsService](/reference/api/tenancy/agentrouter-tenancy-v-1-projects-service/) |
| Request logs | `client.RequestLogs()` | `client.request_logs` | `client.requestLogs` | [RequestLogsService](/reference/api/insights/agentrouter-insights-v-1-request-logs-service/) |
| Secrets | `client.Secret()` | `client.secret` | `client.secret` | [SecretService](/reference/api/secret/agentrouter-secret-v-1-secret-service/) |
| Telemetry | `client.Telemetry()` | `client.telemetry` | `client.telemetry` | [TelemetryService](/reference/api/telemetry/agentrouter-telemetry-v-1-telemetry-service/) |
| Tenancy | `client.Tenancy()` | `client.tenancy` | `client.tenancy` | [TenancyService](/reference/api/tenancy/agentrouter-tenancy-v-1-tenancy-service/) |

The request and response messages are generated with each SDK:

- **Go:** the `genapi` packages of the module, for example `github.com/tetrateio/agentrouter-go/genapi/api/tars/policy/v1`.
- **Python:** importing `agentrouter_sdk` makes the generated modules importable as `tars.<service>.v1`, for example `from tars.policy.v1 import policy_pb2`.
- **TypeScript:** a method accepts a plain object in the shape of its request message.

The guardrails, RBAC, alert destination, content, and email domain policy services have no SDK client in 0.1.1, and are called through the API directly.

## API specifications

Machine-readable descriptions of the management API are available as a combined OpenAPI 3.1 document and a Postman v2.1 collection. The OpenAPI document supports client generation and contract tooling; the Postman collection supports interactive exploration and testing.

  
    OpenAPI spec
    OpenAPI 3.1, YAML, current stable release.Download <code>.yaml</code>
  
  
    Postman collection
    Postman v2.1, JSON, current stable release.Download <code>.json</code>
  

Verify downloads

Both files carry the product release version in their `info.version` field and in their versioned filename. The [stable manifest](https://tare.tetrate.ai/tools/sdks/stable/manifest.json) lists every published artifact with its filename, version, size, and full SHA-256 digest, and the [tags directory](https://tare.tetrate.ai/tools/sdks/tags/) keeps an immutable copy per release.

  The Agent Router developer portal renders the same manifest and is the authoritative source for the current release.

Related references

  <Link to="/reference/api/" className="tare-nav-card">
    Management API reference
    The HTTP APIs the gateway exposes, which the provider SDKs and typed clients call.
  </Link>
  <Link to="/agent-router-service/guides/integrate-the-gateway-with-an-app/" className="tare-nav-card">
    Integrate the gateway with an app
    Point SDKs, frameworks, and code assistants at the gateway.
  </Link>
