CLI Tools2026年4月6日·1 分钟阅读

Claude Agent SDK — Build Agents with Claude Code Power

Anthropic's official TypeScript SDK for building AI agents with Claude Code's full capabilities — file editing, command execution, codebase understanding, and complex workflows. npm package.

介绍

Claude Agent SDK is Anthropic's official TypeScript SDK, giving you the same tools, agent loop, and context management that power Claude Code. With 1,200+ GitHub stars, it lets you build autonomous agents that understand codebases, edit files, run commands, search the web, and execute multi-step workflows. Formerly the Claude Code SDK — renamed to reflect its broader use.

Best for building custom AI agents that need filesystem access, command execution, and codebase understanding. Requirements: Node.js 18+, Anthropic API key.


Core Features

  • Codebase understanding, file ops, command execution, web search, multi-step workflows, structured output, session management
  • Exposes the 53 tools Claude Code uses internally

FAQ

Q: What is Claude Agent SDK? A: Anthropic's official SDK that wraps Claude Code's full capabilities (file editing, command execution, codebase understanding) as a programmable API.

Q: Is it free? A: The SDK is free to install; you pay for Anthropic API usage.


🙏

来源与感谢

Created by Anthropic.

claude-agent-sdk-typescript — ⭐ 1,200+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产