本地 AI 代理运行时

Paean Claw

你的专属 AI 代理,本地运行。仅 477 行代码。支持任何 LLM 提供商、MCP 工具、Web PWA + Telegram。极简、完全可定制、数据本地优先。

$bunx paeanclaw

或全局安装

npm install -g paeanclawbun install -g paeanclaw

极致精简

477
Lines of Code
5
Source Files
2
Runtime Deps
~20ms
Bun Startup

Any LLM Provider

Works with any OpenAI-compatible API — OpenAI, Claude, Gemini, Ollama, DeepSeek, Paean AI, or your own endpoint.

MCP Tool Ecosystem

Connect to any MCP server for filesystem access, web search, API integrations, and custom tool calling. Full Model Context Protocol support built in.

PWA + Telegram

Access your agent from any device via the installable web PWA, or interact through Telegram — in private and group chats.

Bun-First Runtime

Built-in SQLite via bun:sqlite eliminates all native dependencies. Zero compile, ~20ms startup, 2x faster than Node.js.

Local-First Data

All data stored in local SQLite. No cloud lock-in, no telemetry, no data leaving your machine unless you choose to.

AI-Hackable

The entire source fits in a single LLM context window. Fork it, customize with AI assistance, and make it yours.

架构

src/index.ts~140 lines
src/agent.ts~130 lines
src/store.ts~90 lines
src/mcp.ts~60 lines
src/telegram.ts~60 lines

API

POST/api/chat
GET/api/conversations
GET/api/messages

Paean Claw

你的专属 AI 代理,本地运行。仅 477 行代码。支持任何 LLM 提供商、MCP 工具、Web PWA + Telegram。极简、完全可定制、数据本地优先。