Skip to main content

Official SDKs

ARouter provides first-party SDKs with full support for chat completions, streaming, key management, and provider proxy.

Go SDK

Available now — Zero dependencies, production-ready.
Requires Go 1.21+ · Documentation →

Node.js SDK

Coming soon — Full TypeScript support.
Preview · Documentation →

Python SDK

Planned — Native Python SDK with async support.In development · ETA TBD

Go SDK

The official Go SDK for ARouter. Lightweight, zero-dependency, and idiomatic Go.

Features

  • Chat completions (single and streaming)
  • Multi-provider model routing
  • Key management (create, list, update, delete)
  • Provider proxy for raw upstream access
  • Structured error handling with sentinel errors
  • Configurable timeouts and custom HTTP clients

Install

Quick Example

Full Go SDK Documentation

See complete API reference, streaming examples, key management, and error handling.

Node.js SDK (Preview)

TypeScript-first SDK with chat completions, streaming, key management, and usage tracking.

Features

  • Chat completions (single and streaming)
  • Full TypeScript type definitions
  • Key management
  • Usage tracking and analytics
  • Provider proxy support

Install

Quick Example

Full Node.js SDK Documentation

See complete API reference including OpenAI/Anthropic SDK compatibility guides.

Third-Party SDK Compatibility

You don’t need an ARouter SDK to get started. ARouter is fully compatible with existing provider SDKs:
Just change base_url to https://api.arouter.ai and set your ARouter API key — all existing SDK code works without modification.