Agent SDK overview - Claude Code Docs

3 min read Original article ↗

Build AI agents that autonomously read files, run commands, search the web, edit code, and more. The Agent SDK gives you the same tools, agent loop, and context management that power Claude Code, programmable in Python and TypeScript.

The Agent SDK includes built-in tools for reading files, running commands, and editing code, so your agent can start working immediately without you implementing tool execution. Dive into the quickstart or explore real agents built with the SDK:

Get started

Ready to build? Follow the Quickstart to create an agent that finds and fixes bugs in minutes.

Capabilities

Everything that makes Claude Code powerful is available in the SDK:

Claude Code features

The SDK also supports Claude Code’s filesystem-based configuration. To use these features, set setting_sources=["project"] (Python) or settingSources: ['project'] (TypeScript) in your options.

FeatureDescriptionLocation
SkillsSpecialized capabilities defined in Markdown.claude/skills/*/SKILL.md
Slash commandsCustom commands for common tasks.claude/commands/*.md
MemoryProject context and instructionsCLAUDE.md or .claude/CLAUDE.md
PluginsExtend with custom commands, agents, and MCP serversProgrammatic via plugins option

The Claude Platform offers multiple ways to build with Claude. Here’s how the Agent SDK fits in:

The Anthropic Client SDK gives you direct API access: you send prompts and implement tool execution yourself. The Agent SDK gives you Claude with built-in tool execution.With the Client SDK, you implement a tool loop. With the Agent SDK, Claude handles it:

Same capabilities, different interface:

Use caseBest choice
Interactive developmentCLI
CI/CD pipelinesSDK
Custom applicationsSDK
One-off tasksCLI
Production automationSDK

Many teams use both: CLI for daily development, SDK for production. Workflows translate directly between them.

Changelog

View the full changelog for SDK updates, bug fixes, and new features:

Reporting bugs

If you encounter bugs or issues with the Agent SDK:

Branding guidelines

For partners integrating the Claude Agent SDK, use of Claude branding is optional. When referencing Claude in your product: Allowed:

  • “Claude Agent” (preferred for dropdown menus)
  • “Claude” (when within a menu already labeled “Agents”)
  • Powered by Claude” (if you have an existing agent name)

Not permitted:

  • “Claude Code” or “Claude Code Agent”
  • Claude Code-branded ASCII art or visual elements that mimic Claude Code

Your product should maintain its own branding and not appear to be Claude Code or any Anthropic product. For questions about branding compliance, contact the Anthropic sales team.

License and terms

Use of the Claude Agent SDK is governed by Anthropic’s Commercial Terms of Service, including when you use it to power products and services that you make available to your own customers and end users, except to the extent a specific component or dependency is covered by a different license as indicated in that component’s LICENSE file.

Next steps