From Chat to Agent
You have probably used Claude through a chat interface. You type a question, Claude answers. Maybe you paste in some code and ask for help. That is powerful, but it is also limited. You are the one doing the work — copying, pasting, running, checking. Claude is just thinking. You are the hands.
The Claude Agent SDK flips that equation. Instead of chatting with Claude, you build software that gives Claude hands. An agent built with the SDK can read files, write code, search the web, query databases, call APIs, run terminal commands, and make decisions — all on its own. You define the mission. The agent executes it.
This is the difference between asking a coworker for advice and hiring someone to do the job. The API is the advice line. The Agent SDK is the hiring contract.
What the API Can Do (and Where It Stops)
The Claude API lets you send messages and get responses. You can set system prompts, control temperature, and even define tools for function calling. That is enough to build chatbots, content generators, and simple automations. But the API puts you in charge of every decision:
Write the tool execution loop. Handle every tool result. Manage conversation history. Decide when to stop. Implement permission checks. Handle streaming. Manage sessions. Build retry logic. Track costs. You are building the agent framework from scratch — every time.
A complete agent runtime out of the box. Built-in tools (Bash, file operations, search). Automatic tool execution loops. Streaming event system. Session management with persistence. Permission controls. Cost guardrails. Sub-agent delegation. MCP server integration. You focus on what your agent does — not how agents work.
What the Agent SDK Unlocks
The SDK is not just convenience. It enables patterns that would take thousands of lines of custom code to build yourself:
Your First Look at the SDK
Here is the simplest possible agent. This is not production code — it is the "Hello World" that shows you the shape of things to come:
import { Claude } from "@anthropic-ai/claude-agent";
// Create a Claude agent with built-in tools
const agent = new Claude({
model: "claude-sonnet-4-6", // which model powers the agent
tools: "defaults", // gives Claude file tools, bash, etc.
});
// Give the agent a task and let it work
const result = await agent.query(
"Read the file package.json and tell me what dependencies are installed."
);
console.log(result.text);
// Claude reads the file, parses it, and responds with a summary
// — all without you writing any file-reading code
Notice what you did not write: no file reading code, no JSON parsing, no tool execution loop, no error handling for missing files. The SDK handles all of that. You described what you wanted. The agent figured out how to do it.
Who Should Use the Agent SDK
The Agent SDK is for anyone building AI-powered software that needs to act, not just respond. That includes:
Coding assistants, deployment bots, data pipelines, research agents, customer service automation, internal tools, CI/CD integrations, content generation systems
Comfortable with TypeScript or JavaScript. Familiar with npm. Basic understanding of async/await. No prior AI experience needed — this course teaches the rest.
What You Will Build in This Course
By the end of these 10 lessons, you will go from zero to deploying production agents. Here is the roadmap: