源码构建需 Node.js >=24.22.1、pnpm 12.11.2、Rust 1.99+ 及带 Compose 的 Docker;首次源码构建前需在 Linux 上执行 apply-resource-limits.sh 并把 ~/.local/bin 加入 PATH;存储完整对话会产生大量数据,高流量生产环境需提前规划容量、保留、备份与合规。
1flowbase
taichuyApache-2.0活跃维护面向智能体应用的一站式后端底座,把 AI 网关、数据建模和 CRUD API 串起来,省去自己拼装 LLM 路由与可观测性。
Build for agents — from the AI Gateway to the entire application stack.
curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | shREADME 未给出显存或 GPU 要求;源码构建时 Rust 默认使用约一半 CPU 与内存,目标至少 2 逻辑核、8 GiB,并注明这是构建预算目标而非已验证的最低硬件要求。
自托管的 AI 网关加应用运行时,把模型接入、对话数据和业务系统放在同一套 API 上
面向智能体应用的一站式后端底座,把 AI 网关、数据建模和 CRUD API 串起来,省去自己拼装 LLM 路由与可观测性。
核心能力
- 把完整对话存入 PostgreSQL 作为可复用数据资产
- 将工作流发布为虚拟模型,模型还能被其他模型当工具调用
- 在 Anthropic Messages、OpenAI Chat Completions 与 Responses 三种协议间转换
- 所有 GUI 操作都基于 API,并通过 MCP 暴露给 Agent 调用
- MCP 网关用 list/get/call 渐进式发现工具,避免塞满上下文
容易踩的坑
- v0.6.3最新正式版2026-11-04 · 2026-11-04 04:18 UTC
本次更新(相较 v0.6.1)
- AI 网关稳定性:修复 Responses 工具历史重放、工具续接与原生客户端工具交付;改进连接中断后的恢复、用量统计及上下文压缩后的续跑,保留 Codex 模型的图片输入能力。(提交对比)
- 权限与只读体验:细化设置、应用、文件、MCP、通知及个人偏好的操作权限,分别控制查看与修改,修复只读变量视图持续渲染问题。(权限修复、PR #2773)
- 插件组件能力:支持插件组件注册、授权模块加载与共享依赖,完善组件归属、样式隔离、组件目录及模板展示,为日历等插件接入提供宿主能力。(#2759)
- 插件运行时:抽取共享同步 JavaScript 内核,提供执行预算与严格 JSON 输出校验,修复系统级服务插件显式分配工作区前端组件时的启用问题。(#2762、#2763)
- 定价目录与模板安装:改进定价查询、搜索和同步的分页分批处理;远端失败时保留已有页面和分页入口,中断下载支持一次重试;应用模板在确认前仅下载一次。(定价修复、模板修复)
- MCP 与调试界面:修复拖拽绑定时的目标识别,完善角色权限参数说明和只读入口文案,改进调试对话输入与运行状态展示。(MCP 修复、调试界面)
- 资源与工程优化:释放已完成的流式缓冲区、回收空闲数据库连接缓冲区,减少网关调用栈、重复计算及质量扫描内存开销,并复用 Provider 解析和 SDK 测试构建。(#2740、PR #2744、PR #2773)
- Windows 原生包:增加 API 主线程栈空间,修复 Windows 原生服务启动时的栈溢出问题。(启动修复)
Installation or Upgrade
Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iexWindows CMD:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex"Docker Images
ghcr.io/taichuy/1flowbase-web:v0.6.3ghcr.io/taichuy/1flowbase-api-server:v0.6.3ghcr.io/taichuy/1flowbase-*:latest
Native portable distributions / 原生便携包
Download the archive for your OS and architecture below. Extract once; edit the root .env; launch 1flowbase. 下载下方对应系统/架构的包,解压一次,根目录 .env 为运行配置。 Stop the application, then run upgrade.cmd / upgrade.sh in the current installation to download and apply updates. 双击升级会自动下载并直接更新当前安装,保留 .env 与数据,不创建备份。仅支持同系统、架构与 PostgreSQL 大版本。
Traceability
- Target commit:
e1b19e2 - Workflow run: container images #41766097264
- Source branch:
latest
Pull requests, linked issues, commits, and contributors are generated below by GitHub when available.
What's Changed
- refactor: deduplicate provider resolution, rule mapping and SDK fixtures by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2744
- refactor: preserve business contracts while reducing repeated work and gate memory by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2773
Full Changelog: https://github.com/taichuy/1flowbase/compare/v0.6.1...v0.6.3
- v0.6.12026-10-31 · 2026-10-31 04:40 UTC
查看更新说明
v0.6.1 更新说明(自 v0.5.8 起)
汇总 v0.5.8 之后进入正式版本的 514 条提交(含合并提交)。完整逐条记录见文末比较链接。
新功能与体验
- 通讯中心:从通知管理升级为双向通讯,支持消息与附件接收、Agent-flow 最终回复、渠道专属 MCP 按需读取历史/文件、会话与收发记录查询及日志跳转。增加持续会话、同轮追加、渠道快捷指令配置和统一 SDK Markdown 输出。相关:#2670、#2671、#2672、#2673、#2695、#2696、#2697、#2704。
- 同屏嵌套循环与迭代:支持有界嵌套容器、作用域变量、逐轮轨迹、检查点和恢复;新增容器内节点入口,改进连接点、拖线与选中交互,单轮期限可选。相关:#2711、#2712、#2713。
- 浏览器自动化扩展:集成 Obscura Rust 浏览器能力,提供实例/标签页管理及专属 MCP 页面操作。插件独立安装,首版支持 Linux x86_64 GNU。相关:#2678、#2679、#2680、#2681。
- AI Native 上下文压缩:节点显式开启后支持内部上下文压缩与检查点续跑,保留原始用户请求及工具回执。相关:#2685。
- 网络出口与本地命令:代理池支持 SOCKS5;HTTP 节点可跟随工作区、指定代理或直连。新增独立授权的一次性本地命令接口,支持 Windows/Linux/macOS。相关:#2708、#2715。
- 页面与系统设置:新增路由管理 Tab,支持树拖拽、显隐、详情抽屉和页面 Tabs 管理;增加页面标题显隐,改进 Markdown 编辑器模式记忆、复制、光标和初始化体验。新增系统 Logo、名称、登录标语开关、说明与备案 HTML 设置。相关:#2669、#2596。
修复与可靠性
- 修复 Agent Logs 已结束轮次仍显示等待,以及带图/大正文用户输入缺失;补齐完整输入读取与历史修复边界。相关:#2674、#2675、#2676。
- 修复官方受管插件安装类型校验、首次工作区启用和版本切换后渠道仍关联旧安装;微信插件身份统一为
wechat-chat-channels。相关:#2694、#2686、#2687。 - 插件可声明发送日志的标题、完整正文和 JSON 附属信息,宿主统一保存展示并保护敏感信息。相关:#2688、#2689、#2690。
- 修复 Gateway prepared callback 栈占用风险、工具回调续传/交付作用域与会话回收;取消 Responses 任意输入条数门槛,保留 multipart 自定义工具结果。相关:#2699、#2635。
- 修复应用快照清理、备份恢复的身份分配器与容器执行事实,以及原生多对多关系原子持久化。
性能与工程
- 复用工作流编译、图遍历、模板规划及 MCP 目录索引,减少重复扫描;优化 Gateway 历史、载荷所有权、OpenAPI 文档和托管 schema 缓存。
- 复用质量门禁扫描与测试执行证据,改善日志背压和资源释放;共享前端发行产物,串行协调正式镜像与原生包发布。相关:#2622、#2628、#2636、#2644、#2654、#2659、#2665、#2700。
原生发行与保留事项
- 本次已上传 Windows x64、Linux x64/arm64、macOS x64/arm64 五个便携包,包含 Web、后端与 PostgreSQL,支持根目录
.env配置及在线升级。原生安装/升级系统 #2683 已按维护者要求关闭跟踪,原有验收范围与限制保留;独立窗口/托盘桌面客户端 #2710 暂不实施。 - #2691 / #2692 连接可靠性专项未作为已完成功能交付:候选未合入本次发行;Issue 已按维护者要求关闭,历史失败与可靠性阻断记录保留,不列入已完成更新。
- 原 Issue 中的移动端、真实外部平台及跨平台验证限制继续有效;本说明整理已有交付记录,不代表新增全产品实机验收。
Issue 结项与追溯
已完成的 JAVA-LW Issue 按维护者确认关联本发行及主仓提交后关闭。#2550、#2557、#2503、#2502、#2498 的实现已在 v0.5.8 基线中,本次补结历史验收,未计为本版本新增功能。其他作者与 CI 自动报告不在本次批量关闭范围。
Installation or Upgrade
Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iexWindows CMD:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex"Docker Images
ghcr.io/taichuy/1flowbase-web:v0.6.1ghcr.io/taichuy/1flowbase-api-server:v0.6.1ghcr.io/taichuy/1flowbase-*:latest
Native portable distributions / 原生便携包
Download the archive for your OS and architecture below. Extract once; edit the root .env; launch 1flowbase. 下载下方对应系统/架构的包,解压一次,根目录 .env 为运行配置。 Stop the application, then run upgrade.cmd / upgrade.sh in the current installation to download and apply updates. 双击升级会自动下载并直接更新当前安装,保留 .env 与数据,不创建备份。仅支持同系统、架构与 PostgreSQL 大版本。
Traceability
- Target commit:
842605b - Workflow run: container images #41164784483
- Source branch:
latest
本次更新汇总范围为
v0.5.8...v0.6.1,包含 v0.6.0 与 v0.6.1 的累计更新。Full Changelog: https://github.com/taichuy/1flowbase/compare/v0.5.8...v0.6.1
- v0.6.02026-10-31 · 2026-10-31 02:29 UTC
查看更新说明
Installation or Upgrade
Linux/macOS:
curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iexWindows CMD:
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex"Docker Images
ghcr.io/taichuy/1flowbase-web:v0.6.0ghcr.io/taichuy/1flowbase-api-server:v0.6.0ghcr.io/taichuy/1flowbase-*:latest
Native portable distributions / 原生便携包
Download the archive for your OS and architecture below. Extract once; edit the root .env; launch 1flowbase. 下载下方对应系统/架构的包,解压一次,根目录 .env 为运行配置。 Stop the application, then run upgrade.cmd / upgrade.sh in the current installation to download and apply updates. 双击升级会自动下载并直接更新当前安装,保留 .env 与数据,不创建备份。仅支持同系统、架构与 PostgreSQL 大版本。
Traceability
- Target commit:
06df841 - Workflow run: container images #41156318712
- Source branch:
latest
Pull requests, linked issues, commits, and contributors are generated below by GitHub when available.
What's Changed
- fix(quality): preserve executed evidence and reduce log processing cost by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2625
- perf: index business collections and preserve gate detection by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2633
- perf: reuse graph queries and bound verification workers by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2641
- 精简编辑器与插件选择,并复用本地门禁执行证据 by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2648
- perf: streamline template planning and MCP directories, combine PR tests by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2658
- perf(orchestration): reuse edge indexes and borrowed reachability state by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2660
- Reduce gateway event scans and transient payload copies by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2668
- Fix Agent Logs turn settlement and lossless current input by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2677
- perf: slim compiler lookups and reuse governance scans by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2705
- fix: preserve editor shortcuts in node picker by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2731
- 修复原生打包并优化缓存与正式发布流程 by @JAVA-LW in https://github.com/taichuy/1flowbase/pull/2737
Full Changelog: https://github.com/taichuy/1flowbase/compare/v0.5.8...v0.6.0
- v0.5.8-native.2v0.5.8-native.2 · Native portable distributionspre-release2026-10-29 · 2026-10-29 10:08 UTC
查看更新说明
Native portable distributions / 原生便携包
- Extract once; edit the root .env; launch 1flowbase.
- 解压一次,根目录 .env 为运行配置,默认数据目录为 data/。
- Stop the application, then run upgrade.cmd / upgrade.sh in the current installation to download and apply updates.
- 双击升级会自动下载并直接更新当前安装,保留 .env 与数据,不创建备份。仅支持同系统、架构与 PostgreSQL 大版本。
Source / 源码: a69128c52ee7006bb76731e8811eec4c4ec411ae
- v0.5.8-native.1v0.5.8-native.1 · Native portable distributionspre-release2026-10-29 · 2026-10-29 07:06 UTC
查看更新说明
Native portable distributions / 原生便携包
- Extract once; edit the root .env; launch 1flowbase.
- 解压一次,根目录 .env 为运行配置,默认数据目录为 data/。
- Stop the old instance, then run the new package's upgrade.cmd / upgrade.sh with the old installation path.
- 离线升级保留配置与数据并建立完整恢复快照。仅支持同系统、架构与 PostgreSQL 大版本;早期试验包不作为升级基线。
Source / 源码: 1ab621f44e19b52c8b15453139bf3884c65989b1
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
1flowbase
From AI Gateway to a Complete Application System.
1flowbase is a low-code native backend foundation built on an AI gateway. Beyond core AI gateway features, it lets you build your own application system on top of the AI chat data stored in the gateway.
An Application Foundation Designed for Agents
1flowbase is API-first by design. If a traditional GUI can take over the entire system through APIs, then turning those APIs into MCP lets an Agent take over everything as well.
Technical Architecture
1flowbase is a self-hosted AI Gateway and AI application runtime.
Start by unifying model access, retain conversation data in the same runtime, and keep building Workflows, APIs, business data, and React applications on top of it. Every capability is API-based and can be exposed to Agents through MCP to understand, build, and manage.
Dispatch intelligence, retain data, build applications.
Philosophy
- The gateway is not the end: Full AI conversations passing through the gateway are stored in PostgreSQL, becoming a reusable data asset for cost analysis, model quality evaluation, prompt / routing optimization, and business system development.
- A "model" can be a Workflow: High-capability models plan, judge, and audit; low-cost models execute. The combination is published as a single virtual model, and a model can itself be used as a Tool by another model.
- Three protocols, one entry point: Conversion between Anthropic Messages, OpenAI Chat Completions, and OpenAI Responses, so your application layer doesn't change when providers do.
- Designed for Agents: Every runtime operation available in the GUI is built on APIs, which are exposed to Agents via MCP. The MCP Gateway uses progressive
list / get / calltool discovery instead of stuffing every Tool into the context at once. - Low-code efficiency + native React freedom: Business tables can be created dynamically; UIs are written as React code blocks with access to the entire React ecosystem, not a closed drag-and-drop editor.
Human → GUI ─┐
├→ API → AI Gateway / Workflow / Data / React UI → AI Application
Agent → MCP ─┘
Quick Start
Docker
Deployed with Docker — no manual environment setup required.
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/shell/docker-deploy.sh | sh
Windows PowerShell
irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex
Windows CMD
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/taichuy/1flowbase/main/scripts/powershell/docker-deploy.ps1 | iex"
Follow the prompts to finish configuration and start 1flowbase. Storing full conversations can generate large data volumes; for high-traffic production, plan storage capacity, retention, backup, and compliance in advance.
Git
Requirements
- Node.js
>=24.22.1 - pnpm
12.11.2(runcorepack enableandcorepack install --global [email protected]) - Rust stable toolchain (Cargo), version
1.99or newer - Docker with Docker Compose (for middleware such as PostgreSQL)
Start
Run from the repository root:
git clone https://github.com/taichuy/1flowbase.git
cd 1flowbase
Before the first source build on Linux with a user systemd manager, apply the development resource profile and put its user-level wrappers on PATH:
bash scripts/shell/apply-resource-limits.sh
export PATH="$HOME/.local/bin:$PATH"
Rust normally uses half the available CPU and memory, targeting at least 2 logical CPUs and 8 GiB when capacity permits. Smaller machines may exceed the half-machine share; memory still leaves OS/service headroom. These are build budget targets, not verified minimum hardware requirements. Explicit local settings remain supported. Windows/macOS use the same CPU policy; Linux systemd memory limits do not apply there. See resource configuration for limits and overrides.
For first-time development, precompile the Rust test targets, then start the services:
node scripts/node/reset-rust-cache/cli.js --warmup-only
node scripts/node/dev-up.js
--warmup-only fetches locked dependencies and compiles build/test targets in sequence
without deleting existing caches or stopping services; it does not execute tests.
For subsequent daily starts, run dev-up directly to reuse the caches.
dev-up starts the Docker middleware, installs frontend dependencies, builds and runs the backend, and starts the frontend. Other common commands:
node scripts/node/dev-up.js status
node scripts/node/dev-up.js stop
node scripts/node/dev-up.js restart --frontend-only
node scripts/node/dev-up.js restart --backend-only
Logs are written to tmp/logs/. For more scripts, see scripts/README.md.
Comparison
| Project | AI Gateway | Composite Models / Workflow | Full Conversation Data | Dynamic Business Data | MCP | React Apps |
|---|---|---|---|---|---|---|
| 1flowbase | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| LiteLLM | ✅ | — | Partial | — | — | — |
| OpenRouter | ✅ | — | Platform-hosted | — | — | — |
| Dify | Partial | ✅ | ✅ | — | ✅ | Fixed app types |
| Supabase | — | — | — | ✅ | Ecosystem | Build your own |
| n8n | — | ✅ | — | — | Ecosystem | — |
Roadmap
- Out-of-the-box application templates (AI Gateway, multi-model router, enterprise AI Gateway, AI education platform, Agent application backend)
- Better official MCP Tool descriptions so Coding Agents like Codex can build applications without reading the source code
- Lifecycle management for AI conversation data
Tutorials
- Make GLM-5.2 See Images in Claude Code with 1flowbase
- Fusion-Style Workflow: Publish a Multi-Model Review Panel as an Observable Virtual Model
- 1flowbase Wiki
Repository Layout
web/ Frontend root, powered by pnpm + Turbo
api/ Rust backend workspace
api/apps/ Backend service entry points
api/crates/ Shared backend crates
api/plugins/ Plugin source workspace, HostExtension manifests and templates
docker/ Local middleware orchestration and self-hosted service stack
scripts/ Repository-level development, testing, verification, and debugging scripts
Contributing
Community contributions are very welcome. Before submitting a Pull Request, please run the following verification script:
node scripts/node/verify.js repo
Development guidelines:
Friends
- Linux.do - Learn AI, on L Station.
- openai - Thanks to the early OpenAI Developer Program for supporting this project.
- Aionui - Remotely control AI from your phone.
- OfficeCLI - Office suite designed for AI Agents.
- deepseek-pp - DeepSeek web chat browser extension.
- MuseAI - Local AI companion, text adventure, and interactive fiction app.
- FrontAgent - AI Agent system designed for frontend engineering.
- RedBox - Localized AI creation workspace for Xiaohongshu creators.
License
This project is licensed under Apache-2.0.
Contributors
Star History
If you want Agents to build and operate self-hosted applications across AI, MCP, application backends, and React interfaces — give 1flowbase a Star.