Building Agents with the Claude Agent SDK logo

Building Agents with the Claude Agent SDK

Free

Agent SDK

FreeFree tier
Type
Open Source
Company
Anthropic

About Building Agents with the Claude Agent SDK

The Claude Agent SDK is an open-source collection of tools built by Anthropic that enables developers to create powerful, general-purpose agents on top of Claude Code. Originally launched as the Claude Code SDK, it has been renamed to reflect its broader applicability. The SDK's core design principle is giving agents access to a computer (via terminal commands), allowing them to perform tasks like reading files, running bash commands, editing files, and searching the web. This approach lets developers build agents for finance analysis, personal assistance, customer support, deep research, and more. The SDK provides primitives that allow agents to interact with external APIs, store data, execute code, and iterate on tasks autonomously.

Key Features

Gives agents access to a computer (terminal) to execute commands and manipulate files
Built on top of Claude Code, proven at scale within Anthropic
Supports bash execution, file editing, file creation, and file searching
Enables creation of agents for non-coding tasks like research, video creation, and note-taking
Provides primitives to connect external APIs, store data, and run iterative code loops
Open source and free to use

Pros & Cons

Pros
  • Enables building effective agents by giving them the same tools human programmers use
  • Proven in real-world production at Anthropic via Claude Code
  • Flexible for both coding and non-coding workflows
  • Open-source and freely available
  • Based on mature SDK with active development

Best For

Finance agents that evaluate investments by accessing APIs, storing data, and running calculationsPersonal assistant agents that book travel, manage calendars, and schedule appointmentsCustomer support agents that handle ambiguous requests, review user data, and escalate when neededDeep research agents that analyze large document collections, cross-reference files, and generate reports

FAQ

What is the Claude Agent SDK?
The Claude Agent SDK is an open-source collection of tools that helps developers build powerful, general-purpose agents on top of Claude Code. It was originally called the Claude Code SDK and has been renamed to reflect its broader use beyond coding.
How does the SDK work?
The SDK gives agents access to a computer via the terminal, allowing them to run bash commands, edit files, create files, search files, and interact with external APIs. This enables agents to perform tasks iteratively until they succeed.
What can I build with the Claude Agent SDK?
You can build a wide variety of agents, including finance agents, personal assistant agents, customer support agents, deep research agents, and more. The SDK provides the primitives needed for any workflow that benefits from giving Claude access to a computer.