# 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 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:

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

   ```bash
   npm install --save-exact @anthropic-ai/claude-agent-sdk
   ```
3. **Give the agent the server:**

   ```ts
   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](https://www.tendbrook.com/docs/recipes), [the MCP tools](https://www.tendbrook.com/docs/mcp/tools), and
[what an agent can do alone](https://www.tendbrook.com/for-agents).
