CreateWithAIHub

Library LangChain

LangChain

Open-source framework for building LLM agents and apps with a standard interface across model providers.

LLM app frameworkFreeOpen source
Visit website ↗
Save

What it is

LangChain is a framework for building agents and LLM-powered applications by combining interoperable components and third-party integrations. It provides create_agent, a configurable agent harness built on LangGraph, plus a standard interface for chat models, embeddings and vector stores across providers. It pairs with LangSmith for tracing and evaluation, and a JavaScript/TypeScript version is maintained separately.

What it's useful for

Building a tool-using agent or RAG application that can switch between model providers without rewriting code.

Key features

  • create_agent harness for model, tools, prompt and middleware
  • Standard interface for chat models and embeddings across providers
  • Large library of integrations (models, tools, vector stores, retrievers)
  • Agents built on LangGraph for persistence and human-in-the-loop
  • Tracing and evaluation via LangSmith
  • Separate LangChain.js for JavaScript/TypeScript

How to use it

Before you start

  • Python 3.11 or later
Install with uv
uv add langchain
Install with pip (with OpenAI integration)
pip install -qU langchain "langchain[openai]"

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Alternatives

Open-source Python framework for building LLM agents, event-driven workflows and RAG over your own data.

FreeOpen source

deepset's open-source Python framework for building RAG pipelines and agent workflows with explicit control over context.

FreeOpen source

Stanford NLP framework for programming language-model pipelines in Python and optimizing their prompts and weights.

FreeOpen source

MCP servers for this

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Community MCP server and Blender addon that let an AI agent model, light and render scenes in a running Blender.

Free plan + paidOpen source

Skills for this

Hugging Face's Agent Skills for the Hub CLI, datasets, model training, evaluation, Spaces and SageMaker deployment.

FreeOpen source

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Open-source Python library for building AI agents that browse and act on websites, with an optional hosted cloud.

FreeOpen source

OpenAI's Apache-2.0 open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, for local and self-hosted use.

FreeOpen source

Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.

Free plan + paid

Anthropic's family of proprietary large language models (Opus, Sonnet, Haiku tiers) for reasoning, coding and agents.

Paid

Type to search. Use ↑ ↓ and Enter.