Lagent
Lightweight PyTorch-inspired framework from InternLM for building LLM-based agents.
Updated
✨ Try AgentScout's free AI image generator →Good for: building AI agents
Use cases
About Lagent
Lagent is listed in our frameworks category and is aimed at builders. Lightweight PyTorch-inspired framework from InternLM for building LLM-based agents. Pricing, as the maker states it: Open source. Maturity: Active. We last checked the official link on 2026-12-01.
What is Lagent?
Lagent is InternLM's lightweight Python framework for building LLM agents, designed by analogy with PyTorch: agents are like layers, and you define how messages pass between them. Agents communicate with AgentMessage objects, and every forward pass adds input and output messages to the agent's memory as state.
It works with locally served models such as vLLM-hosted Qwen or InternLM, supports tool use and multi-agent composition, and is installed from source with pip. Apache-2.0.
Sources: the official README and our directory listing, checked 2026-10-29. Official site: github.com/InternLM/lagent.
Who is Lagent for?
Python developers and researchers who like PyTorch-style composition for multi-agent systems.
Lagent at a glance
- Open source: Yes (Apache 2.0)
- GitHub: InternLM/lagent · 2,280 stars (as of Dec 2, 2026)
Key features
- PyTorch-inspired agent and message design
- AgentMessage-based communication
- Memory as state across forward passes
- Local model backends such as vLLM
- Multi-agent composition and tools
Lagent FAQ
What is Lagent?
Lagent is InternLM's lightweight Python framework for building LLM agents, designed by analogy with PyTorch: agents are like layers, and you define how messages pass between them. Agents communicate with AgentMessage objects, and every forward pass adds input and output messages to the agent's memory as state.
Who is Lagent for?
Python developers and researchers who like PyTorch-style composition for multi-agent systems.
Is Lagent free?
Lagent's pricing, as the maker states it: Open source. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.
Is Lagent open source?
Yes. Lagent is released under Apache 2.0, according to its GitHub repository.
Which models does Lagent support?
It includes wrappers for locally served models (for example via vLLM) and API models; the README examples use Qwen and InternLM.
What are alternatives to Lagent?
Similar tools include Haystack, VoltAgent, Upsonic, Lyzr, Agent Squad and Exam Platform.
Lagent ratings and reviews
Be the first to rate Lagent: tap 1 to 5 stars below. A written review is optional.
Lagent alternatives
Other frameworks tools in our directory. See all frameworks tools →
Haystack
Open-source orchestration framework for building production LLM apps, RAG and agents.
VoltAgent
TypeScript agent framework plus an engineering platform for building, observing and deploying AI agents.
Upsonic
Python framework for building autonomous AI agents.
Lyzr
Enterprise agent studio and framework for building secure AI agents.
Agent Squad
Framework for routing conversations across multiple specialized AI agents.
Exam Platform
Exam Platform is an open-source project for people building AI agents.