Agent Runtime / Sandbox 细分选型地图
已有 agent-runtime-sandbox-project-map 做了完整分层。这页面向选型:你需要的是 sandbox primitive、E2B-like sandbox 平台、session API、安全 runtime、多 Agent 平台,还是 AI gateway。
GitHub 当前核验
截至 2026-06-15 通过 GitHub API 重新核验:
| 项目 | 仓库 | 最近 push | stars | 主语言 | 当前定位 |
|---|---|---|---|---|---|
| agent-sandbox | https://github.com/kubernetes-sigs/agent-sandbox | 2026-06-10 | 2.8k | Go | K8s-native isolated stateful singleton workload |
| openkruise-agents | https://github.com/openkruise/agents | 2026-06-12 | 202 | Go | K8s-native agent sandbox lifecycle platform |
| agentcube | https://github.com/volcano-sh/agentcube | 2026-06-08 | 147 | Go | Sandbox session orchestration |
| OpenShell | https://github.com/NVIDIA/OpenShell | 2026-06-11 | 7k | Rust | Safe private runtime for autonomous agents |
| NemoClaw | https://github.com/NVIDIA/NemoClaw | 2026-06-11 | 21k | TypeScript | OpenShell 内运行 Hermes/OpenClaw |
| HiClaw | https://github.com/agentscope-ai/HiClaw | 2026-06-10 | 4.8k | Go | Matrix + K8s 的 collaborative multi-agent OS |
| AgentScope | https://github.com/agentscope-ai/agentscope | 2026-06-09 | 26k | Python | 可观测、可理解、可信任的 Agent 构建框架 |
| agentgateway | https://github.com/agentgateway/agentgateway | 2026-06-10 | 3.2k | Rust | AI agents / MCP servers 的 agentic proxy |
分层选择
| 你要解决的问题 | 首选 | 不适合 |
|---|---|---|
| K8s 上安全运行一个有状态 Agent 容器 | agent-sandbox | 需要完整产品 API、IM 协作或工具治理 |
| 自托管 E2B-like sandbox service | openkruise-agents | 只想要最小 CRD 或不能接受快速演进的 manager/gateway/runtime 组合 |
| 把 sandbox 包成 session/invocation API | agentcube | 不使用 Kubernetes 或不想引入 Redis/session registry |
| 本地/私有强安全 Agent runtime | OpenShell | 只需要普通容器隔离 |
| 给 OpenShell 配套 agent onboarding | NemoClaw | 只想写一个 Agent 应用框架 |
| 多 Agent 协作 + 人在回路 | HiClaw | 不想引入 Matrix / K8s operator |
| Python Agent 应用服务化 | AgentScope | 需要强 sandbox 原语 |
| LLM/MCP/A2A 流量治理 | agentgateway | 需要运行 Agent 进程本身 |
架构边界
Agent framework / app
↓
session orchestration
↓
sandbox lifecycle primitive
↓
runtime enforcement
↓
network / credential / tool gateway
agent-sandbox 处在 sandbox lifecycle primitive;openkruise-agents 处在 sandbox platform layer,把 CRD、E2B API、Envoy route、runtime/CSI/identity 扩展组合起来;OpenShell 处在 runtime enforcement;agentgateway 处在 network/tool gateway;HiClaw 和 agentcube 是上层产品化编排;AgentScope 是应用框架层。
关键对比
| 维度 | agent-sandbox | openkruise-agents | OpenShell | agentcube | HiClaw | agentgateway |
|---|---|---|---|---|---|---|
| 控制面 | K8s controller | sandbox-manager + K8s controllers | Gateway desired state | Router + WorkloadManager | K8s operator + Matrix/Higress | Gateway API/xDS |
| 数据面 | Pod/PVC/Service | Envoy ext_proc / Go filter + Sandbox Pod | supervisor + policy proxy | Sandbox pod + PicoD | Worker containers + Matrix rooms | Rust L7 proxy |
| 状态 | K8s API + PVC | K8s API + route registry + key storage | object store + sandbox state | Redis/ValKey session registry | etcd/kine + Matrix + MinIO | route/backend/policy stores |
| 凭据 | 交给上层 | E2B API key storage + security token propagation | gateway 托管 provider key | Router JWT / workload auth | Higress 托管真实凭据 | backend secret / policy |
| 用户入口 | CRD / SDK | E2B API + CRD | CLI / SDK | HTTP / Python SDK / Dify | Matrix / CRD / CLI | CRD / Gateway / UI |
采用建议
- 做“Agent 运行在 K8s 里的基础设施”:先看 agent-sandbox;需要 E2B-compatible API、warm pool、路由和 runtime 扩展时看 openkruise-agents;需要 invocation/session 产品 API 时再看 agentcube。
- 做“安全私有 Agent 运行时”:先看 OpenShell,再看 NemoClaw 如何编排。
- 做“团队协作 Agent 平台”:HiClaw 的 Matrix-first 协作面比普通 Agent framework 更贴近人类介入。
- 做“工具/模型访问治理”:agentgateway 应作为 sandbox 外侧的流量控制点。