Skip to content
BENIBIX Learn

Claude Agent SDK

AI🧩 Claude Agent SDKAgent SDK Basics

Also known as Claude Code SDK, Anthropic Agent SDK

A kit that puts the Claude Code agent inside your own app.

Think of it like

It is like a top cook who comes to cook in your own home.

Example

Mia's team wants a bot that fixes failing tests on every pull request. They build it with the Agent SDK instead of writing the tool loop themselves.

Why it matters

Building an agent from scratch means writing the loop, the tools and the safety checks. The SDK hands you all three.

Definition

The Claude Agent SDK is a library for Python and TypeScript that runs Claude Code's agent inside your own app. It gives your code the same tools, agent loop, permissions, sessions and hooks that Claude Code has. The SDK ships with a Claude Code binary and runs it for you. It used to be called the Claude Code SDK.
Where the SDK sits between your app and Claude.

Common mistake

Thinking it is the same as the client SDK for the API. That one sends single requests, and you write the loop.

Key takeaways

  1. 1
    Claude Code as a library. Python or TypeScript.
  2. 2
    Same loop and tools. Same safety.
  3. 3
    Runs a Claude Code process. Bundled.

Compare