Skip to content
BENIBIX Learn

claude-agent-sdk Package

AI🧩 Claude Agent SDKAgent SDK Basics

Also known as @anthropic-ai/claude-agent-sdk, pip install claude-agent-sdk, Claude Agent SDK claude-agent-sdk Package

The package you install to get the kit, from npm or PyPI.

Think of it like

It is like the box a toy comes in. You open the box to get the toy.

Example

Leo starts a new Python project for his agent. He runs pip install claude-agent-sdk and sets his API key.

Why it matters

The right name gets you the current SDK. An old name gets a package that no longer moves.

Definition

claude-agent-sdk is the package you install to use the Agent SDK. You get it from npm for TypeScript, on Node 18.14 or later. You get it from PyPI for Python, on Python 3.10 or later. The old names are from before the rename.

Example code

console
npm install @anthropic-ai/claude-agent-sdk
pip install claude-agent-sdk
Install the SDK for TypeScript, or for Python.

Common mistake

Installing claude-code-sdk from an old guide. That is the name from before the rename.

Key takeaways

  1. 1
    npm for TypeScript. @anthropic-ai/claude-agent-sdk.
  2. 2
    PyPI for Python. claude-agent-sdk.
  3. 3
    Old names are gone. From before the rename.