Alpha Notice: These docs cover the v1-alpha release. Content is incomplete and subject to change.For the latest stable version, see the v0 LangChain Python or LangChain JavaScript docs.
To install the core LangChain package
Copy
Ask AI
npm install langchain@next
LangChain provides integrations to hundreds of LLMs and thousands of other integrations. To avoid package bloat, these live in independent provider packages.Common packages:
Copy
Ask AI
# Installing the OpenAI integrationnpm install @langchain/openai@next# Installing the Anthropic integrationnpm install @langchain/anthropic@next
See the integrations page for a full list of available integrations.