The fastest path to a product feature
Create threads, stream runs, upload verified files, handle approvals, and inspect durable tasks from a typed server-side client.
Start with the SDKBring 6,000+ tools, ongoing agent work, and human approvals behind your product. Use the API or SDK, embed chat on your business site, or connect another agent through MCP and A2A.
Choose your entry point
Your product owns authentication and its customer-facing experience. Chusky provides the agent execution API; the caller identity and project scopes define whose work and tools the run may use.
Create threads, stream runs, upload verified files, handle approvals, and inspect durable tasks from a typed server-side client.
Start with the SDKCall the versioned /v1 API from your server, mobile backend, job runner, or internal service. The same ownership and approval rules still apply.
Read the API guideConnect a compatible remote MCP host with a project key and stable end-user identity. It can discover and call Chusky operations without receiving provider credentials.
Connect through MCPLet another agent hand work to Chusky through A2A. Keep the caller identity, permitted tools, and execution limits attached to the job.
Explore the integration surfaceFor the conversations on your site
Build around follow-through
The integration contract
Call Chusky from a trusted server. Your project key identifies the application; your authenticated user ID identifies whose private threads, files, memories, approvals, and connected accounts the run may use.
import { Chusky } from "@chusky/sdk";
const chusky = new Chusky({
apiKey: process.env.CHUSKY_API_KEY!,
userId: session.user.id,
});
const thread = await chusky.threads.create();
for await (const event of chusky.threads
.runs(thread.id).stream({
input: "Prepare a renewal brief.",
})) {
if (event.type === "run.delta") sendToClient(event.text);
if (event.type === "run.approval_required")
showApproval(event.approval);
}What you get
Keep conversation continuity and recover a run after a disconnected client.
Compose dependency-aware work with checkpoints, bounded budgets, waits, retries, and resumable execution.
Read current provider state, retain linked receipts, and require exact owner approval for consequential compensation actions.
Use Chusky capabilities and owner-approved app connections through one agent loop.
Pause before consequential actions and bind approval to the exact tool, arguments, owner, and expiry.
Upload verified files, route owner-scoped images through exact connected-app schemas, and return generated deliverables.
Move long work into durable task state and receive signed completion or failure events.
Inspect run timelines, receipts, verifications, provider-proof status, and safe audit records.
Production background execution and recovery require Redis and QStash to be configured in the Chusky deployment.
Before production
A reliable integration is a shared contract between your application and Chusky. Decide which side owns each responsibility before you ship.