The Claude Agent SDK enables you to programmatically build AI agents with Claude Code's capabilities. Create autonomous agents that can understand codebases, edit files, run commands, and execute complex workflows.
Learn more in the official documentation.
Install the Claude Agent SDK:
npm install @anthropic-ai/claude-agent-sdk
The Claude Code SDK is now the Claude Agent SDK. Please check out the migration guide for details on breaking changes.
We welcome your feedback. File a GitHub issue to report bugs or request features.
Join the Claude Developers Discord to connect with other developers building with the Claude Agent SDK. Get help, share feedback, and discuss your projects with the community.
When you use the Claude Agent SDK, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command.
See our data usage policies.
We have implemented several safeguards to protect your data, including limited retention periods for sensitive information, restricted access to user session data, and clear policies against using feedback for model training.
For full details, please review our Commercial Terms of Service and Privacy Policy.