claude-code-sdk-ts
Fluent, chainable TypeScript SDK: configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call via .asText() or .allowTools('Read', 'Write'). Multi-level logging plus live onMessage/onToolUse callbacks give deep, CLI-compatible observability.
流畅、可链式调用的TypeScript SDK:配置模型、启用工具、流式事件,然后通过.asText()或.allowTools('Read', 'Write')一次调用获取文本、JSON、运行详情或token统计。多级日志以及实时的onMessage/onToolUse回调提供深度、兼容CLI的可观测性。
How to install
git clone https://github.com/instantlyeasy/claude-code-sdk-ts ~/.claude/skills/claude-code-sdk-ts About
Claude Code SDK for TypeScript Unofficial TypeScript SDK for Claude Code - the powerful CLI tool for interacting with Claude. **✨ What's New in v0.4.0:** 🎬 **Interactive streaming session** with working visual typewriter effects 🛡️ **Typed error handling** you catch with instanceof — no error categories, no wrappers ⏱️ **Timeouts and edit-acceptance that actually take effect** — withTimeout() throws a real TimeoutError, acceptEdits() maps to the CLI's --permission-mode 🔧 **Production-ready examples** that actually work as advertised **Note**: For the classic async generator API, see Classic…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 207
- mo. downloads
- 855
- Last push
- 2026-08-14
- Created
- 2025-06-21
Basic safety check
- Findings
- 仓库已归档
- Sources
- curated:LangGPT/awesome-claude-code
- Topics
- claude, claude-code, claude-code-sdk, claude-code-typescript, claude-max
Related plugins
langfuse
langfuse/langfuse
🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
claude-code-templates
davila7/claude-code-templates
CLI tool for configuring and monitoring Claude Code
semiotic
nteract/semiotic
React data visualization library for streaming, networks, and AI-assisted development
dsh-desktop
dataelement/dsh-desktop
DSHDesktop:DeepSeek Harness Desktop / DeepSeek Harness 桌面版