# Claude Agent SDK

Embed the Claude Code agent loop with tools, approvals and sessions in custom Python or TypeScript applications.

Canonical profile: https://ki-agentenkompass.de/en/agents/claude-agent-sdk/
Editor: [Michael Meierhoff](https://ki-agentenkompass.de/en/about/)
Sources reviewed: 2026-11-16
Basis: provider documentation. Examples are editorial suggestions, not hands-on product tests.

## Overview

Programmable embedding of the Claude Code harness; the application operates the agent process.

- Provider: Anthropic
- Product family: Claude Agent SDK
- Profile type: Programmable agent framework
- Environment: Custom application using Python, TypeScript.
- Connections: Custom functions, provider adapters and documented MCP/API connections.
- Setup: Install the SDK, configure model access and tools, and set up persistence and operations.
- Pricing model: SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

## Key features

### Built-in code and file tools

Reading and editing files, search and command execution are built in.

Source: https://github.com/anthropics/claude-agent-sdk-python

### Hooks and tool approvals

The custom application controls tool actions through permissions and hooks.

Source: https://github.com/anthropics/claude-agent-sdk-python

### Subagents and MCP

Specialist agents and external MCP tools extend execution.

Source: https://github.com/anthropics/claude-agent-sdk-python

### Resume and fork sessions

Stored session IDs allow targeted continuation; forks inherit previous conversation history.

Source: https://github.com/anthropics/claude-agent-sdk-python

### Skills and structured results

Project skills and plugins extend behavior; structured outputs are available to custom applications.

Source: https://github.com/anthropics/claude-agent-sdk-python

## Example workflows

### Embed a knowledge agent in a custom app

- Your input: Documents, defined read tools and model access.
- Possible result: A custom application answers questions through a configured agent loop.
- What to check: Test sources, user isolation and tool interfaces.

### Build a business process with approval

- Your input: Process steps, APIs and a mandatory approval policy.
- Possible result: An agent performs preparatory steps; the custom application controls approval.
- What to check: Verify failure paths, resumption and permissions using realistic cases.

## Requirements and limits

### Setup and access

Requirement: Install the SDK, configure model access and tools, and set up persistence and operations.

Source: https://github.com/anthropics/claude-agent-sdk-python

### Requirements and limits

Limitation: Development, permissions and operations are the responsibility of the custom application. Documented components must be combined and verified for the use case.

Source: https://code.claude.com/docs/en/agent-sdk/overview

### Session and file state

Limitation: Session forks branch the conversation. Changes in a shared working directory remain real file changes; reverting them requires checkpoints or separate workspaces.

Source: https://code.claude.com/docs/en/agent-sdk/sessions

## A good fit if …

- you want to integrate agents into a custom application and operate them yourself
- you can deliberately review results and permissions
- you want to embed Claude Code tools, hooks and session resumption programmatically

## Less suitable if …

- you seek a fully managed service without development effort
- you need conversation forks to automatically isolate all file changes

Editorial assessment based on provider documentation. Not a product test.

## Usable AI models

Fixed choice across providers

Claude models through personal API authentication and supported platform access. Third-party products require separate Anthropic approval for claude.ai sign-in.

- Model families named: Anthropic (Claude)
- Model choice: You choose
- Your own API key: Yes
- Router or custom endpoint: Not stated
- Local models: Not stated

Partly documented · Sources accessed on: 2026-11-16

- [Claude Agent SDK · Product](https://code.claude.com/docs/en/agent-sdk/overview)

- [Claude Agent SDK · Repository](https://github.com/anthropics/claude-agent-sdk-python)

## Europe & regional availability

Access and data processing must be assessed separately.

Reviewed scope: Claude Agent SDK · Access and processing
Reviewed on: 2026-11-16

### Access and regional conditions

With requirements

The source code or documented download is publicly available. Model providers, external connections and hosting have their own regional and privacy conditions. Uniform EU data residency is unspecified within the checked scope.

Region covered: EU/EEA, United Kingdom and Switzerland

Documented reason: The configured deployment and terms of connected services determine the applicable conditions.

Official source: https://code.claude.com/docs/en/agent-sdk/overview
Official source: https://github.com/anthropics/claude-agent-sdk-python

## Accounts & permissions

Based on provider documentation. Permissions depend on the account, integration and organization policies. Review the permissions actually requested before use.

Configuration covered: Claude Agent SDK · Accounts and permissions
Sources reviewed: 2026-11-16

### Account used

Documented with conditions: Model and service access is assigned within the custom application.

Evidence: https://code.claude.com/docs/en/agent-sdk/overview
Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Admin approval

Documented with conditions: Configure tool permissions and human approvals for the task; verify coverage for each tool.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Data access & team sharing

Documented with conditions: Custom functions, provider adapters and documented MCP/API connections.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

## Prices and included usage

Pricing checked: 2026-11-16

SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

### SDK / Source

SDK source code without a stated usage fee; model, hosting, storage and optional cloud costs are separate.

Documented product scope; verify external services and their billing separately.

Price source: https://github.com/anthropics/claude-agent-sdk-python

Pricing details: https://github.com/anthropics/claude-agent-sdk-python

## Operation & oversight

Based on public provider documentation. Assessments are editorial inferences from the stated properties. Actual time requirements and reliability have not been measured.

Deployment covered: Claude Agent SDK · Documented execution scope
Sources reviewed: 2026-11-16

### Files and working state

Documented with conditions: Sessions are local JSONL transcripts; resume and fork restore conversation history. Files require a separate checkpoint strategy.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Sign-ins

Documented with conditions: Install the SDK, configure model access and tools, and set up persistence and operations.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Starting further runs

Documented with conditions: The custom application or an external scheduler starts further runs.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Human intervention

Documented with conditions: Integrate approvals, cancellation and questions into the custom interface and tool logic.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Detecting errors

Documented with conditions: Evaluate tool errors and execution results; use product-specific logs and traces for review.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Resuming after failures

Documented with conditions: Stored context supports further work. Verify automatic retries of failed actions and side effects separately.

Evidence: https://github.com/anthropics/claude-agent-sdk-python

### Editorial assessment

Editorial operational assessment; reliable resumption depends on configuration and executed tools.

## Memory and conversation continuity

Scope: Claude Agent SDK · documented product scope
Sources accessed: 2026-11-16

Sessions are local JSONL transcripts; resume and fork restore conversation history. Files require a separate checkpoint strategy.

### Storage and scope

Partly documented: Sessions are local JSONL transcripts; resume and fork restore conversation history. Files require a separate checkpoint strategy.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

### Selection and timing

Partly documented: Conversation history is appended in the active client; project memory can be loaded through Claude Code configuration.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

### Inspect, edit and delete

Partly documented: SDK functions list and read sessions; retention limits and custom management interfaces are application responsibilities.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

### Agent and channel boundaries

Partly documented: Session ID and working directory control association; configure multi-user isolation in your own service.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

### Retrieval

Partly documented: Resume loads the selected history; fork starts a separate conversation branch.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

### Session reset and compaction

Partly documented: Persisted transcripts allow continuation after restart; cross-host resumption requires access to stored sessions.

- [Claude Agent SDK · Memory / Context](https://code.claude.com/docs/en/agent-sdk/sessions)

## Context

Development, permissions and operations are the responsibility of the custom application. Documented components must be combined and verified for the use case.

Official sources checked. Features are provider claims; examples and suitability are editorial. Independent product testing is pending.

## Sources

- https://code.claude.com/docs/en/agent-sdk/overview

- https://github.com/anthropics/claude-agent-sdk-python

- https://code.claude.com/docs/en/agent-sdk/sessions

## Provider

Anthropic provides the Claude Code agent loop as a library through the Claude Agent SDK. Repository on 2026-11-16: 8,563 stars, 1,433 forks; license identifier MIT; last push 2026-11-14.

- Operator: Anthropic
- Organization: Software project and provider
- Website: https://code.claude.com/docs/en/agent-sdk/overview
- Reviewed: 2026-11-16

- Provider source: https://code.claude.com/docs/en/agent-sdk/overview

- Provider source: https://github.com/anthropics/claude-agent-sdk-python

[Sources and method](https://ki-agentenkompass.de/en/sources/)
