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.