Intermediate

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

DeveloperLangroid (projet open source de chercheurs issus de Carnegie Mellon et de l'université du Wisconsin-Madison)
TypeCode
LanguagesPython
Open sourceYes
LicenseMIT
First release2023
Suggested levelIntermediate
Use casesmulti-agent, RAG, data
Self-hostableYes
Business modelFree
Cloud offeringNo
Multi-agentYes
MCP supportYes
Bring your own modelYes
Official siteOfficial site · Documentation · Repository

GitHub

Repositorylangroid/langroid
GitHub stars4,119
Forks428
Latest code activityOctober 20, 2026
Latest release0.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

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

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.