</>MCP Agents Market
Agent

open-agent-sdk-typescript

by codeany-ai2.7kTypeScriptUpdated 2026-07-26

Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source

Open Agent SDK is a TypeScript framework for building autonomous AI agents that run entirely in-process without CLI dependencies. It supports both Anthropic and OpenAI-compatible APIs, orchestrates 35+ built-in tools (file operations, shell commands, web access), integrates MCP servers, and manages multi-turn conversations with session persistence. The SDK offers flexible deployment to cloud, serverless, Docker, or CI/CD environments, and includes features like subagent spawning, custom tool creation, lifecycle hooks, and a built-in web chat interface for testing.

Key Features

In-process agent execution with no subprocess or CLI dependencies for flexible deployment
Dual LLM provider support: Anthropic Claude and OpenAI-compatible APIs (GPT, DeepSeek, Qwen, Mistral)
35+ built-in tools including Bash execution, file operations (Read/Write/Edit), web search, Jupyter notebooks, and LSP support
Native MCP server integration via stdio, SSE, HTTP, or in-process SDK connections
Subagent system for delegating specialized tasks to isolated agent instances with scoped tools
Custom tool creation using Zod schemas or low-level definitions with full TypeScript support
Session persistence with resume, fork, and branching capabilities for conversation management
Lifecycle hook system with 20 events (PreToolUse, PostToolUse, PermissionRequest, etc.) for workflow customization

Use Cases

  • 01Building autonomous code analysis agents that read project files, search codebases, and provide refactoring suggestions
  • 02Creating multi-agent teams where specialized subagents handle code review, testing, and debugging in parallel
  • 03Integrating AI capabilities into serverless functions or CI/CD pipelines without subprocess overhead
  • 04Developing read-only auditing agents with tool restrictions and permission controls for security-sensitive tasks
  • 05Prototyping conversational AI assistants with custom tools and MCP server integrations using the built-in web UI
  • 06Building automated workflow agents that execute shell commands, manipulate files, and fetch web content across multiple turns

Related Agents

View more

open-agent-sdk-typescript — FAQ

What is open-agent-sdk-typescript?+

Open Agent SDK is a TypeScript library for building autonomous AI agents that execute tool calls, manage conversations, and integrate MCP servers entirely in-process without spawning CLI subprocesses. It supports both Anthropic Claude and OpenAI-compatible models with 35+ built-in tools.

How do I install open-agent-sdk-typescript?+

Install via npm with 'npm install @codeany/open-agent-sdk', then set your API key as an environment variable (CODEANY_API_KEY). The SDK requires Node.js 18 or higher and works immediately after installation.

Which AI models does this agent SDK support?+

The SDK supports Anthropic Claude models (default: claude-sonnet-4-6) and any OpenAI-compatible API including GPT-4, DeepSeek, Qwen, and Mistral. You can also use third-party providers like OpenRouter by setting custom base URLs.

Do I need an API key to use open-agent-sdk-typescript?+

Yes, you must provide an API key via the CODEANY_API_KEY environment variable or pass it directly in the configuration. The key corresponds to your chosen LLM provider (Anthropic, OpenAI, or compatible service).

Is open-agent-sdk-typescript free and open source?+

Yes, the SDK is released under the MIT license and is completely open source. However, you will incur costs from your LLM provider (Anthropic, OpenAI, etc.) based on token usage.

Can I use open-agent-sdk-typescript with MCP servers?+

Yes, the SDK has native MCP integration supporting stdio, SSE, HTTP, and in-process SDK servers. You can connect external MCP servers or bundle custom tools into in-process MCP servers using the createSdkMcpServer function.

How do I install open-agent-sdk-typescript?+

Open the source repository on GitHub and follow its README. open-agent-sdk-typescript is a agent — MCP Agents Market links you directly to the official repo.

Is open-agent-sdk-typescript free?+

open-agent-sdk-typescript is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches