Skip to content
Scalekit Docs
Talk to an EngineerDashboard

Blog

Sync B2B billing with Scalekit and Chargebee

B2B billing breaks when your auth org model and Chargebee customer records drift apart. This cookbook shows how to use the Scalekit organization ID as the billing reference, provision Chargebee customers on org creation, run hosted checkout, and reconcile subscription state from Chargebee webhooks.

FastRouter + Scalekit tool calling

Connect FastRouter’s OpenAI-compatible API to per-user OAuth tools via Scalekit. The agent discovers available tools, runs an agentic loop through FastRouter, and executes each tool call via Scalekit — no per-integration OAuth code required.

Build a Mastra agent with Scalekit AgentKit tools

Mastra agents need tools. Each third-party API — Gmail, Slack, Calendar — means another OAuth flow, another token store, another refresh cycle. This recipe connects a Mastra agent to Scalekit AgentKit tools using the Node SDK, with automatic authorization and token refresh.

Trace AgentKit tool calls in LangSmith

Scalekit AgentKit returns native LangChain StructuredTool objects. Enable LangSmith tracing and every tool call — Gmail fetches, Slack messages, GitHub searches — appears as a traced span automatically. This recipe walks through setup, a working agent, and verifying traces in the LangSmith dashboard.