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 ★
- MCP Edit — tilth_write replaces the host Edit and Write tools 349 ★
- Post Everywhere — Publish one piece of content — text, image, or video — to every connected platform (or a chosen subset) in a s 212 ★
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
Iran Quake MCP
Unofficial read-only MCP server for earthquakes in Iran: latest quakes, search, strongest events, event detail
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)
JavaScript Frontend
Vanilla JavaScript in the browser: modules, state, rendering, events, fetch, storage, accessibility, speed
Hookify Configure
Enable or disable hookify rules interactively
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.
SDK Adapter Reviewer
Reviews SDK integration layer code - validates stream event conversion, hook handling, client lifecycle, and e