Langroid: AI agents that collaborate through messages
Langroid is an open source Python framework, designed by researchers from Carnegie Mellon and the University of Wisconsin-Madison, for building applications in which several AI agents exchange messages. It suits Python developers who want a clean multi-agent architecture that doesn't depend on LangChain.
Data as of October 22, 2026
Key figures
| Developer | Langroid (projet open source de chercheurs issus de Carnegie Mellon et de l'université du Wisconsin-Madison) |
|---|---|
| Type | Code |
| Languages | Python |
| Open source | Yes |
| License | MIT |
| First release | 2023 |
| Suggested level | Intermediate |
| Use cases | multi-agent, RAG, data |
| Self-hostable | Yes |
| Business model | Free |
| Cloud offering | No |
| Multi-agent | Yes |
| MCP support | Yes |
| Bring your own model | Yes |
| Official site | Official site · Documentation · Repository |
GitHub
| Repository | langroid/langroid |
|---|---|
| GitHub stars | 4,119 |
| Forks | 428 |
| Latest code activity | October 20, 2026 |
| Latest release | 0.69.13 (October 20, 2026) |
GitHub activity checked on October 22, 2026.
An approach inspired by the actor model
Langroid starts from a simple idea: an AI agent is an object you can equip, as needed, with a language model, a vector store and tools. You then wrap it in a Task, and tasks hand work to each other by sending messages, much like the actor model in computer science. You don’t need to know that model to use the framework; the payoff is multi-agent systems whose logic stays readable.
The project dates back to 2023, and its authors used it in a research paper published in 2024 (ML for Healthcare) on pharmacovigilance, built on a multi-agent RAG architecture.
What you can do with it
Langroid ships ready-made specialist agents: one that answers questions from documents (RAG), another that queries a SQL database, and a tool mechanism (ToolMessage) that also produces structured output, handy for pulling key fields out of a contract or a report. An adapter turns the tools of any MCP server into Langroid tools.
Getting started
Install the langroid package with pip, configure a model (an OpenAI key or a local model served by Ollama), then create a chat agent and wrap it in a task. The official Colab quick-start notebook builds a two-agent information-extraction example step by step, with nothing to install on your machine. A separate examples repository covers more advanced cases.
Strengths and limitations
Strengths: a coherent, lightweight architecture, independence from LangChain, support for local models, built-in RAG and SQL agents, and an MIT license.
Limitations: Python only; a smaller community than the big frameworks, so fewer third-party tutorials; and a project run by a small team with invitation-only contributions, which matters if you are choosing for the long term.
Alternatives
CrewAI and AutoGen are well-known Python multi-agent frameworks, LlamaIndex specializes in querying documents, and Atomic Agents also bets on a lightweight design.
Frameworks of the same type
- CAMEL · multi-agent, data, automation
- Agno · multi-agent, workflows, RAG
- Amazon Bedrock Agents / AgentCore · multi-agent, RAG, workflows
- BeeAI Framework · multi-agent, workflows, RAG
- DSPy · RAG, workflows, data
- LlamaIndex · RAG, data, workflows
Frequently asked questions
Does Langroid depend on LangChain?
No. Despite the similar name, Langroid was written from scratch and uses neither LangChain nor any other LLM framework. The authors chose this deliberately to keep the code easier to follow.
Can I use Langroid with a local model?
Yes. Langroid works with most models exposed through an OpenAI-compatible API, including models running locally via Ollama. The repository includes an information-extraction example that uses only a local model.
Is Langroid free?
Yes. It is MIT-licensed and there is no paid hosted version. You only pay for model usage if you call a commercial API. Separately, the founder offers consulting on an individual basis.
Can I contribute to the project?
Code contributions are by invitation. You first open a GitHub issue explaining the real-world application that motivates the change.
Data sources
- github.com
- langroid.github.io
- langroid.github.io
- GitHub — Repository metadata: GitHub
Data as of October 22, 2026
Report an error
Does a figure, a date or a fact look wrong? Tell us: every report is checked.