Skip to content
Scalekit Docs
Talk to an EngineerDashboard

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
Terminal window
npm install @scalekit-sdk/node
import { ScalekitClient } from '@scalekit-sdk/node'
// Security: load credentials from environment variables — never hard-code secrets
const scalekit = new ScalekitClient(
process.env.SCALEKIT_ENVIRONMENT_URL!,
process.env.SCALEKIT_CLIENT_ID!,
process.env.SCALEKIT_CLIENT_SECRET!
)
  1. Connected accounts — authorization links, connected accounts, executeTool
  2. Tool calling — list tools for custom adapters
  3. Error handling — catch ScalekitNotFoundException and related types