Quickstart
Quickstart: Claude Agent SDK
You need: Node.js 20 or later, @anthropic-ai/claude-agent-sdk (pin the version you install), an Anthropic API key in ANTHROPIC_API_KEY, and a Cubbylark key in KC_API_KEY.
Get a key. Sign up at https://app.cubbylark.com/sign-up (the Free plan, no card). An owner creates a key in Settings → API keys and picks its scopes:
agents:readto read, plusagents:writeto make changes. Keep it in an environment variable, never in a file you commit:export KC_API_KEY=kc_live_…Install (pinned):
npm install --save-exact @anthropic-ai/claude-agent-sdkGive the agent the server:
import { query } from "@anthropic-ai/claude-agent-sdk"; for await (const message of query({ prompt: "Which of my agents need my approval, and what are they waiting on?", options: { mcpServers: { childcaresoftware: { type: "http", url: "https://api.cubbylark.com/mcp", headers: { Authorization: `Bearer ${process.env.KC_API_KEY}` } }, }, allowedTools: ["mcp__childcaresoftware__sv_whoami", "mcp__childcaresoftware__sv_approvals_list"], }, })) { if (message.type === "result") console.log(message.result); }- Check it. The answer lists what waits in your approval inbox. Any send or change goes through
kc_proposeand waits there for a person.
Next: task recipes, the MCP tools, and what an agent can do alone.