Node.js SDK
Install and initialize the Scalekit Node.js SDK for AgentKit.
Install the Node.js SDK, create a ScalekitClient, then use the sidebar clients for AgentKit.
- Connected accounts (
scalekit.actions) — connect end-user accounts and execute tools - Tool calling (
scalekit.tools) — raw tool definitions for custom adapters - Error handling — typed exceptions for API failures
Install
Section titled “Install”npm install @scalekit-sdk/nodeInitialize
Section titled “Initialize”import { ScalekitClient } from '@scalekit-sdk/node'
// Security: load credentials from environment variables — never hard-code secretsconst scalekit = new ScalekitClient( process.env.SCALEKIT_ENVIRONMENT_URL!, process.env.SCALEKIT_CLIENT_ID!, process.env.SCALEKIT_CLIENT_SECRET!)Next steps
Section titled “Next steps”- Connected accounts — authorization links, connected accounts,
executeTool - Tool calling — list tools for custom adapters
- Error handling — catch
ScalekitNotFoundExceptionand related types