智能代理SDK 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
智能代理SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
智能代理SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/TwillAI/agentbox-sdk
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"----sdk": {
"command": "npx",
"args": ["-y", "agentbox-sdk"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 智能代理SDK 执行以下任务... Claude: [自动调用 智能代理SDK MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"____sdk": {
"command": "npx",
"args": ["-y", "agentbox-sdk"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Run coding agents inside sandboxes. One API, any provider.
Unlike wrappers that shell out to CLIs in non-interactive mode (e.g. claude --print), AgentBox launches each agent as a server process inside the sandbox and communicates over WebSocket or HTTP. This preserves the full interactive capabilities of each agent — approval flows, tool-use control, streaming events.
import { Agent, Sandbox } from "agentbox-sdk";
const sandbox = new Sandbox("local-docker", {
workingDir: "/workspace",
image: process.env.IMAGE_ID!,
env: { ANTHROPIC_API_KEY: process.env.ANTHROPIC_API_KEY! },
});
await sandbox.findOrProvision();
const run = new Agent("claude-code", {
sandbox,
cwd: "/workspace",
approvalMode: "auto",
}).stream({
model: "sonnet",
input: "Create a hello world Express server in /workspace/server.ts",
});
for await (const event of run) {
if (event.type === "text.delta") process.stdout.write(event.delta);
}
await sandbox.delete();
Providers are mix-and-match:
claude-code, opencode, codexlocal-docker, e2b, modal, daytona, vercelSwap either one and your app code stays the same.
npm install agentbox-sdk
Requires Node >= 20. The agent CLI you want to use (claude, opencode, codex) should be installed inside your sandbox image.
AgentBox ships with built-in image presets. Build one for your sandbox provider:
npx agentbox image build --provider local-docker --preset browser-agent
This prints an image reference (a Docker tag, Modal image ID, E2B template, or Daytona snapshot depending on the provider). Set it as IMAGE_ID:
export IMAGE_ID=<printed value>
The examples/ directory has short, runnable scripts that each demonstrate one feature:
| Example | What it shows |
|---|---|
[basic.ts](./examples/basic.ts) | Minimal agent + sandbox |
[streaming.ts](./examples/streaming.ts) | Stream and handle events |
[interactive-approval.ts](./examples/interactive-approval.ts) | Approve tool calls from stdin |
[skills.ts](./examples/skills.ts) | Attach a GitHub skill |
[sub-agents.ts](./examples/sub-agents.ts) | Delegate to sub-agents |
[mcp-server.ts](./examples/mcp-server.ts) | Connect an MCP server |
[multimodal.ts](./examples/multimodal.ts) | Send images to the agent |
[custom-image.ts](./examples/custom-image.ts) | Build a custom sandbox image |
[cloud-sandbox.ts](./examples/cloud-sandbox.ts) | Use E2B, Modal, or Daytona |
[basic-vercel.ts](./examples/basic-vercel.ts) | Use a Vercel sandbox |
[git-clone.ts](./examples/git-clone.ts) | Clone a repo into the sandbox |
All examples import from "agentbox-sdk" like a normal dependency. Run them with:
npx tsx examples/basic.ts
import { Agent, Sandbox } from "agentbox-sdk"; // main entrypoint
import type { AgentRun } from "agentbox-sdk/agents"; // agent types
import type { CommandResult } from "agentbox-sdk/sandboxes"; // sandbox types
import type { NormalizedAgentEvent } from "agentbox-sdk/events"; // event types
高质量的开源MCP工具
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
经综合评估,智能代理SDK 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | agentbox-sdk |
| Topics | agentllmtypescript |
| GitHub | https://github.com/TwillAI/agentbox-sdk |
| 语言 | TypeScript |
收录时间:2026-05-28 · 更新时间:2026-05-28 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端