What is Agent SDK?
The Claude Agent SDK is a Python and TypeScript library that exposes Claude Code's tools, agent loop and context management so developers can build their own agents.
Also written: Claude Agent SDK, Claude Code SDK
Explained
Anthropic's docs describe an agent as software that plans its own steps and uses tools to work with files and commands. The Agent SDK provides the same tools, agent loop and context management that run Claude Code, as a library for Python and TypeScript. The docs say it runs the Claude Code binary, which makes it a way to embed that agent in an application the developer operates.
The overview lists the capabilities carried over from Claude Code: built-in tools for files, commands and web search, hooks that run custom code at points in the agent lifecycle, subagents for focused subtasks, connections to MCP servers, permission controls, sessions that can be resumed or forked, and skills, commands and memory loaded from the project's .claude directory. Plugins can bundle several of these.
The docs contrast it with the Claude Code CLI for interactive terminal work, the Client SDK where the developer writes the tool loop, and Managed Agents where Anthropic hosts the agent. For other languages, the CLI can be run as a subprocess in print mode with JSON output. One stated limit: third-party developers may not offer claude.ai login or its rate limits in their products without prior approval, so API key authentication is used instead.
Primary source
Agent SDK overview (code.claude.com), read Oct 26, 2026
This entry paraphrases the page above. Sources change; check it for the current wording.
Listings that use this
The 5 top-ranked listings tagged for Agent SDK. Rank weighs adoption, freshness, documentation and publisher identity; how we rank and grade. Money never changes the order.
- 0.791score
ADK for Go
Google
Code-first Go toolkit for building agents with a tool ecosystem, composable multi-agent systems and Cloud Run deployment.
HarnessAFreshness: A★ 8.9K - 0.753score
LangChain
LangChain
Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it.
HarnessAFreshness: A★ 148.4K↓ 37.3M/wk - 0.734score
Pydantic AI
Pydantic
Typed Python SDK for building agents with swappable model providers, plus optional capabilities for memory, sub-agents, planning and durable execution.
HarnessAFreshness: A★ 20.8K↓ 1.5M/wk - 0.734score
Google Agent Development Kit (ADK)
Google
Open-source toolkit for building, evaluating and deploying agents in Python, TypeScript, Go, Java and Kotlin, tuned for Gemini but model-agnostic.
HarnessAFreshness: A★ 22K↓ 2.4M/wk - 0.730score
Claude Agent SDK (Python)
Anthropic
Python SDK that runs the Claude Code agent loop inside your own program, with custom tools and hooks written as Python functions.
HarnessAFreshness: A★ 8.3K↓ 7.9M/wk
Related
Cite this page
What is Agent SDK?. Agent Mart. https://agentmart.dev/glossary/agent-sdk (last updated 2026-10-26)
Written Oct 26, 2026, updated Oct 26, 2026. All glossary terms