百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

kode-agent-sdk

> 编程语言
开源

打开运行时,用于构建类似代理产品的 Claude 代码和文档

388 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

打开运行时,用于构建类似代理产品的 Claude 代码和文档

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

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