Claude Agent SDK
Claude Agent SDK is a self-hosted framework in the Agent Frameworks layer of the AI stack. Anthropic's toolkit for building agents with tool use and hooks.
By Kunj ShahFacts verifiedmethod
- Licence
- proprietary
- Language
- TypeScript
- Cost
- free
- Owned by
- Applied Engineering
Use Claude Agent SDK when
Building agents against Anthropic models, with tool use and hooks.
Skip Claude Agent SDK when
You need provider independence at the framework layer.
Turns a model call into a multi-step program. See every agents tool.
Badge this entry
[](https://lattice.kunjshah.in/agent-frameworks/claude-agent-sdk)Rules of thumb
- An agent loop that cannot survive a deploy will eventually cause real damage. Durability and tool permissions are the controls, not the prompt.
- Start with a single model call and plain code. Add an agent framework when the control flow genuinely depends on the model's output.
- Give every side-effecting tool an idempotency key. Retries are guaranteed; duplicate payments should not be.
Quick answers
- Is Claude Agent SDK open source?
- No. Claude Agent SDK is proprietary. It is free to use.
- What are the alternatives to Claude Agent SDK?
- The closest alternatives to Claude Agent SDK are OpenAI Agents SDK and Letta.
Ask an AI about this page
Opens the assistant with this page’s link and a question already filled in.
Reading on agents
- When not to use an agent frameworkIf you can draw the steps before the model runs, you are writing a workflow, not an agent. Workflows do not need an agent framework.
- Agents need a durable hostThe loop is a weekend project. The part where it keeps working at three in the morning is the actual product, and almost nobody budgets for it.
Alternatives to Claude Agent SDK
Listed as an alternative to
- OpenAI Agents SDKOpenAI Agents SDKLightweight primitives for handoffs, guardrails and tracing.Apache-2.0 · self-hosted · free
Use when A small, legible set of primitives for handoffs and guardrails.
Skip when You need multi-provider abstraction at every layer.
Also in agents
- LangChainLangChainComposable abstractions for model calls, tools and state.MIT · self-hosted · free
Use when Tool use and state, in an ecosystem where the answers already exist.
Skip when You want a thin, legible core: this is a large surface.
- LlamaIndexLlamaIndexData-centric framework for retrieval and agent workflows.MIT · self-hosted · free
Use when Data-centric work where retrieval is the centre of the problem.
Skip when You need agent orchestration more than data access.
- Pydantic AIPydantic AIType-safe agent framework that leans on Pydantic models.MIT · self-hosted · free
Use when Type-safe agents where schema correctness is the priority.
Skip when You want a batteries-included ecosystem.
- AutoGenAutoGenMicrosoft research project for conversable multi-agent systems.MIT · self-hosted · free
Use when Research into conversable multi-agent systems.
Skip when You need something stable and documented for production.
- CrewAICrewAIRole-based orchestration where agents collaborate as a crew.MIT · self-hosted · free
Use when Role-based orchestration where agents are framed as a team.
Skip when You want direct control over the loop itself.
- Semantic KernelSemantic KernelMicrosoft SDK for embedding AI steps into .NET and Python apps.MIT · self-hosted · free
Use when Embedding AI steps into an existing .NET estate.
Skip when Your stack is not .NET.
- MastraMastraTypeScript agent framework with typed workflows and evals.Apache-2.0 · self-hosted · free
Use when TypeScript agents with typed workflows and evals built in.
Skip when You are working in Python.
- OpenAI Agents SDKOpenAI Agents SDKLightweight primitives for handoffs, guardrails and tracing.Apache-2.0 · self-hosted · free
Use when A small, legible set of primitives for handoffs and guardrails.
Skip when You need multi-provider abstraction at every layer.
- AgnoAgnoMinimal agent runtime centered on model-agnostic tool interfaces.MPL-2.0 · self-hosted · free
Use when A minimal agent runtime with model-agnostic tool interfaces.
Skip when You need the wider ecosystem around it.
- LettaLettaAgent runtime with persistent, editable memory as a first-class primitive.Apache-2.0 · self-hosted · free
Use when Agents whose memory is a first-class, inspectable and editable state.
Skip when You want memory to be a detail the framework handles for you.
- smolagentssmolagentsMinimal code-first agent loop from the Hugging Face team.Apache-2.0 · self-hosted · free
Use when Reading the whole agent loop in a page: it is deliberately tiny.
Skip when You need a rich tool ecosystem around it.
- Vercel AI SDKVercel AI SDKProvider-agnostic building blocks for streaming apps and agents.Apache-2.0 · self-hosted · free
Use when Streaming model calls in a TypeScript app, provider-agnostically.
Skip when You need agent orchestration rather than model calls.