Skip to main content
Apps consume services through auto-generated clients. Each tool defined in the service becomes a typed method on the client, and the framework handles credential resolution transparently.

Generate a service client

This generates a typed client package (@synthetiq/services-<name>-client) that you can import in your app’s backend code.

Call a service from a backend procedure

The client resolves the authenticated user’s credentials at call time — no API keys or tokens appear in app code. Service clients can only be used in backend code (src/server/).

Streaming calls

For services that support streaming (e.g., LLM providers), use the callback variant: