Menu

Install the Claude Agent SDK for Python and TypeScript
📰

Install the Claude Agent SDK for Python and TypeScript

DEV Community: typescript·Abdullah Almania·10 days ago
#S2pczxuV
#devtotypescript#devto#dev#claude#agent
Long article (815 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on ClueTrove .

Install the Claude Agent SDK with npm install @anthropic-ai/claude-agent-sdk for TypeScript or pip install claude-agent-sdk for Python, then set ANTHROPIC_API_KEY. You need Node.js 18+ or Python 3.10+, and most installs need no separate Claude Code.

The SDK gives you Claude Code’s “tools, agent loop, and context management” as a library. Anthropic’s docs list built-in tools, hooks, subagents, MCP, permissions, sessions, skills and plugins. Facts below come from Anthropic’s docs checked on 20 October 2026. I did not run the SDK.

The short answer

What it is: a library that runs Claude Code’s agent loop and tools from your own code.

Languages: Python and TypeScript. For anything else, run the CLI as a subprocess with -p –output-format json.

Install: npm install @anthropic-ai/claude-agent-sdk or pip install claude-agent-sdk (uv add claude-agent-sdk also works).

Auth: set ANTHROPIC_API_KEY.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.