Skip to content

Open-source in-process agent SDK, API-compatible with the official Claude agent SDK, running without a CLI subprocess.

CCM score
54 of 100
skills.sh installs
701
GitHub stars
99
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers building and running autonomous agents in TypeScript: streaming query(), reusable createAgent() sessions, and session history management
  • Includes a configurable options set for model, working directory, tool allowlists, permissionMode, maxTurns, maxBudgetUsd, MCP servers, subagents, and lifecycle hooks
  • Supports third-party providers such as OpenRouter through ANTHROPIC_BASE_URL, and custom tools with a canUseTool permission callback
  • Designed for cloud servers, serverless functions, Docker containers, and CI/CD pipelines where a local CLI is unavailable

Install

$ npx -y skills add reason-machines/trending-skills --skill open-agent-sdk -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Open Agent SDK

Skill by ara.so — Daily 2026 Skills collection.

Open Agent SDK (@shipany/open-agent-sdk) is a fully open-source, in-process AI agent framework for TypeScript/Node.js. It runs the complete Claude Code agent engine directly — no local CLI subprocess required — making it suitable for cloud servers, serverless functions, Docker containers, and CI/CD pipelines. It is API-compatible with @anthropic-ai/claude-agent-sdk.


Installation

npm install @shipany/open-agent-sdk

Requires Node.js 18+.


Authentication & Configuration

Set the Anthropic API key as an environment variable:

export ANTHROPIC_API_KEY=your-api-key

Or use a third-party provider (e.g. OpenRouter):

export ANTHROPIC_BASE_URL=https://openrouter.ai/api
export ANTHROPIC_API_KEY=your-openrouter-key
export ANTHROPIC_MODEL=anthropic/claude-sonnet-4-6

These can also be passed programmatically via options.env or apiKey/baseURL in createAgent().


Core API

query({ prompt, options }) — Streaming, compatible with official SDK

Details

Repository
github.com/reason-machines/trending-skills
Category
AI Agents & LLM Apps
First seen
May 16, 2026

More from reason-machines/trending-skills

All 251

Similar to Open Agent Sdk

More AI Agents & LLM Apps