LibreAI / AI Agents / langroid
// agents · langroid/langroid

langroid

Langroid: a principled Python framework for building LLM multi-agent applications (from CMU/UW researchers)

★ 4.1k stars⑂ 415 forksMITupdated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

langroid is an open-source ai agents project by langroid (langroid/langroid on GitHub). It has 4,112 GitHub stars and 415 forks, is released under the MIT license, and was last updated on GitHub on 8 October 2026.

GitHub stars
4,112
Forks
415
License
MIT
Last updated on GitHub
8 October 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Design your agents

    Sketch which agents you need (chat, document Q&A, SQL) and which LLM each will use.

  2. Install Langroid

    Install from PyPI, adding extras for your vector store or database.

  3. Build agents and tasks

    Create ChatAgents, attach tools, wrap them in Tasks, and wire the message flow.

  4. Run and iterate

    Run the task graph, inspect the conversation, and refine prompts and tools.

// features

Why people love it

Agents + Tasks model

ChatAgents (LLM + tools + optional vector store) wrapped in Tasks that collaborate via message exchange.

Any LLM

OpenAI models, local models, OpenRouter, and gateway providers through one configuration approach.

ToolMessages function-calling

A clean abstraction for tool use and structured extraction from LLM output.

Ready-made agents

DocChatAgent for RAG over documents and SQLChatAgent for natural-language database queries.

MCP adapter

Convert tools from any MCP server into Langroid ToolMessages automatically.

Many vector stores

Qdrant built in, with pgvector, Milvus, Weaviate, and Pinecone available as extras.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone the project and enter its directory (library users can install from PyPI instead).

    git clone https://github.com/langroid/langroid.git
    cd langroid
  2. Install Langroid

    Install the package, adding extras for your stack if needed.

    pip install langroid
  3. Build your first agents

    Follow the README examples to create a ChatAgent, wrap it in a Task, and run a two-agent exchange with your LLM key or local model configured.

    # see README examples for the exact agent/task code
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains Langroid?

Researchers from Carnegie Mellon University and the University of Wisconsin–Madison lead Langroid, with community contributors.

Is Langroid free?

Yes, MIT-licensed. LLM usage costs depend on the provider or local models you configure.

Does it need a paid API key?

Only for hosted LLMs; local models (for example via Ollama-style endpoints) work without keys.

How does it compare to LangChain or AutoGen?

Langroid deliberately avoids LangChain and centers on a small actor-style abstraction — Agents wrapped in Tasks exchanging messages — aiming for code that is easier to reason about than graph-heavy frameworks.

How do I get started?

Run `pip install langroid`, configure an LLM, and follow the README's first ChatAgent/Task example.

// keep exploring

Similar tools

AI Agents

TradingAgents

Multi-agent LLM framework that mirrors a trading firm: analysts, researchers, trader and risk team

★ 110.3k starsApache-2.0
View guide →
AI Agents

RagaAI-Catalyst

Python SDK for Agent AI Observability, Monitoring and Evaluation Framework. Includes features like agent, llm and tools tracing, debugging multi-agentic syst…

★ 16.2k starsApache-2.0
View guide →
AI Agents

agent-framework

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

★ 13.9k starsMIT
View guide →
AI Agents

Haystack

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and…

★ 26.6k starsApache-2.0
View guide →
AI Agents

arcade-mcp

A Python framework for building MCP servers and agent tools.

★ 1.0k starsMIT
View guide →
AI Agents

babyagi

Yohei Nakajima's autonomous task agent - now a self-building agent framework in Python

★ 22.4k starsMIT
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if langroid is not the right fit.

Get langroid

Free and open — grab the source, star the repo, and start creating.