项目介绍
Agent 开发框架 · 2026-11-09 更新 · 本站尚未实测
LangChain.js 是 LangChain 的 JavaScript/TypeScript 版本,README 将其定位为“a framework for building LLM-powered applications”(构建大模型应用的框架)。它通过标准化接口把模型、嵌入、向量库、工具、检索器等组件与第三方集成串联起来,目标是简化 AI 应用开发,并在底层技术演进时减少返工。
需要区分的是:本仓库是框架,不是可直接使用的成品 Agent。README 另行指引 Deep Agents(更高层的 Agent 包)与 LangGraph.js(Agent 编排与可控工作流框架)作为进阶方案;LangSmith 是面向开发者的构建、测试与监控平台。这些属于同一生态但不同产品,不应混称。
核心能力
点击能力名称查看输入、输出和原文依据。
- 标准化接口:为 agents、models、embeddings、vector stores 等提供统一抽象。
- 实时数据增强:把模型连接到外部或内部系统,借助其集成库对接模型提供商、工具、向量库与检索器。
- 模型互操作:可在不同模型间切换,便于团队试验择优。
- 快速原型:模块化、组件化架构,便于迭代不同方案与工作流。
- 生产相关能力:README 提到通过 LangSmith 等集成支持监控、评估与调试。
- 分层抽象:既有面向快速上手的高层 chain,也有细粒度控制的底层组件。
实际应用场景
适用场景
适合需要以 TypeScript 构建大模型应用的团队,例如把模型接入自有数据源、在多个模型提供商之间试验切换、快速验证原型,以及借助生态内的编排与观测产品走向生产。若目标是直接部署一个开箱即用的 Agent,README 建议先看 Deep Agents 或 LangGraph.js,而非把本框架当作成品。
安装与接入
README 给出的安装方式为 npm、pnpm 或 yarn 安装包 langchain,可执行 npm install -S langchain,或使用 pnpm install langchain、yarn add langchain。安装后的环境初始化、示例与接入步骤,README 指向官方文档 Getting started 页面。
本仓库未提供 MCP 服务地址、客户端配置文件或在线托管入口,相关采集项返回 404;因此不存在可复制的 MCP 配置,也不应编造客户端写法。
使用条件与限制
- 是否需要部署
- 需自行准备运行环境,具体要求见正文
- 是否需要注册
- 账号和认证要求见正文;未明确说明的项目仍待核验
- 是否需要 API Key
- 待核验
- 费用与额度
- 费用边界见正文,项目许可不代表模型或托管服务免费
- 所需权限
- 待核验
- 许可证与服务条款
- 待核验
权限费用与限制
- 模型与 API Key:框架本身不提供模型,实际使用需自行接入模型提供商,凭据、额度与计费由对应提供商决定,具体待核验。
- 费用:LangChain.js 为开源库;但生态中的 LangSmith、LangSmith Deployment 等平台可能涉及付费方案,README 未列价格,费用与免费额度需向官方核验。
- 平台限制:README 列出支持 Node.js 20.x、22.x、24.x,以及 Cloudflare Workers、Vercel/Next.js、Supabase Edge Functions、浏览器、Deno、Bun。README 未提及 Windows 桌面端或国内网络环境的适配情况,均待核验。
- 维护状态:仓库元数据显示未归档、未禁用;具体版本兼容性与稳定性需结合官方文档核查。
国内使用情况
网友核验 用户经验分享
与站长实测独立,不代表官方认证或本站已实测。
最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。
分项统计、有效期与样本量
| 核验项目 | 有效人数 | 成功 / 部分 / 失败 / 无法判断 | 成功率 | 最近核验 / 有效期 |
|---|---|---|---|---|
| 官方网站访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| GitHub 仓库访问 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 安装与运行 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 官方服务国内连接 / MCP 连接 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 国内网络情况 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 7 天 |
| 国内模型兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 自定义 API | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外服务依赖 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 海外账号要求 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 中文界面 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 客户端兼容性 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
| 账号及费用信息 | 0 | 0 / 0 / 0 / 0 | 样本不足 | 暂无 / 30 天 |
成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。
最近有效核验
暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。
查看全部有效核验 →国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。
- 官方网站访问
- 尚未实测 待核验
- GitHub 仓库访问
- 尚未实测 待核验
- 官方服务国内连接
- 尚未实测 待核验
- 国内网络情况
- 尚未实测 待核验
- 国内模型兼容性
- 尚未实测 待核验
- 自定义 API
- 尚未实测 待核验
- 海外服务依赖
- 尚未实测 待核验
- 海外账号要求
- 尚未实测 待核验
- 中文界面
- 尚未实测 待核验
- 国内最后核验时间
- 尚未实测
许可与国内使用
仓库 LICENSE 文件为 MIT License,版权归 LangChain, Inc.,允许使用、复制、修改、合并、发布、再许可与销售,需保留版权与许可声明,软件按“原样”提供、不含担保。
开源许可不等于模型调用、云服务或生态平台免费。跨境调用的网络可达性、合规与数据处理要求,README 未作说明,国内使用前需自行核验。
项目资料与来源
字段依据与待核验事项
access:来源确认 · `npm install -S langchain` or `pnpm install langchain` or `yarn add langchain`
project_type:来源确认 · LangChain is a framework for building LLM-powered applications.
原始 README(折叠技术参考)
<div align="center">
<a href="https://www.langchain.com/">
<picture>
<source media="(prefers-color-scheme: light)" srcset=".github/images/logo-light.svg">
<source media="(prefers-color-scheme: dark)" srcset=".github/images/logo-dark.svg">
<img alt="LangChain Logo" src=".github/images/logo-dark.svg" width="50%">
</picture>
</a>
</div>
<div align="center">
<h3>The agent engineering platform.</h3>
</div>
 [](https://opensource.org/licenses/MIT) [](https://x.com/langchain_js)
LangChain is a framework for building LLM-powered applications. It helps you chain together interoperable components and third-party integrations to simplify AI application development — all while future-proofing decisions as the underlying technology evolves.
> [!TIP]
> Just getting started? Check out **[Deep Agents](http://docs.langchain.com/oss/javascript/deepagents/)** — a higher-level package built on LangChain for agents that have built-in capabilities for common usage patterns such as planning, subagents, file system usage, and more.
**Documentation**: To learn more about LangChain, check out [the docs](https://docs.langchain.com/oss/javascript/langchain/overview).
If you're looking for more advanced customization or agent orchestration, check out [LangGraph.js](https://docs.langchain.com/oss/javascript/langgraph/overview), our framework for building agents and controllable workflows.
For an equivalent Python library, check out [LangChain](https://github.com/langchain-ai/langchain).
To help you ship LangChain apps to production faster, check out [LangSmith](https://smith.langchain.com), a unified developer platform for building, testing, and monitoring LLM applications.
## ⚡️ Quick Install
You can use npm, pnpm, or yarn to install LangChain.js
`npm install -S langchain` or `pnpm install langchain` or `yarn add langchain`
## 🚀 Why use LangChain?
LangChain helps developers build applications powered by LLMs through a standard interface for agents, models, embeddings, vector stores, and more.
Use LangChain for:
- **Real-time data augmentation**. Easily connect LLMs to diverse data sources and external/internal systems, drawing from LangChain’s vast library of integrations with model providers, tools, vector stores, retrievers, and more.
- **Model interoperability**. Swap models in and out as your engineering team experiments to find the best choice for your application’s needs. As the industry frontier evolves, adapt quickly — LangChain’s abstractions keep you moving without losing momentum.
- **Rapid prototyping**. Quickly build and iterate on LLM applications with LangChain's modular, component-based architecture. Test different approaches and workflows without rebuilding from scratch, accelerating your development cycle.
- **Production-ready features**. Deploy reliable applications with built-in support for monitoring, evaluation, and debugging through integrations like LangSmith. Scale with confidence using battle-tested patterns and best practices.
- **Vibrant community and ecosystem**. Leverage a rich ecosystem of integrations, templates, and community-contributed components. Benefit from continuous improvements and stay up-to-date with the latest AI developments through an active open-source community.
- **Flexible abstraction layers**. Work at the level of abstraction that suits your needs - from high-level chains for quick starts to low-level components for fine-grained control. LangChain grows with your application's complexity.
## 📦 LangChain's ecosystem
- [Deep Agents (JS)](https://docs.langchain.com/oss/javascript/deepagents/overview) - Build agents that can plan, use subagents, and leverage file systems for complex tasks. A higher-level package built on top of LangChain.
- [LangSmith](https://www.langchain.com/langsmith) - Unified developer platform for building, testing, and monitoring LLM applications. With LangSmith, you can debug poor-performing LLM app runs, evaluate agent trajectories, gain visibility in production, and deploy agents with confidence.
- [LangSmith Deployment](https://docs.langchain.com/langsmith/deployments) — Deploy and scale agents with a purpose-built platform for long-running, stateful workflows
- [LangGraph](https://docs.langchain.com/oss/javascript/langgraph/overview) - Build agents that can reliably handle complex tasks with LangGraph, our low-level agent orchestration framework. LangGraph offers customizable architecture, long-term memory, and human-in-the-loop workflows — and is trusted in production by companies like LinkedIn, Uber, Klarna, and GitLab.
- [Integrations](https://docs.langchain.com/oss/javascript/integrations/providers/overview) — Chat & embedding models, tools & toolkits, and more
## 🌐 Supported Environments
LangChain.js is written in TypeScript and can be used in:
- Node.js (ESM and CommonJS) - 20.x, 22.x, 24.x
- Cloudflare Workers
- Vercel / Next.js (Browser, Serverless and Edge functions)
- Supabase Edge Functions
- Browser
- Deno
- Bun
## 📖 Additional Resources
- [Getting started](https://docs.langchain.com/oss/javascript/langchain/overview): Installation, setting up the environment, simple examples
- [Learn](https://docs.langchain.com/oss/javascript/learn): Learn about the core concepts of LangChain.
- [LangChain Forum](https://forum.langchain.com): Connect with the community and share all of your technical questions, ideas, and feedback.
- [Chat LangChain](https://chat.langchain.com): Ask questions & chat with our documentation.
## 💁 Contributing
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
For detailed information on how to contribute, see [`CONTRIBUTING.md`](https://github.com/langchain-ai/langchainjs/blob/main/CONTRIBUTING.md).
Please report any security issues or concerns following our [security guidelines](https://github.com/langchain-ai/.github/blob/main/SECURITY.md).
历史前置条件说明(补充参考)
Node.js 20.x/22.x/24.x(README 列明)或 Cloudflare Workers、Vercel/Next.js、Supabase Edge Functions、浏览器、Deno、Bun 等运行环境;使用 npm/pnpm/yarn 安装包 langchain;实际调用需自备模型提供商凭据与 API Key,费用待核验;生态平台 LangSmith 费用与免费额度待向官方核验;国内网络可达性与兼容性待核验。
项目来源与清单版权许可
https://github.com/langchain-ai/langchainjs
整理来源:https://github.com/slavakurilyak/awesome-ai-agents
清单版权与许可:
MIT License
Copyright (c) 2024 Slava Kurilyak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.