Skip to content

Quickstart

Quickstart: Claude Agent SDK

Markdown version

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 Tendbrook key in EC_API_KEY.

  1. Get a key. Sign up at https://app.tendbrook.com/sign-up (the Free plan, no card). An owner creates a key in Settings → API keys and picks its scopes: agents:read to read, plus agents:write to make changes. Keep it in an environment variable, never in a file you commit:

    export EC_API_KEY=ec_live_…
  2. Install (pinned):

    npm install --save-exact @anthropic-ai/claude-agent-sdk
  3. Give 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: {
          daycaresoftware: { type: "http", url: "https://api.tendbrook.com/mcp", headers: { Authorization: `Bearer ${process.env.EC_API_KEY}` } },
        },
        allowedTools: ["mcp__daycaresoftware__ec_whoami", "mcp__daycaresoftware__ec_approvals_list"],
      },
    })) {
      if (message.type === "result") console.log(message.result);
    }
  4. Check it. The answer lists what waits in your approval inbox. Any send or change goes through ec_propose and waits there for a person.

Next: task recipes, the MCP tools, and what an agent can do alone.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.