Open Agent SDK TypeScript — Development skill for Claude Code
Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source.
How to install Open Agent SDK TypeScript
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open codeany-ai/open-agent-sdk-typescript and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Open Agent SDK TypeScript does
Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source.
Alternatives in Development
- Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★
- Vibekit — A simple SDK for safely running Codex, Gemini CLI, and Claude Code in a secure sandbox 1.7k ★
- Dao Code — Open-source TypeScript terminal coding agent for DeepSeek-V4 — builds on DeepSeek's strong price-performance a 1.3k ★
README
Open Agent SDK (TypeScript)
[](https://www.npmjs.com/package/@codeany/open-agent-sdk) [](https://nodejs.org) [](./LICENSE)
Open-source Agent SDK that runs the full agent loop **in-process** — no subprocess or CLI required. Supports both **Anthropic** and **OpenAI-compatible** APIs. Deploy anywhere: cloud, serverless, Docker, CI/CD.
Also available in **Go**: [open-agent-sdk-go](https://github.com/codeany-ai/open-agent-sdk-go)
Get started
npm install @codeany/open-agent-sdk
Set your API key:
export CODEANY_API_KEY=your-api-key
OpenAI-compatible models
Works with OpenAI, DeepSeek, Qwen, Mistral, or any OpenAI-compatible endpoint:
export CODEANY_API_TYPE=openai-completions
export CODEANY_API_KEY=sk-...
export CODEANY_BASE_URL=https://api.openai.com/v1
export CODEANY_MODEL=gpt-4o
Third-party Anthropic-compatible providers
export CODEANY_BASE_URL=https://openrouter.ai/api
export CODEANY_API_KEY=sk-or-...
export CODEANY_MODEL=anthropic/claude-sonnet-4
Quick start
One-shot query (streaming)
import { query } from "@codeany/open-agent-sdk";
for await (const message of query({
prompt: "Read package.json and tell me the project name.",
options: {
allowedTools: ["Read", "Glob"],
permissionMode: "bypassPermissions",
},
})) {
if (message.type === "assistant") {
for (const block of message.message.content) {
if ("text" in block) console.log(block.text);
}
}
}
Simple blocking prompt
import { createAgent } from "@codeany/open-agent-sdk";
const agent = createAgent({ model: "claude-sonnet-4-6" });
const result = await agent.prompt("What files are in this project?");
console.log(result.text);
console.log(
`Turns: ${result.num_turns}, Token
Related Skills
Open Agent SDK Python
Open-source Agent SDK for Python. Runs the full agent loop in-process — no CLI required.
Claude Code Agent SDK TypeScript Tracker
Tracking the update of source code of claude code agent sdk
OpenSail
OpenSail is the open-source alternative to Codex App, Claude Desktop, Cursor, and Cowork for agentic software
Opencode X
Open-source Claude Code alternative. Provider-agnostic, MIT licensed. Native Claude Code hook/plugin compatibi
Omentir
Open Source HeyReach & Gojiberry alternative
Openquiz
The open-source, 100% free alternative to Quizlet and Anki. Generate SAT & language vocab quizzes instantly us
Related Agents
🦀 Claw CR
Der Open-Source-Coding-Agent, in Rust gebaut. Alternative zu ClaudeCode Status Language
Cowork Comparison Lead
Kortix is open source. It is the open-source AI Management System and the leading open-source alternative to C
Claudable
by Ethan Park - Claudable is an open-source web builder that leverages local CLI agents, such as Claude Code a