Claude Code SDK TS — Development skill for Claude Code
Configure models, enable tools, stream events, then fetch text, JSON, run details or token stats in one call via .asText() or .allowTools('Read', 'Write').
How to install Claude Code SDK TS
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open instantlyeasy/claude-code-sdk-ts and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code SDK TS does
[](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts) [](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts) [](https://opensource.org/licenses/MIT) [](https://www.typescriptlang.org/)
Alternatives in Development
- Connect — Fancy stream processing made operationally mundane 8608 114 1 8.6k ★
- Clear Code — See your claude code logs in clear details in your dashboard 2.1k ★
- MCP Edit — tilth_write replaces the host Edit and Write tools 349 ★
README
Claude Code SDK for TypeScript
[](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts) [](https://www.npmjs.com/package/@instantlyeasy/claude-code-sdk-ts) [](https://opensource.org/licenses/MIT) [](https://www.typescriptlang.org/) [](https://nodejs.org/)
Unofficial TypeScript SDK for [Claude Code](https://github.com/anthropics/claude-code) - the powerful CLI tool for interacting with Claude.
**✨ What's New in v0.3.3:**
- 🎬 Interactive streaming session with working visual typewriter effects
- 🛡️ Advanced error handling with retry strategies and typed errors
- 📊 Token streaming analysis with honest documentation about current behavior
- 🔧 Production-ready examples that actually work as advertised
**Note**: For the classic async generator API, see [Classic API Documentation](docs/CLASSIC_API.md).
Installation
npm install @instantlyeasy/claude-code-sdk-ts
# or
yarn add @instantlyeasy/claude-code-sdk-ts
# or
pnpm add @instantlyeasy/claude-code-sdk-ts
**Latest Version:** `v0.3.3` with enhanced features and working visual streaming!
**Prerequisites:**
- Node.js 18 or later
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code)
Quick Start
import { claude } from '@instantlyeasy/claude-code-sdk-ts';
// Simple query
const response = await claude()
.query('Say "Hello World!"')
.asText();
console.log(response); // "Hello World!"
Authentication
This SDK delegates all authentication to the Claude CLI:
# One-time setup - login with your Claude account
claude login
The SDK does not handle authentication directly. If you see authentication errors, authenticate using the Claude CLI first.
Core Features
🎯 Fluent API
Chain methods for clean, readable code:
const result = await claude()
.withModel('sonnet') // Choose model
.allowTools('Read', 'Write') // Configure permissions
...
Related Skills
Claude Code Hooks Integration Guide
This guide explains how to integrate the bridge app with Claude Code hooks to stream events to the monitoring
Codex Headless
Programmatically drive the real OpenAI Codex CLI in a PTY — structured events, live rollout-stream token strea
Follow
Stream live bridge events from a running Atomic session (what it's doing right now)
Claude Wire
TypeScript SDK for Claude Code - spawn, stream, and control the CLI programmatically
Hookify Configure
Enable or disable hookify rules interactively
Describe Image Skill
让无视觉能力的模型(如 DeepSeek v4)也能'看懂'图片 Enable vision‑incapable models (e.g., DeepSeek‑v4) to also "understand" image
Related Agents
Token Tracker
Logs token usage estimates for each agent run to .claude/token-stats.json. Call this after any agent completes
Events
Manage Datadog events including event submission, search, filtering, and custom event stream management.
Gear Master
D&D 5e equipment, armor, weapons, and magic items expert. Use PROACTIVELY when players shop for gear, ask abou