# claude-agent-sdk Package

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

**Field:** Artificial Intelligence  
**Category:** Claude Agent SDK  
**Also known as:** @anthropic-ai/claude-agent-sdk, pip install claude-agent-sdk, Claude Agent SDK claude-agent-sdk Package

## Think of it like

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

## 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

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

## Example code

```console
npm install @anthropic-ai/claude-agent-sdk
pip install claude-agent-sdk
```

Install the SDK for TypeScript, or for Python.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [Claude Agent SDK](https://learn.benibix.com/term/ai/claude-agent-sdk)
- [Package Manager](https://learn.benibix.com/term/development/package-manager)
- [npm](https://learn.benibix.com/term/development/npm)
- [pip](https://learn.benibix.com/term/development/pip)

---

Source: https://learn.benibix.com/term/ai/claude-agent-sdk-package
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
