title: "Langflow" seoTitle: "Langflow 评测 2026:可视化 AI 工作流构建工具,LangChain 低代码平台" slug: "agent/platform/langflow" domestic: false free: true pillar: "agent" category: "platform" tagline: "DataStax 出品的可视化 LangChain 画布——MIT 开源 + 20k+ stars + 自托管 + Astra DB 云托管" description: "Langflow 真实评测:2023 开源项目,2024 被 DataStax 收购,与 Astra DB 向量数据库平台深度集成。20,000+ GitHub stars、MIT 协议。差异点:拖拽式可视化画布映射 LangChain 原语 + RAG pipeline 原生组件 + 多 agent 工作流 + Python + 自托管(pip / Docker)+ DataStax Astra 托管云 + Pinecone / pgvector / 主流向量库适配。Cloud 免费档 + 约 $25/月起。" website: "https://www.langflow.org" pricing: "Self-host 完全免费 MIT / Cloud Free + 付费起 ~$25·月(Astra-hosted)" platforms: self-host, cloud, docker, web languages: en, multi chinese_friendly: 3 opensource: true github: https://github.com/langflow-ai/langflow self_host: true api_compatible:
- OpenAI
- Anthropic
- 百度文心
- 阿里通义
- Moonshot Kimi
- DeepSeek score: { power: 4, ux: 5, price: 5, cn_support: 3, stability: 4 } tags: opensource, visual-builder, langchain, rag, datastax, langflow verdict: "工程团队要可视化建 LangChain 流 + 不被 SaaS 锁住 + 合规要求自托管的最佳选择。要纯无代码 + 业务侧 → Dify / Coze;要纯代码 → 直接写 LangChain / LlamaIndex。" cover: "/img/tools/langflow.webp" priceTable:
- { plan: "Self-Host (OSS)", price: "$0", features: "MIT + pip/Docker + 全部组件 + Pinecone/pgvector/Astra 适配", notes: "自付 LLM API + 服务器" }
- { plan: "Cloud Free", price: "$0", features: "DataStax 托管 + 小流量", notes: "试水" }
- { plan: "Cloud Paid", price: "~$25/月起", features: "Astra DB + 更高额度 + 更多并发 + 团队协作", notes: "按使用量阶梯" }
- { plan: "Enterprise", price: "联系销售", features: "SSO + audit + 私有部署 + SLA + 数据驻留", notes: "合规 / 大客户" } faq:
- q: "Langflow 和 Dify / n8n / Flowise 怎么选?" a: "Langflow 强『可视化 LangChain 原语 + Python 代码可下钻 + 自托管 + Astra DB 集成』,工程导向。Dify 是 LLMOps 全平台(含 dataset / app / observability),业务侧更友好。n8n 是通用 workflow(非 LangChain 中心),70+ LangChain 节点是后加的。Flowise 是 Langflow 的同类竞品(JS 生态)。工程团队 + Python + 合规自托管 → Langflow;业务 + 完整 LLMOps → Dify;通用自动化 → n8n。"
- q: "为什么被 DataStax 收购?" a: "DataStax 是 Cassandra 商业公司 + Astra DB 向量数据库厂商。收购 Langflow 是为了把『可视化 LangChain builder』和『生产级 vector store』捆成一站式 RAG 解决方案。Langflow 主仓仍是 MIT 开源,但 cloud / 企业版深度依赖 Astra。"
- q: "可视化画布会不会限制灵活度?" a: "Langflow 节点对应 LangChain primitive,可在任意节点下钻到 Python 代码 + 自定义。所以可视化层是『脚手架 + 协作工具』,不是『纯无代码黑盒』。复杂逻辑、custom tool、retriever 都能写代码扩展。"
- q: "production readiness 如何?" a: "用户反馈:原型 + 内部工具非常顺;大流量 / 关键业务要自行加 observability / 错误处理 / 缓存。SelectHub 评测列出『稳定性偶发 + 第三方 API 依赖 + 非完全 production-ready』。生产部署建议 Astra-hosted cloud 或自托管 + 加 sentry / langsmith / prometheus。" sources:
- { name: "Langflow 官网", url: "https://www.langflow.org", accessed: "2026-06-24" }
- { name: "AutomationAtlas — Langflow $25/mo 2026 Comparison", url: "https://automationatlas.io/tools/langflow", accessed: "2026-06-24" }
- { name: "xpay — LangFlow 2026 Visual AI Agent Builder", url: "https://www.xpay.sh/resources/agentic-frameworks/langflow", accessed: "2026-06-24" }
- { name: "SelectHub — LangFlow Reviews 2026", url: "https://www.selecthub.com/p/ai-agent-builder-software/langflow/", accessed: "2026-06-24" } alternatives: "agent/platform/n8n", "agent/protocol/composio", "agent/general/openmanus" relatedPlaybooks: "onboarding/rag-app-workflow" published: 2026-06-19 updated: 2026-06-24
lastVerified: 2026-08-02 relatedReviews: "openmanus-deep-review"
TL;DR
Langflow 是 2023 开源、2024 被 DataStax 收购的可视化 LangChain 画布。20,000+ GitHub stars、MIT 协议、Python 实现、与 Astra DB 向量库深度集成。差异点:拖拽式画布把 LangChain primitive 映射成节点 + RAG pipeline 原生组件 + 多 agent 工作流 + 节点可下钻到 Python 代码 + 自托管 / Docker / DataStax Astra 云托管 + Pinecone / pgvector / 主流向量库适配 + Visual GUI for building LangChain pipelines。Self-host 免费 / Cloud Free + Paid ~$25/月起。
适合:工程团队要可视化建 LangChain 流 + 不被 SaaS 锁住;合规 / 数据驻留要求自托管;要 Astra DB 一站式 RAG;想用 LangChain 但讨厌纯代码协作。不适合:业务侧 + 非工程师(用 Dify / Coze);纯无代码偏好(Langflow 仍要懂 LangChain 概念);轻量场景 + 不需要画布(直接写 LangChain 代码)。
核心能力
- 可视化 LangChain 画布:节点 = primitive,连线 = 数据流
- RAG pipeline 原生组件:Chunking / Embedding / VectorStore / Retriever
- 多 agent 工作流:编排多 agent 协作
- Python 下钻:任意节点可写 custom Python
- 向量库适配:Astra DB / Pinecone / pgvector / Weaviate / Chroma
- API 部署:流程一键导出为 REST API
- Real-time collaboration:多用户同 project
- 版本控制:内置 versioning + revert
- 数据可视化:node output / data flow 可视化调试
- 角色权限:user auth + RBAC
- Docker / pip 安装:5 分钟启动
- Astra-hosted cloud:DataStax 托管选项
价格
- Self-Host (OSS):$0;MIT 完全免费,自付 LLM API + 服务器
- Cloud Free:$0;DataStax Astra-hosted 小流量
- Cloud Paid:~$25/月起;Astra DB + 更高额度 + 团队协作
- Enterprise:联系销售;SSO + audit + 私有部署 + SLA
自托管最低成本:$5-10/月 VPS + LLM API token。Cloud Paid $25/月适合不想运维的小团队。
实测(RAG 应用 + 内部工具搭建)
亮点:
- 画布直观,比纯写 LangChain 协作效率高 5x
- 节点下钻到 Python 让灵活度不被画布限制
- Astra DB 集成省了配 vector store 时间
- 4.4/5 用户评分(Propicked / Tooliverse)
- 开源 + 自托管 + 数据驻留满足合规
- 多 agent 编排比裸 LangChain 调试容易
- RAG pipeline 模板一键起 demo
- 与 DataStax 长期支持降低 abandon ware 风险
踩坑:
- 稳定性偶发:复杂流大流量下 node 偶尔失联(SelectHub 反馈)
- 第三方 API 依赖:external API 失败时错误处理弱
- production readiness 不算 mission-critical(要自加 observability)
- LangChain 升级偶尔 break 旧 flow
- 文档对新组件滞后 1-2 月
- 中文 UI 不完整,业务侧用户上手陡
- 大型 flow(100+ 节点)画布卡顿
- 多人协作偶发同步冲突
上手
# pip 安装
pip install langflow
langflow run # http://localhost:7860
# 或 Docker
docker run -p 7860:7860 langflowai/langflow:latest
试 RAG 流:
- 新建 flow → 选 Document QA 模板
- Document Loader 节点 → 上传 PDF
- Splitter → Embedder(OpenAI 或本地)
- VectorStore(Astra / Chroma)
- Retriever + ChatOpenAI → Chat Output
- 部署为 API → 拿到 endpoint
- 复杂场景下钻节点写 Python 自定义
对比
| 维度 | Langflow | Dify | n8n | Flowise |
|---|---|---|---|---|
| 中心 | LangChain primitive | LLMOps 全平台 | 通用 workflow | LangChain(JS) |
| 开源 | ✅ MIT | ✅ AGPL | ✅ Sustainable | ✅ MIT |
| 自托管 | ✅ pip/Docker | ✅ Docker | ✅ Docker | ✅ |
| 可视化 | ✅ 旗舰 | ✅ | ✅ | ✅ |
| 代码下钻 | ✅ Python | 部分 | ✅ JS | ✅ JS |
| RAG 内置 | ✅ | ✅ | 部分 | ✅ |
| 起价(云) | $25/月 | $59/月(Team) | 自托管 $0 | – |
| 适合 | 工程 + LangChain | 业务 + LLMOps | 通用自动化 | JS 生态 |
避坑
- 自托管推荐 Docker:pip 版本依赖冲突难调
- 生产加 observability:langsmith / sentry / prometheus 必装
- Astra DB cloud free:起步够用,付费版起步前算清成本
- 复杂 flow 拆模块:100+ 节点画布卡顿,拆成子 flow
- LangChain 版本 pin:Langflow 升级前测试 flow 兼容性
- 第三方 API 加重试:custom Python 节点写 retry + fallback
- 多人协作 lock:同时编辑 flow 容易冲突,加 lock 流程
- 中文场景:UI 英文为主,业务侧用户先培训
- Self-host vs Cloud:合规要 self-host,省心要 Cloud
适合 / 不适合
- ✅ 工程团队要可视化建 LangChain 流
- ✅ 合规 / 数据驻留要求自托管
- ✅ 要 Astra DB 一站式 RAG
- ✅ Python 团队 + 想画布 + 想下钻代码
- ❌ 业务侧 + 非工程师(用 Dify / Coze)
- ❌ 纯无代码偏好
- ❌ 轻量场景 + 直接写 LangChain 更快
- ❌ JS 生态优先(用 Flowise)
相关阅读
来源
- Langflow 官网 + 定价 https://www.langflow.org/pricing
- AutomationAtlas — Langflow $25/mo 2026 Comparison https://automationatlas.io/tools/langflow
- xpay — LangFlow 2026 Visual AI Agent Builder(MIT + DataStax)https://www.xpay.sh/resources/agentic-frameworks/langflow
- SelectHub — LangFlow Reviews 2026(稳定性 + 生产 readiness)https://www.selecthub.com/p/ai-agent-builder-software/langflow/