Skip to main content
To install the LangChain package:
npm install langchain @langchain/core
# Requires Node.js 22+
pnpm add langchain @langchain/core
# Requires Node.js 22+
yarn add langchain @langchain/core
# Requires Node.js 22+
bun add langchain @langchain/core
# Requires Bun v1.0.0+
LangChain provides integrations to hundreds of LLMs and thousands of other integrations. These live in independent provider packages.
# Installing the OpenAI integration
npm install @langchain/openai
# Installing the Anthropic integration
npm install @langchain/anthropic
# Installing the OpenAI integration
pnpm install @langchain/openai
# Installing the Anthropic integration
pnpm install @langchain/anthropic
# Installing the OpenAI integration
yarn add @langchain/openai
# Installing the Anthropic integration
yarn add @langchain/anthropic
# Installing the OpenAI integration
bun add @langchain/openai
# Installing the Anthropic integration
bun add @langchain/anthropic
See the Integrations tab for a full list of available integrations.
Now that you have LangChain installed, you can get started by following the Quickstart guide.
Set up LangSmith tracing to debug your first LangChain app. Follow the tracing quickstart to get started. We recommend you also set up LangSmith Engine which monitors your traces, detects issues, and proposes fixes.