DocsGetting started
Getting started
Authentication
Keep projects, users, and secrets isolated.
A project key authenticates your application. The userId identifies the end user whose threads, files, approvals, memory, and connected apps are used. Call the SDK from a trusted backend; never expose a project key in browser code.
example.ts
const chusky = new Chusky({
apiKey: process.env.CHUSKY_API_KEY!,
userId: authenticatedUser.id,
});