flue

活跃
GitHub TypeScript Apache-2.0

简介

Flue 是 Astro 团队推出的沙箱 Agent 框架,为 AI Agent 提供安全、可复现的代码执行环境。

核心特性

  • Astro 团队出品 — 知名开源团队的沙箱 Agent 框架
  • 安全代码执行 — 为 AI Agent 提供隔离环境
  • 可复现 — 每次执行环境一致,便于调试
  • TypeScript 优先 — 与 Node 生态无缝集成
  • 可观测 — 内置执行日志与产物捕获

适用场景

💡 为 TypeScript / Node 项目中的 Agent 提供沙箱
💡 在 CI 中安全运行 AI 生成的代码
💡 为多步骤 Agent 任务提供一致的执行环境
💡 构建可重现的 AI 编程工作流

快速开始

# 安装
npm install flue

# 在 Node 中启动沙箱
import { Flue } from "flue"
const sb = await Flue.create()
const result = await sb.exec("node -e 'console.log(2+2)'")
console.log(result.stdout) // "4"
await sb.close()

相关项目