LangChain vs samples
LangChain and samples are both agent frameworks for Python. LangChain is published by LangChain and samples by strands-agents. On GitHub, LangChain has 148,371 stars and samples has 913. Both were last active in Oct 2026. The table lines up where they differ (publisher, license, GitHub stars and weekly downloads) and has the install commands for both. Everything here comes from the listings' public sources and is refreshed daily. LangChain describes itself as: Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it. samples: Sample projects for the Strands Agents SDK, showing how to build agents in Python and TypeScript; not intended for production use. Licenses: LangChain MIT, samples Apache-2.0.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
LangChain
LangChain
Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it.
samples
strands-agents
Sample projects for the Strands Agents SDK, showing how to build agents in Python and TypeScript; not intended for production use.
Who should pick which
- Pick samples if you work in TypeScript.
- LangChain has the larger community: 148,371 GitHub stars against 913.
From listing data only. We don't pick a winner on security beyond the grades; read how grades work.
Side by side
| Fact | LangChain | samples |
|---|---|---|
| Type | Harness | Harness |
| Publisher | LangChain | strands-agents |
| License | MIT | Apache-2.0 |
| Pricing | Not stated | Not stated |
| Runs | Not stated | Not stated |
| Auth | Not stated | Not stated |
| Hosts supported | Not stated | Not stated |
| Tools | Not listed yet | Not listed yet |
| Security grade | –Security: not graded yet | –Security: not graded yet |
| Freshness grade | AFreshness: A | AFreshness: A |
| GitHub stars | 148,371 | 913 |
| Weekly downloads | 37,334,710 | 8,886,357 |
| Last release | Oct 22, 2026 | Unknown |
| Last activity | Oct 24, 2026 | Oct 21, 2026 |
Facts from each listing's public sources, checked daily. Tool lists arrive with tool scans.
Install
LangChain
pip install langchain
samples
pip install strands-agents
Also consider
- 0.853score
LlamaIndex
LlamaIndex
Open-source Python toolkit for RAG and agents over your own data, with event-driven workflows and 300+ integration packages.
HarnessAFreshness: A★ 52.6K↓ 1.4M/wk - 0.851score
Strands Agents
AWS
Open-source Python and TypeScript SDK for model-driven agents, with tools, MCP, multi-agent patterns and streaming.
HarnessAFreshness: A★ 8.9K↓ 8.9M/wk - 0.841score
GitHub Copilot SDK
GitHub
Multi-language SDKs for embedding the GitHub Copilot agent runtime, with planning, tool calls and file edits, in your apps.
HarnessAFreshness: A★ 10.6K↓ 1.2M/wk
Questions
- Is LangChain or samples more popular?
- LangChain has more GitHub stars (148,371 against 913). Stars measure attention, not quality, so check freshness and docs too.
- Are LangChain and samples open source?
- Yes: LangChain is MIT and samples is Apache-2.0.
Related
Cite this page
LangChain vs samples. Agent Mart. https://agentmart.dev/compare/langchain-vs-samples (last updated 2026-10-26)