Development & infrastructure

Decision matrix

LangChain app decision matrix
Overview

LangChain is a free, open-source Python framework for building an agent from a model, tools, a prompt and middleware, with integrations for most model providers. Pick it when you need code-level control over an agent's behaviour. Its own tracing product, LangSmith, is separate and paid past a free tier; you still need to write real code and design your own guardrails.

Other good fits
  • Projects that will call several different model providers and want one framework's integrations to cover them.
Pros
Read pros

LangChain is an open-source Python framework for building agents in code. Its create_agent function wraps a model, a set of tools, a system prompt and middleware into a configurable harness, and it ships integrations for most major model providers so you can swap providers without rewriting your agent logic. It's a framework you write real code against, not a hosted product.

Pick it when…

  • You need to define custom tools and control exactly what an agent can and can't do, in code.
  • You want to try several model providers behind the same agent logic.
  • Your team already works in Python and wants a framework rather than building an agent loop from scratch.
Cons
Read cons

A configurable code framework hands you more decisions than a fixed chat interface: tool permissions, input validation, retries and error handling are all yours to design. Agent output is non-deterministic, so a tool-enabled agent needs guardrails proportionate to what its tools can actually do, especially anything with a side effect like sending an email or writing to a database. Provider integrations require that provider's own package and account; LangChain doesn't remove that provider's own rate limits, costs or data-handling terms.

Pick something else when…

  • You want a visual canvas instead of code. Langflow gives you drag-and-drop flow building and can still serve as an API when you're ready.
  • You want a multi-agent framework built around agent-to-agent collaboration specifically. CrewAI is more opinionated about that pattern.
  • You only need one model API for a small, deterministic task. Calling that provider's own SDK directly is less to learn and maintain.

Avoid if

  • You just need one model API and a small, deterministic request; a provider's own SDK is simpler.
Workflow

Choose a model → define a narrow, specific tool → set a system prompt → invoke with a test message → inspect the messages and tool calls it produced → add only the checks your application actually needs. You still decide tool permissions, input validation and what output is acceptable to act on.

Cost
Read cost

The LangChain framework itself is free and open source, listed alongside LangGraph and deepagents under LangChain's open-source offerings. You still pay your chosen model provider for every call. LangChain's own tracing and observability product, LangSmith, is separate and priced on its own:

LangSmith planPriceWhat you get
Developer$0/seatUp to 5k base traces/month, then pay-as-you-go, 1 seat max
Plus$39/seat/monthUp to 10k base traces/month, then pay-as-you-go, unlimited seats, 1 free small deployment
EnterpriseCustomSelf-hosted/hybrid, custom SSO, dedicated support

Beyond seats, LangSmith usage is billed in compute units (LCU, $1.50 each) and storage units (LSU, $1.00 each). LangSmith is optional; you can use the framework without it, at the cost of losing its trace visibility.

Restrictions

Each provider integration needs that provider's package installed and its own account configured; compatibility, data handling, rate limits and licence terms are the provider's, not something LangChain verifies for you. Check them for whichever provider you choose.

First project

Documentation-based suggestion — not run here.

Build a one-tool internal demo agent.

  1. Write one narrow tool, for example lookup_policy, that returns a fixed, fictional policy string, nothing that touches a real system.
  2. Set a system prompt telling the agent to answer only using that tool's output.
  3. Send a test question that the tool can answer.
  4. Read the full message and tool-call log: did it call the tool, and does its final answer cite only that returned text?

Done when the logged trace shows the agent calling exactly the tool you expected and giving an answer that traces back only to that tool's output, not invented facts.

Links & evidence
Documentation-based · not hands-on · Sep 23, 2026

Rests on LangChain's framework documentation (overview, agents, provider integrations) and its pricing page for LangSmith, checked 23 September 2026. No package was installed and no agent or model call was executed for this review.

  • LangChain overview · Sep 23, 2026 — create_agent harness: model, tools, prompt, middleware.
  • LangChain agents · Sep 23, 2026 — Agent construction and tool-calling documentation.
  • LangChain provider integrations · Sep 23, 2026 — Coverage across multiple model providers.
  • LangChain pricing · Sep 23, 2026 — Framework listed as open source; LangSmith Developer/Plus/Enterprise prices, LCU/LSU usage billing.
Further review notes & alternatives

Alternatives and trade-offs

  • Langflow wins when you want to prototype visually first and only touch code once you need to.
  • CrewAI wins when your design is specifically multiple agents collaborating on a task.
  • A provider's own SDK wins when you need one model and a small, deterministic request, with nothing else to learn.

Learn more

Catalogue facts

Build agents from reusable architectures and model integrations. Orchestrate language models and external tools in Python. Add LangSmith for observability, evaluation, and deployment.

free-tier · cloud · self-host

  • agent framework
  • llm orchestration
  • tool integrations
  • python
  • langsmith
  • write-code
  • open-source
View sourced image

LangChain

Press Escape to close.

LangSmith trace viewer, a companion observability UI for LangChain applications. The LangChain SDK itself has no standalone graphical interface.

LangChain official product documentation

Owner-requested editorial use of public official interface screenshots, 15 September 2026. Copyright retained by the original publisher; attribution preserved. No open licence or hands-on course execution is asserted. Source asset: https://mintcdn.com/langchain-5e9cc07a/EKYgNtnIIDPnseTv/langsmith/images/trace-quickstart-app.png. PNG conversion preserves the complete frame.

Original image source (opens in a new tab)

Browse all tools