← 返回列表

claude-code-sdk-ts

Claude Code 开发与运行时 低风险 已归档

流畅、可链式调用的TypeScript SDK:配置模型、启用工具、流式事件,然后通过.asText()或.allowTools('Read', 'Write')一次调用获取文本、JSON、运行详情或token统计。多级日志以及实时的onMessage/onToolUse回调提供深度、兼容CLI的可观测性。

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.

怎么安装

Claude Code git clone https://github.com/instantlyeasy/claude-code-sdk-ts ~/.claude/skills/claude-code-sdk-ts

简介

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…

推荐参考

65 工具本身 · 参考星标、下载量、最近更新、安全检查和文档情况
– 用户关注 · 参考最近的查看、安装命令复制和外链访问
65 推荐程度
0访问
0独立访客
0复制安装命令
0下载点击
0外链跳转

信息

协议
MIT
语言
TypeScript
GitHub 星标
207
月下载
855
最近更新
2026-08-14
创建于
2025-06-21

链接

基础安全检查

检查结果
仓库已归档
收录来源
curated:LangGPT/awesome-claude-code
主题标签
claude, claude-code, claude-code-sdk, claude-code-typescript, claude-max

同类推荐

MCP 服务器
推荐100

langfuse

langfuse/langfuse

🪢 开源AI工程平台:LLM评估、可观测性、指标、提示管理、游乐场、数据集。与OpenTelemetry、LangChain、OpenAI SDK、LiteLLM等集成。🍊YC W23

☆ 35.0K ↓ 6.7M 开发与运行时 ↗
Claude Code
推荐92

claude-code-templates

davila7/claude-code-templates

用于配置和监控Claude Code的CLI工具。

☆ 31.7K ↓ 10.7K 开发与运行时 ↗
MCP 服务器
推荐86

semiotic

nteract/semiotic

用于流处理、网络和AI辅助开发的React数据可视化库

☆ 2.7K ↓ 25.0K 开发与运行时 ↗
DeepSeek Harness 精选
推荐84

dsh-desktop

dataelement/dsh-desktop

DeepSeek Harness 桌面版

☆ 9.1K ↓ 930 开发与运行时 ↗