Documentation

This area covers SDK integration (@routerbrain/sdk) and OpenAI-compatible HTTP. Signed-in tenants manage keys, usage, and token analysis in the console — see the tenant console topic.

SDK integration

npm package @routerbrain/sdk: RouterBrain, chat.send, files/models, error types, @routerbrain/sdk/node and multimodal chat.messages.

SDK quickstart →

Direct gateway HTTP

curl / official OpenAI SDK with a custom baseURL; auth, routing, input_file, PDF, tools, and client guides in the sidebar.

Gateway quickstart →

Tenant console

API keys, private upstream keys (BYOK), usage & billing, token analysis — aligned with console routes.

Create tenant API keys →

SDK reference: packages/sdk/README.md. HTTP articles link deployment & ops where needed.

Browse by group

@routerbrain/sdk

Getting started

Core API

Node & other clients

OpenAI-compatible HTTP

Access & authentication

Protocol & behavior

Request examples

Editors & agents

Troubleshooting

Tenant console

Access & control

Usage & billing

Observability

← Back to home