Open source Agent Frameworks Open source

Claude Agent SDK

The agent harness behind Claude Code, as an SDK.

by Anthropic

What is Claude Agent SDK?

The Claude Agent SDK gives developers the same agent loop, tools and context management that power Claude Code, so they can build their own agents for coding and non-coding tasks. It supports custom tools, MCP servers, subagents, hooks and permission controls in Python and TypeScript.

Key features

  • Production agent loop used by Claude Code
  • Built-in file, shell and web tools
  • MCP, subagents, hooks and skills
  • Python and TypeScript

Use cases

  • Custom coding agents
  • Research and ops agents
  • Embedding agents in products

Claude Agent SDK alternatives

Compare all →

OpenAI Agents SDK

by OpenAI

A lightweight SDK for building multi-agent workflows.

Open source Agent Frameworks

LangGraph

by LangChain

Build controllable, stateful agents as graphs.

Open source Agent Frameworks

CrewAI

by CrewAI

Orchestrate role-playing, collaborative AI agent teams.

Open source Agent Frameworks

AutoGen

by Microsoft

Microsoft’s open-source framework for multi-agent applications.

Open source Agent Frameworks

Mastra

by Mastra

The TypeScript agent framework.

Open source Agent Frameworks

Pydantic AI

by Pydantic

Type-safe agent framework from the Pydantic team.

Open source Agent Frameworks

Claude Agent SDK FAQ

What is Claude Agent SDK?

The Claude Agent SDK gives developers the same agent loop, tools and context management that power Claude Code, so they can build their own agents for coding and non-coding tasks. It supports custom tools, MCP servers, subagents, hooks and permission controls in Python and TypeScript.

How much does Claude Agent SDK cost?

Claude Agent SDK is open source. Free SDK; you pay for Claude API usage. Check the official website for current pricing.

Who is Claude Agent SDK best for?

Developers building serious agents on Claude.

Is Claude Agent SDK open source?

Yes, Claude Agent SDK is open source.

What are the best alternatives to Claude Agent SDK?

Popular alternatives include OpenAI Agents SDK, LangGraph, CrewAI, AutoGen. See our full list of Claude Agent SDK alternatives for a comparison.

Listing last reviewed November 2026. Spotted something out of date? Tell us.