Authentication (TypeScript)

The verified inference examples use a TheRouter API key. The OpenAI SDK does not expose the former TheRouter-specific OAuth methods. Keep the key on a trusted server and never embed it in browser code.

This guide uses the official OpenAI client with TheRouter; it is not a TheRouter-owned SDK. The therouter and @therouter/sdk packages previously named here are not currently published in the public package registries.

Related resources

Help & contact