langroid is a free, open source ai development platforms project written in Python and released under MIT. It has 4,103 GitHub stars, 400 forks and 52 open issues, and was last pushed 38 hours ago. On this registry it ranks #51 of 61 tracked projects in AI Development Platforms, with 5 head-to-head comparisons available.

What is langroid?

What it is

Langroid is a Python framework for building applications powered by large language models through multiple agents. It comes from researchers at CMU and UW-Madison, and it lives in the Python AI development ecosystem. Developers create agents, give them optional components such as a language model, a vector store, and tools or functions, and assign tasks that the agents solve by exchanging messages.

The concrete problem it addresses is the coordination of LLM-based work inside a software application. Instead of treating a language model as a single chat endpoint, Langroid models the application as a set of communicating agents. This approach is inspired by the Actor Framework, and it is intended to make agent behavior easier to structure, test, and extend in Python projects.

Key capabilities

  • It lets agents exchange messages to complete assigned tasks.
  • It supports optional components, including language models, vector stores, and tools or functions.
  • It supports function calling and information retrieval.
  • It connects to MCP servers through an adapter that converts server tools into Langroid ToolMessage instances.
  • It works without depending on LangChain or another LLM framework.
  • It offers an optional Claude Code plugin.

Who uses it and how

  • Developers build Python applications where agents interact with a language model, retrieve information, and call tools or functions.
  • Teams use the multi-agent structure to split a larger problem into assigned tasks solved through message exchanges.
  • Users can experiment with the quick-start notebook in Google Colab before using the framework locally.
  • Developers can expose MCP server tools to agents as Langroid messages.
  • The README reports that Nullify adapted the framework in production for secure software development.

Getting started

Install Langroid from PyPI, run the quick-start notebook in Google Colab, or use the multi-architecture DockerHub images. Documentation and examples are available from the project homepage.

When to use it — and when not to

Langroid is useful when a Python project needs a lightweight framework for composing multiple LLM agents with vector stores and function calls, and when the team can operate the supporting model, storage, and integration choices itself. It is less suitable when a project needs a framework with a larger visible contributor base, since the registry entry shows contributors as unavailable and 52 open issues. Compared with CrewAI, Autogen, LangChain, and Langflow, Langroid claims independence from LangChain and other LLM frameworks, but that claim should be verified against the current code.

project readme (upstream, from github) — read inline

Logo

PyPI - Version Downloads Pytest codecov Multi-Architecture DockerHub

Static Badge Open in Colab Discord Substack

Documentation · Examples Repo · Discord · Contributing

Langroid is an intuitive, lightweight, extensible and principled Python framework to easily build LLM-powered applications, from CMU and UW-Madison researchers. You set up Agents, equip them with optional components (LLM, vector-store and tools/functions), assign them tasks, and have them collaboratively solve a problem by exchanging messages. This Multi-Agent paradigm is inspired by the Actor Framework (but you do not need to know anything about this!).

Langroid is a fresh take on LLM app-development, where considerable thought has gone into simplifying the developer experience; it does not use Langchain, or any other LLM framework, and works with practically any LLM.

🔥 ✨ A Claude Code plugin is available to accelerate Langroid development with built-in patterns and best practices.

🔥 Read the (WIP) overview of the langroid architecture, and a quick tour of Langroid.

🔥 MCP Support: Allow any LLM-Agent to leverage MCP Servers via Langroid's simple MCP tool adapter that converts the server's tools into Langroid's ToolMessage instances.

📢 Companies are using/adapting Langroid in production. Here is a quote:

Nullify uses AI Agents for secure software development. It finds, prioritizes and fixes vulnerabilities. We have internally adapted Langroid's multi-agent orchestration framework in production, after evaluating CrewAI, Autogen, LangChain, Langflow, etc. We found Langroid to be far superior to those frameworks in terms of ease of setup and flexibility. Langroid's Agent and Task abstractions are intuitive, well thought out, and provide a great developer experience. We wanted the quickest way to get something in production. With other frameworks it would have taken us weeks, but with Langroid we got to good results in minutes. Highly recommended!
-- Jacky Wong, Head of AI at Nullify.

🔥 See this Intro to Langroid blog post from the LanceDB team

🔥 Just published in ML for Healthcare (2024): a Langroid-based Multi-Agent RAG system for pharmacovigilance, see blog post

We welcome contributions: See the contributions document for ideas on what to contribute.

Are you building LLM Applications, or want help with Langroid for your company, or want to prioritize Langroid features for your company use-cases? Prasad Chalasani is available for consulting (advisory/development): pchalasani at gmail dot com.

Sponsorship is also accepted via GitHub Sponsors

Questions, Feedback, Ideas? Join us on Discord!

Quick glimpse of coding with Langroid

This is just a teaser; there's much more, like function-calling/tools, Multi-Agent Collaboration, Structured Information Extraction, DocChatAgent (RAG), SQLChatAgent, non-OpenAI local/remote LLMs, etc. Scroll down or see docs for more. See the Langroid Quick-Start Colab that builds up to a 2-agent information-extraction example using the OpenAI ChatCompletion API. See also this version that uses the OpenAI Assistants API instead.

🔥 just released! Example script showing how you can use Langroid multi-agents and tools to extract structured information from a document using only a local LLM (Mistral-7b-instruct-v0.2).

import langroid as lr
import langroid.language_models as lm

# set up LLM
llm_cfg = lm.OpenAIGPTConfig( # or OpenAIAssistant to use Assistant API 
  # any model served via an OpenAI-compatible API
  chat_model=lm.OpenAIChatModel.GPT4o, # or, e.g., "ollama/mistral"
)
# use LLM directly
mdl = lm.OpenAIGPT(llm_cfg)
response = mdl.chat("What is the capital of Ontario?", max_tokens=10)

# use LLM in an Agent
agent_cfg = lr.ChatAgentConfig(llm=llm_cfg)
agent = lr.ChatAgent(agent_cfg)
agent.llm_response("What is the capital of China?") 
response = agent.llm_response("And India?") # maintains conversation state 

# wrap Agent in a Task to run interactive loop with user (or other agents)
task = lr.Task(agent, name="Bot", system_message="You are a helpful assistant")
task.run("Hello") # kick off with user saying "Hello"

# 2-Agent chat loop: Teacher Agent asks questions to Student Agent
teacher_agent = lr.ChatAgent(agent_cfg)
teacher_task = lr.Task(
  teacher_agent, name="Teacher",
  system_message="""
    Ask your student concise numbers questions, and give feedback. 
    Start with a question.
    """
)
student_agent = lr.ChatAgent(agent_cfg)
student_task = lr.Task(
  student_agent, name="Student",
  system_message="Concisely answer the teacher's questions.",
  single_round=True,
)

teacher_task.add_sub_task(student_task)
teacher_task.run()

🔥 Updates/Releases

Click to expand
  • Aug 2026:
    • 0.67.0 Security hardening: per-provider env_prefix for vector-store configs (env-var naming change -- see migration notes), generalized taint propagation across tool re-emission paths, and a one-time warning when FileAttachment payloads inflate context preflight.
    • 0.66.0 Big community batch (14 PRs): Milvus vector store (thanks @zc277584121); Markdown/HTML document parsing (thanks @nuthalapativarun); cooperative max_time task budgets, MCP tool namespacing for multi-server agents, and portable JSON chat-history snapshots (thanks @Whxuan0701); video attachments (thanks @octo-patch); retrieval score thresholds (thanks @Koushik-Salammagari); even [context-overflow truncation](https:

readme truncated — read the full docs on github

Frequently asked questions

Is langroid free to use?

langroid is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does langroid do?

Harness LLMs with Multi-Agent Programming

What is langroid written in?

langroid is primarily written in Python. Its source is publicly available at https://github.com/langroid/langroid, and it has 4,103 GitHub stars.