Skip to main content
The TypeScript SDK ships ESM + CommonJS, has full type definitions inlined, and works with Node 18+ and modern browser bundlers.

Install

Package: @meshrouter/sdk.

First request

The SDK defaults to https://api.meshrouter.app/v1. Pass baseUrl to override.

Streaming

Quote a request before sending

Models catalogue

Error handling

The SDK maps response codes to typed errors:

OpenAI compatibility

Prefer the OpenAI SDK? See OpenAI-compatible client for the drop-in path. The MESH SDK is for when you want typed receipts, payments, and account helpers without dropping the OpenAI shape.