# langroid

> langroid is an open-source agent framework for multi-agent frameworks. Python framework where LLM agents wrap tasks and delegate work to sub-agents. It is available on self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** self-hosted
- **Website:** https://langroid.github.io/langroid/
- **Repository:** https://github.com/langroid/langroid
- **GitHub stars:** 4,152
- **License:** MIT
- **Categories:** multi-agent frameworks
- **Listing updated:** 2026-11-14

## About

Langroid treats an agent as the holder of conversation state, optional vector-store memory and tools. A task wraps an agent with instructions and runs it in turns across three responders: the LLM, the agent and the user. Tasks can contain sub-tasks, which behave as extra responders, giving hierarchical delegation.

The docs describe support for local and hosted models, Redis-based caching of prompts and responses, and the vector stores Qdrant, Chroma, LanceDB and Milvus for retrieval-augmented generation with source citations. The authors say the design draws on the Actor model. It suits Python developers who want a small, transparent orchestration layer.

## Features

- **Agent and Task classes:** Agents hold state and tools; tasks give them instructions and manage turns.
- **Hierarchical delegation:** Sub-tasks act as additional responders for recursive task splitting.
- **Wide LLM support:** Works with local and remote models through several libraries.
- **Vector-store retrieval:** Supports Qdrant, Chroma, LanceDB and Milvus for RAG.
- **Prompt caching:** Uses Redis by default to cache prompts and responses.

## Good for

- Build a multi-agent pipeline in Python
- Add retrieval over documents with source citations
- Delegate subtasks between specialised agents
- Run agents against local open models

## FAQ

### Which vector stores work?

Qdrant, Chroma, LanceDB and Milvus are listed as supported.

### Can it use local models?

Yes, the docs say it works with local or remote models; guides cover non-OpenAI LLMs.

### What licence applies?

MIT.

### Is langroid free?

Yes. langroid is open source, so you can use and self-host it for free.

### What are the best alternatives to langroid?

The closest alternatives to langroid are hermes-agent, deepseek-harness, langchain, deer-flow and ruflo.

## Alternatives

- [hermes-agent](https://ai-powered.com/agents/hermes-agent): hermes-agent is a freemium open-source agent for ai models and llm tooling.
- [deepseek-harness](https://ai-powered.com/agents/deepseek-harness): deepseek-harness is an open-source agent for multi-agent frameworks.
- [langchain](https://ai-powered.com/agents/langchain): langchain is an open-source agent framework for ai models and llm tooling.
- [deer-flow](https://ai-powered.com/agents/deer-flow): deer-flow is an open-source agent for ai models and llm tooling.
- [ruflo](https://ai-powered.com/agents/ruflo-2): ruflo is an open-source agent framework for knowledge and memory.
- [autogen](https://ai-powered.com/agents/autogen): autogen is an open-source agent framework for multi-agent frameworks.
- [CowAgent](https://ai-powered.com/agents/cowagent): CowAgent is an open-source agent for personal assistants.
- [QwenPaw](https://ai-powered.com/agents/qwenpaw): QwenPaw is an open-source agent for personal assistants.

---
Source: https://ai-powered.com/agents/langroid
