[{"data":1,"prerenderedAt":211},["ShallowReactive",2],{"project-\u002Fprojects\u002Fopen-claude-agent-sdk":3,"related-open-claude-agent-sdk":179,"news-open-claude-agent-sdk":180,"more-open-claude-agent-sdk":185},{"id":4,"title":5,"body":6,"coverLabel":27,"description":155,"detailImage":156,"extension":157,"featured":158,"github":159,"image":160,"imageFit":161,"links":162,"meta":166,"navigation":158,"order":41,"path":167,"platforms":168,"seo":169,"stem":170,"tags":171,"tech":173,"url":177,"__hash__":178},"projects\u002Fprojects\u002Fopen-claude-agent-sdk.md","open-claude-agent-sdk",{"type":7,"value":8,"toc":149},"minimark",[9,14,18,21,45,49,76,80,131,138,142,145],[10,11,13],"h2",{"id":12},"overview","Overview",[15,16,17],"p",{},"The official Claude Agent SDK ships minified JavaScript plus a Claude CLI binary for each platform. When an agent misbehaves, there is nothing useful to step through. This package keeps the same API and the same types, but the source is plain TypeScript and it talks to the Claude CLI you already have installed.",[15,19,20],{},"Switching is a one-line change:",[22,23,28],"pre",{"className":24,"code":25,"language":26,"meta":27,"style":27},"language-diff shiki shiki-themes github-light github-dark","- import { query } from '@anthropic-ai\u002Fclaude-agent-sdk';\n+ import { query } from 'open-claude-agent-sdk';\n","diff","",[29,30,31,39],"code",{"__ignoreMap":27},[32,33,36],"span",{"class":34,"line":35},"line",1,[32,37,38],{},"- import { query } from '@anthropic-ai\u002Fclaude-agent-sdk';\n",[32,40,42],{"class":34,"line":41},2,[32,43,44],{},"+ import { query } from 'open-claude-agent-sdk';\n",[10,46,48],{"id":47},"why-use-it","Why use it",[50,51,52,60,70],"ul",{},[53,54,55,59],"li",{},[56,57,58],"strong",{},"Debuggable",": breakpoints and source maps work, and coding agents can read the source too",[53,61,62,65,66,69],{},[56,63,64],{},"Small",": about 564 KB in ",[29,67,68],{},"node_modules",", compared with the official SDK's JavaScript plus a ~208 MB CLI binary per platform",[53,71,72,75],{},[56,73,74],{},"Type compatible",": it re-exports the official SDK's types, so existing code type-checks unchanged",[10,77,79],{"id":78},"what-it-supports","What it supports",[50,81,82,85,98,105,108,115,118],{},[53,83,84],{},"One-shot, multi-turn and streaming queries",[53,86,87,88,91,92,91,95],{},"Control methods: interrupt, close, ",[29,89,90],{},"setModel",", ",[29,93,94],{},"setPermissionMode",[29,96,97],{},"setMaxThinkingTokens",[53,99,100,101,104],{},"Structured outputs, extended thinking, system prompt presets and ",[29,102,103],{},"canUseTool"," permission callbacks",[53,106,107],{},"Sessions: resume, fork, continue and custom session IDs",[53,109,110,111,114],{},"MCP servers, both in-process (",[29,112,113],{},"createSdkMcpServer"," with Zod tools) and stdio, with reconnect and toggle controls",[53,116,117],{},"Subagents, hooks, skills, output styles and sandbox settings",[53,119,120,121,91,124,91,127,130],{},"Lightweight subpath exports (",[29,122,123],{},"\u002Fquery",[29,125,126],{},"\u002Fmcp",[29,128,129],{},"\u002Fstorage",") so you only load what you use",[15,132,133,134,137],{},"Not implemented yet: ",[29,135,136],{},"rewindFiles()"," and agent teams. The full status matrix is in the repository.",[10,139,141],{"id":140},"built-with","Built with",[15,143,144],{},"TypeScript on Bun, with integration and unit tests and three demo apps ported from the official SDK.",[146,147,148],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":27,"searchDepth":41,"depth":41,"links":150},[151,152,153,154],{"id":12,"depth":41,"text":13},{"id":47,"depth":41,"text":48},{"id":78,"depth":41,"text":79},{"id":140,"depth":41,"text":141},"Drop-in, open-source replacement for @anthropic-ai\u002Fclaude-agent-sdk. Readable TypeScript that runs on the Claude CLI you already have installed.","\u002Fimg\u002Fproducts\u002Fopen-claude-agent-sdk-detail.webp","md",true,"https:\u002F\u002Fgithub.com\u002Ffoksa\u002Fopen-claude-agent-sdk","\u002Fimg\u002Fproducts\u002Fopen-claude-agent-sdk-home.webp","contain",[163],{"label":164,"url":165},"npm","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fopen-claude-agent-sdk",{},"\u002Fprojects\u002Fopen-claude-agent-sdk","Node · Bun · CLI",{"title":5,"description":155},"projects\u002Fopen-claude-agent-sdk",[172],"ai",[174,175,176],"typescript","bun","mcp",null,"GD0liUIxqd7aCh2KncPT-FQeMQFXNL-Gd5A5GesNe1E",[],[181],{"path":182,"date":183,"title":184},"\u002Fblog\u002Fopen-claude-agent-sdk-0-50-0","2026-09-22","open-claude-agent-sdk 0.50.0 fixes broken clean installs",[186,191,192,197,202,206],{"path":187,"title":188,"description":189,"image":190,"imageFit":177,"coverLabel":177},"\u002Fprojects\u002Fcamera-video-converter","Camera Video Converter","Free, offline Android app that turns hard-to-share camera footage into standard 1080p MP4s, right on the phone.","\u002Fimg\u002Fproducts\u002Fcamera-video-converter.webp",{"path":167,"title":5,"description":155,"image":160,"imageFit":161,"coverLabel":27},{"path":193,"title":194,"description":195,"image":196,"imageFit":177,"coverLabel":177},"\u002Fprojects\u002Fyoutube-shorts-blocker","YouTube Shorts Blocker","A lightweight Chrome extension that hides YouTube Shorts everywhere and can redirect Shorts links.","\u002Fimg\u002Fproducts\u002Fyoutube-shorts-blocker.webp",{"path":198,"title":199,"description":200,"image":201,"imageFit":177,"coverLabel":177},"\u002Fprojects\u002Fsub2utf","sub2utf","Converts subtitle files (.srt) from legacy encodings to UTF-8 so Plex shows č, ć, š, đ and ž correctly.","\u002Fimg\u002Fproducts\u002Fsub2utf.webp",{"path":203,"title":204,"description":205,"image":177,"imageFit":177,"coverLabel":177},"\u002Fprojects\u002Fdocument-iteration-skill","document-iteration-skill","A lightweight markdown syntax for editing documents with Claude: leave feedback inline instead of asking it to regenerate the whole document.",{"path":207,"title":208,"description":209,"image":210,"imageFit":177,"coverLabel":177},"\u002Fprojects\u002Flitrpgvault","LitRPG Vault","A database of LitRPG and Progression Fantasy books: 250+ series with ratings, reading orders and audiobook links.","\u002Fimg\u002Fproducts\u002Flitrpgvault.webp",1790076223311]