Flue 是 Astro 团队维护的 TypeScript Agent 框架:用带 'use agent' 指令的函数和 hooks 组合模型、工具、技能与沙箱,再通过 CLI 单次运行,或作为 Hono/Vite 服务部署到 Node.js、Cloudflare 和 CI。
来源:github.com/withastro/flue;https://flueframework.com/docs/guide/gettin… 查看 GitHub 仓库 → 📘 使用教程 →这些值只用于判断持续性。当前官方仓库已从早期 0.x 演进到 runtime 2.1.0,并把沙箱、持久运行、渠道和部署文档补成较完整的 Agent 运行时。
来源:github.com/withastro/flue;https://github.com/withastro/flue/releasesAgent 是带 'use agent' 指令的 TypeScript 函数,通过 useModel、useSandbox、useSkill 和 useTool 声明完整 harness。
来源:github.com/withastro/flue;https://flueframework.com/docs/guide/gettin…框架支持虚拟、本地和远程容器类沙箱;Node 的 local() 直接绑定宿主文件系统与 shell,因此必须按任务选择隔离级别。
来源:flueframework.com/docs/guide/node-target/;https://github.com/withastr…Flue 提供会话、durability、Agent 路由和 SDK;使用 Vite/Hono 可生成 Node 服务或 Cloudflare Worker,CLI 也可直接运行一次性 CI 任务。
来源:github.com/withastro/flue;https://flueframework.com/docs/guide/deploy…官方包和文档覆盖 Slack、Teams、Discord、GitHub 等事件渠道、MCP 工具,以及 OpenTelemetry、Braintrust 和 Sentry 观测出口。
来源:github.com/withastro/flue;https://github.com/withastro/flue/releasesAgent 函数声明模型、工具、技能和沙箱;runtime 负责会话、工具循环和持续执行。单次任务由 @flue/cli 直接调用,长期服务则用 @flue/vite 扫描 Agent 模块,通过 Hono 的 createAgentRouter 挂载 HTTP 路由。Node 目标输出 dist/server.mjs,Cloudflare 目标接入 Workers/Durable Objects;持久化需显式配置数据库适配器。
来源:github.com/withastro/flue;https://flueframework.com/docs/guide/gettin…@flue/runtime@flue/cli@flue/vite@earendil-works/pi-agent-core / pi-ai@modelcontextprotocol/clientvalibot适合构建需要工具、技能、工作区、持续会话和多部署目标的 TypeScript Agent,也适合用 flue run 在 CI 中执行一次性任务。只需简单的几轮模型工具调用时,较轻的 Agent loop SDK 会更直接;处理不可信代码时不能把 local() 当成隔离容器。
来源:github.com/withastro/flue;https://flueframework.com/docs/ecosystem/de…当前官方 @flue/runtime 版本为 2.1.0;2026-09-18 的多包 release 组包含 @flue/sdk、@flue/vite 和多个渠道包 2.1.0,并记录 runtime 2.1.0 依赖更新。升级时应同时核对 runtime、CLI、Vite 插件和实际使用的渠道包。
来源:github.com/withastro/flue/releases;https://github.com/withastro/flue/…status: official_docs_checked_not_run | checked_at: 2026-09-23 | environment: 核对 withastro/flue 官方仓库、package.json、runtime package、2.1.0 Releases、Getting Started、CLI、Deploy 与 Node.js 文档 | limitations: 未安装 npm 包、未运行 npx flue、未调用模型、未启动 Vite 服务,也未部署 Node 或 Cloudflare | observed_output: 官方包元数据标明 @flue/runtime 2.1.0 和 Node.js >=22.19.0;官方入门命令为 npm install @flue/runtime @flue/cli,部署使用 @flue/vite、Hono 与 Vite
来源:github.com/withastro/flue/releases;https://github.com/withastro/flue/…Vercel AI SDK 的 ToolLoopAgent 主要封装模型、工具、上下文和停止条件组成的多步循环;Flue 在类似循环之上进一步整合沙箱、持续会话、Vite/Hono 路由、Node/Cloudflare 目标、渠道和观测。只做几轮工具调用时 ToolLoopAgent 更轻,Agent 需要工作区、恢复和服务化部署时 Flue 的范围更完整。
来源:flueframework.com/docs/guide/getting-started/;https://github.com/with…它的价值在于把 Agent loop、沙箱、会话和部署放到统一 TypeScript 运行时;上线前必须补齐持久化、密钥注入和沙箱权限验证。
来源:github.com/withastro/flue;https://flueframework.com/docs/guide/deploy/官方 Getting Started 和 runtime 包都要求 Node.js 22.19.0 或更新版本。仓库自身使用 pnpm 11;普通使用者可以按文档用 npm 安装已发布包。
不是。Node 目标的 local() 直接绑定宿主文件系统与 shell;需要更强隔离时应选择受控的远程或容器沙箱,并限制凭据和网络。
默认不会。官方部署文档说明,没有配置数据库适配器时,会话只在进程内存中,重启即丢失。重要任务应接持久化适配器并测试恢复。
ToolLoopAgent 重点是模型、工具和停止条件组成的多步循环;Flue 在此类循环之上整合沙箱、持久会话、部署路由、渠道与可观测性。