https://github.com/anthropics/claude-agent-sdk-typescript
https://github.com/anthropics/claude-agent-sdk-typescript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anthropics/claude-agent-sdk-typescript
- Owner: anthropics
- Created: 2025-09-27T20:21:19.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-05-06T07:47:20.000Z (about 1 month ago)
- Last Synced: 2026-05-06T09:40:25.977Z (about 1 month ago)
- Language: Shell
- Size: 142 KB
- Stars: 1,372
- Watchers: 11
- Forks: 154
- Open Issues: 121
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-claude - Claude Agent SDK (TypeScript)
- awesome-claude-code - anthropics/claude-agent-sdk-typescript - agent-sdk-typescript?style=flat-square&logo=github) | TypeScript SDK to build autonomous agents with Claude Code's agentic capabilities | (Official)
- awesome-rainmana - anthropics/claude-agent-sdk-typescript - (Shell)
- awesome-ai-coding-agent-tools - Claude Agent SDK (TypeScript) - Anthropic's TypeScript SDK for building agents on the Claude Code agent loop. (Agent SDKs & Frameworks / Official Vendor SDKs)
README
# Claude Agent SDK
 [![npm]](https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk)
[npm]: https://img.shields.io/npm/v/@anthropic-ai/claude-agent-sdk.svg?style=flat-square
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](https://docs.claude.com/en/api/agent-sdk/overview)**.
## Get started
Install the Claude Agent SDK:
```sh
npm install @anthropic-ai/claude-agent-sdk
```
## Migrating from the Claude Code SDK
The Claude Code SDK is now the Claude Agent SDK. Please check out the [migration guide](https://docs.claude.com/en/docs/claude-code/sdk/migration-guide) for details on breaking changes.
## Reporting Bugs
We welcome your feedback. File a [GitHub issue](https://github.com/anthropics/claude-agent-sdk-typescript/issues) to report bugs or request features.
## Connect on Discord
Join the [Claude Developers Discord](https://anthropic.com/discord) to connect with other developers building with the Claude Agent SDK. Get help, share feedback, and discuss your projects with the community.
## Data collection, usage, and retention
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.
### How we use your data
See our [data usage policies](https://docs.anthropic.com/en/docs/claude-code/data-usage).
### Privacy safeguards
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](https://www.anthropic.com/legal/commercial-terms) and [Privacy Policy](https://www.anthropic.com/legal/privacy).
## License and terms
Use of this SDK is governed by Anthropic's [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms), including when you use it to power products and services that you make available to your own customers and end users, except to the extent a specific component or dependency is covered by a different license as indicated in that component's LICENSE file.