Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
K

kode-agent-sdk

> 编程语言
Open source

Open runtime for building Claude Code & Manus like Agent Product

388 stars0 likes1 views
WebsiteGitHub

About

Open runtime for building Claude Code & Manus like Agent Product

KODE SDK

English | 中文

Event-driven, long-running AI Agent framework with enterprise-grade persistence and multi-agent collaboration.

Features

  • Event-Driven Architecture - Three-channel system (Progress/Control/Monitor) for clean separation of concerns
  • Long-Running & Resumable - Seven-stage checkpoints with Safe-Fork-Point for crash recovery
  • Multi-Agent Collaboration - AgentPool, Room messaging, and task delegation
  • Enterprise Persistence - SQLite/PostgreSQL support with unified WAL
  • Cloud Sandbox - E2B and OpenSandbox integration for isolated remote code execution
  • Extensible Ecosystem - MCP tools, custom Providers, Skills system

Quick Start

One-liner setup (install dependencies and build):

bash
./quickstart.sh

Or install as a dependency:

bash
npm install @shareai-lab/kode-sdk

Set environment variables:

Linux / macOS

bash
export ANTHROPIC_API_KEY=sk-...
export ANTHROPIC_MODEL_ID=claude-sonnet-4-20250514  # optional, default: claude-sonnet-4-20250514
export ANTHROPIC_BASE_URL=https://api.anthropic.com  # optional, default: https://api.anthropic.com

Windows (PowerShell)

powershell
$env:ANTHROPIC_API_KEY="sk-..."
$env:ANTHROPIC_MODEL_ID="claude-sonnet-4-20250514"  # optional, default: claude-sonnet-4-20250514
$env:ANTHROPIC_BASE_URL="https://api.anthropic.com"  # optional, default: https://api.anthropic.com

Minimal example:

…

Run examples:

bash
npm run example:getting-started    # Minimal chat
npm run example:agent-inbox        # Event-driven inbox
npm run example:approval           # Tool approval workflow
npm run example:room               # Multi-agent collaboration
npm run example:opensandbox        # OpenSandbox basic usage

OpenSandbox quick config:

bash
export OPEN_SANDBOX_API_KEY=...                      # optional (required only when auth is enabled)
export OPEN_SANDBOX_ENDPOINT=http://127.0.0.1:8080  # optional
export OPEN_SANDBOX_IMAGE=ubuntu                     # optional

Architecture for Scale

For production deployments serving many users, we recommend the Worker Microservice Pattern:

…

Key Principles:

  1. API layer is stateless - Can run on serverless
  2. Workers are stateful - Run KODE SDK, need long-running processes
  3. Store is shared - Single source of truth for agent state
  4. Queue decouples - Request handling from agent execution

See docs/en/guides/architecture.md for detailed deployment guides.

Supported Providers

Provider Streaming Tools Reasoning Files
Anthropic ✅ ✅ ✅ Extended Thinking ✅
OpenAI ✅ ✅ ✅ ✅
Gemini ✅ ✅ ✅ ✅

Note: OpenAI-compatible services (DeepSeek, GLM, Qwen, Minimax, OpenRouter, etc.) can be used via OpenAIProvider with custom baseURL configuration. See Providers Guide for details.

Documentation

Section Description
Getting Started
Installation Setup and configuration
Quickstart Build your first Agent
Concepts Core concepts explained
Guides
Events Three-channel event system
Tools Built-in tools & custom tools
E2B Sandbox E2B cloud sandbox integration
OpenSandbox OpenSandbox self-hosted sandbox integration
Skills Skills system for reusable prompts
Providers Model provider configuration
Database SQLite/PostgreSQL persistence
Resume & Fork Crash recovery & branching
Project
Contribution Guide How to contribute
Reference
API Reference Complete API documentation
Examples All examples explained

License

MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言