Skip to main content

SDK Reference

Because the gateway is OpenAI-compatible and Anthropic-compatible, the existing provider SDKs work unchanged: point the SDK's base URL at the gateway and pass an Agent Router API key. No Agent Router-specific SDK is required. For teams that prefer a first-class client, typed Agent Router SDKs are also published for Go, Python, and TypeScript.

Release v0.1.1Stable 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.

Typed Agent Router SDKs

A typed client for Go, Python, or TypeScript can be downloaded when a generated, strongly typed surface over the full Agent Router 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/.

ArtifactVersionSizeSHA-256
agentrouter-go-0.1.1.tar.gz0.1.1438.8 KBa83023263c0b…
agentrouter-python-0.1.1.tar.gz0.1.1132.7 KBbef21b0a9585…
agentrouter-typescript-0.1.1.tgz0.1.1232.9 KBd7889ef26ec4…

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.

API specifications

Machine-readable descriptions of the full Agent Router 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.

ArtifactVersionSizeSHA-256
agentrouter-openapi-0.1.1.yaml0.1.1554.8 KB1dfa0ffd16bb…
agentrouter-postman-0.1.1.json0.1.1184.5 KB8be489ab856c…

Versions, archive sizes, and full SHA-256 digests are published on the Agent Router developer portal, which is the authoritative source for the current release. The checksums above are abbreviated; the full digest is available there for integrity verification.