Claude Agent SDK (Python)
Anthropic's Python SDK for building agents on Claude Code's agent loop, with the CLI bundled, custom tools and hooks.
Updated
✨ Try AgentScout's free AI image generator →Good for: coding in the terminal, building AI agents, building MCP servers
Use cases
About Claude Agent SDK (Python)
Claude Agent SDK (Python) is listed in our frameworks category and is aimed at builders. Anthropic's Python SDK for building agents on Claude Code's agent loop, with the CLI bundled, custom tools and hooks. Pricing, as the maker states it: Open source. Maturity: Mature. We last checked the official link on 2026-12-01.
What is Claude Agent SDK (Python)?
The Claude Agent SDK for Python is Anthropic's official library for building agents on the same harness that powers Claude Code. A simple async query() call streams Claude's messages, and a client class supports interactive sessions, custom tools, hooks and permission settings.
The Claude Code CLI comes bundled with the package, so pip install claude-agent-sdk is enough to start (Python 3.10+); you can point it at your own Claude Code install instead.
Sources: the official README and our directory listing, checked 2026-10-20. Official site: code.claude.com/docs/en/agent-sdk/overview.
Who is Claude Agent SDK (Python) for?
Python developers who want Claude Code's agent loop, tools and permissions inside their own apps and scripts.
Claude Agent SDK (Python) at a glance
- Open source: Yes (MIT License)
- GitHub: anthropics/claude-agent-sdk-python · 8,694 stars (as of Dec 2, 2026)
Key features
- Official Anthropic SDK for the Claude Code harness
- Async query() streaming
- Custom tools, hooks and permissions
- Claude Code CLI bundled
Claude Agent SDK (Python) FAQ
What is Claude Agent SDK (Python)?
The Claude Agent SDK for Python is Anthropic's official library for building agents on the same harness that powers Claude Code. A simple async query() call streams Claude's messages, and a client class supports interactive sessions, custom tools, hooks and permission settings.
Who is Claude Agent SDK (Python) for?
Python developers who want Claude Code's agent loop, tools and permissions inside their own apps and scripts.
Is Claude Agent SDK (Python) free?
Claude Agent SDK (Python)'s pricing, as the maker states it: Open source. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.
Is Claude Agent SDK (Python) open source?
Yes. Claude Agent SDK (Python) is released under the MIT License, according to its GitHub repository.
Is the Claude Agent SDK free?
The SDK is free and open source (MIT). You pay for Claude usage through the API or your plan.
What are alternatives to Claude Agent SDK (Python)?
Similar tools include Vercel AI SDK, Strands Agents, Upsonic, Antigravity SDK, AgenticX and OpenGAP.
Claude Agent SDK (Python) ratings and reviews
Be the first to rate Claude Agent SDK (Python): tap 1 to 5 stars below. A written review is optional.
Claude Agent SDK (Python) alternatives
Other frameworks tools in our directory. See all frameworks tools →
Vercel AI SDK
TypeScript toolkit for building AI apps and agents.
Strands Agents
Strands open-source SDK for building production agent harnesses in Python and TypeScript.
Upsonic
Python framework for building autonomous AI agents.
Antigravity SDK
Google's Python SDK for building stateful AI agents powered by Antigravity and Gemini, abstracting the agent loop and runtime.
AgenticX
AgenticX is an open-source agent project that helps builders handle unified, production-ready multi-agent platform — Python SDK + CLI (agx) + Studio.
OpenGAP
Framework-agnostic, git-native standard and CLI for defining AI agents so a repository becomes a runnable agent.