Official SDKs
ARouter provides first-party SDKs with full support for chat completions, streaming, key management, and provider proxy.Go SDK
The official Go SDK for ARouter. Lightweight, zero-dependency, and idiomatic Go.| Package | github.com/arouter-ai/arouter-go |
| Status | Stable |
| Min Go Version | 1.21+ |
| License | MIT |
| Source | GitHub |
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.| Package | @arouter/sdk |
| Status | Preview (v0.1.0) |
| Runtime | Node.js 18+ |
| License | MIT |
| Source | GitHub |
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.