Claude Agent SDK

by Anthropic

Build custom agents on the same agent loop and tools as Claude Code

The Claude Agent SDK packages Claude Code's agent loop for Python and TypeScript. It provides built-in tools for files, commands, and web search, plus MCP servers, subagents, hooks, permissions, sessions, and skills, so you can build your own agents on top of it. Agents authenticate with a Claude API key.

Key features

  • Built-in file, shell, and web tools
  • MCP servers and custom tools
  • Subagents, hooks, and permissions
  • Sessions that can resume or fork
  • Loads skills and commands from .claude/

Similar tools

  • OpenAI Agents SDK

    Lightweight framework for multi-agent workflows with handoffs and tracing

    by OpenAIFreeOpen sourceCLI
  • Vercel AI SDK

    Provider-agnostic TypeScript toolkit for AI apps and agents

    by VercelFreeOpen sourceCLI
  • MCP Python SDK

    Official Python SDK for Model Context Protocol servers and clients

    FreeOpen sourceCLI
  • MCP TypeScript SDK

    Official TypeScript SDK for building MCP servers and clients

    FreeOpen sourceCLI
  • FastMCP

    Fast, Pythonic framework for building MCP servers and clients

    by PrefectFreeOpen sourceCLI
  • Anthropic Skills

    Anthropic's public repository of example Agent Skills for Claude

    by AnthropicFreeOpen sourceCLI, Web, API

Built a tool like Claude Agent SDK? Submit it for review