Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Open runtime for building Claude Code & Manus like Agent Product
| Date | Stars |
|---|---|
| 2026-07-31 | 387 |
| 2026-08-06 | 389 |
Today
+2 stars today
This week
— stars this week
This month
— stars this month
Momentum
8.0
growth rate 0.00%/day
# KODE SDK
[English](./README.md) | [中文](./README.zh-CN.md)
> 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](https://e2b.dev) 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:
<!-- tabs:start -->
#### **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
```
<!-- tabs:end -->
Minimal example:
```typescript
import { Agent, AnthropicProvider, JSONStore } from '@shareai-lab/kode-sdk';
const provider = new AnthropicProvider(
process.env.ANTHROPIC_API_KEY!,
process.env.ANTHROPIC_MODEL_ID
);
const agent = await Agent.create({
provider,
store: new JSONStore('./.kode'),
systemPrompt: 'You are a helpful assistant.'
});
// Subscribe to progress events
for await (const envelope of agent.subscribe(['progress'])) {
if (envelope.event.type === 'text_chunk') {
process.stdout.write(envelope.event.delta);
}
if (envelope.event.type === 'done') break;
}
await agent.send('Hello!');
```
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**:
```
+------------------+
| Frontend | Next.js / SvelteKit (Vercel OK)
+--------+---------+
|
+--------v---------+
| API Gateway | Auth, routing, queue push
+--------+---------+
|
+--------v---------+
| Message Queue | Redis / SQS / NATS
+--------+---------+
|
+--------------------+--------------------+
| | |
+--------v-------+ +--------v-------+ +--------v-------+
| Worker 1 | | Worker 2 | | Worker N |
| (KODE SDK) | | (KODE SDK) | | (KODE SDK) |
| Long-running | | Long-running | | Long-running |
+--------+-------+ +--------+-------+ +--------+-------+
| | |
+--------------------+--------------------+Excerpt of 6,317 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:81f46b8ffcf9bbcc, llm:description: 'Open runtime for building Claude Code & Manus like Agent Product' (repository description)
matched fp:81f46b8ffcf9bbcc, llm:description: 'Open runtime for building Claude Code & Manus like Agent Product' (repository description)
matched fp:81f46b8ffcf9bbcc, llm:description: 'Open runtime for building Claude Code & Manus like Agent Product' (repository description)