AI for Developers
Claude Agent SDK logo

Claude Agent SDK

Visit Website

Anthropic's SDK for Python and TypeScript that exposes the Claude Code agent loop, tools, hooks and MCP support for building custom agents.

The Claude Agent SDK is Anthropic's library for embedding Claude Code's agent in your own Python or TypeScript application. It gives you the same agent loop, built-in tools and context management that power Claude Code, running in a process you operate.

Built-in tools read, write and edit files, run commands and search the web. You also get hooks at key points in the agent lifecycle, subagents for focused subtasks, MCP connections, a permission system, resumable and forkable sessions, and skills, slash commands, memory and plugins loaded from your .claude/ directories.

The quickstart walks through installing the SDK, setting an API key and building an agent that finds and fixes bugs. Use API key authentication; Anthropic does not allow third-party products to offer claude.ai login. Use is governed by Anthropic's Commercial Terms. For a hosted agent instead, see Anthropic's Managed Agents.

Claude Agent SDK reviews

  • No reviews yet.
See something outdated? Suggest an update