Skip to main content
Agent Frameworks & OrchestrationProduction

LangChain

langchain-ai / langchain

An LLM application framework: component abstractions for models, tools, retrieval, memory and agents; LangGraph handles stateful orchestration and LangSmith observability.

150.0k stars 25161 forks Python Language MIT License Last push 2026-11-20

Why choose it

  • The largest ecosystem, with adapters for most models, vector stores and tools.
  • Components for everything from simple chains to agents make starting fast.
  • Forms a full stack with LangGraph and LangSmith.

Not for

Many abstraction layers can over-wrap a simple call.
Fast-moving versions require pinning and reading migration notes.
Not an inference engine or hosting platform.

Minimum setup

  1. pip install langchain and make one call through the unified model interface.
  2. Add a retriever and a tool to build a minimal chain.
  3. Move to LangGraph only when state or branching is needed; do not stack components on day one.

Dependencies and cost

Python; a provider API key or local endpoint; vector stores and tools bring their own dependencies.

License and usage boundaries

MIT; integrated models, vector stores and tools carry their own licences.

Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

Alternatives and neighbors

  • LangGraph — Production,Write an agent as a stateful graph: nodes, edges, checkpoints, human approval and rollback are explicit.
  • CrewAI — Start here,Build multi-agent teams from roles, tasks and a collaboration process; good for getting division of labour running quickly.
  • AutoGen — Production,Microsoft’s multi-agent framework built around conversable agents, tool use and distributed execution.

Next steps

  • Open GitHub and read the README, LICENSE, latest release and issues first.
  • Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • Run a small sample first, then decide on production; never start with production data.

GitHub repository ↗ Docs ↗ Add to compare

Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.