The MetaGPT repository provides a multi-agent framework for natural language programming and software development.
Lagent
Lagent provides a lightweight framework for building agents powered by large language models.

About Lagent
Lagent is an open-source, lightweight Python framework for building agents powered by large language models, maintained by InternLM and hosted on GitHub. It uses a PyTorch-inspired layer-based design that lets users define agent workflows by creating layers and specifying message passing between them in a Pythonic way. The framework includes built-in utilities for agent session memory management, custom LLM input message aggregation, and standardized agent message communication schemas. It supports integration with LLM models such as those run via VllmModel, and provides example code for building multi-agent applications.
Key features
- Lightweight open-source Python framework for LLM agent development
- PyTorch-inspired layer-based workflow for defining agent logic
- Built-in agent session memory management with reset functionality
- Custom message aggregation for adjusting LLM input formatting
- Standardized AgentMessage schema for agent communication
- Supports integration with LLM models like VllmModel
- Open-source, free to use and modify
- Pythonic layer-based design simplifies agent workflow creation
- Includes built-in memory and message aggregation utilities to reduce boilerplate
Lagent at a glance
- Website
- github.com/InternLM/lagent
- Category
- AI & Machine Learning › AI Agent Frameworks
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
Lagent alternatives
Tools and sites you could use instead, ranked by how closely they match.
The MetaGPT repository presents a multi-agent framework for natural language programming.
ConnectOnion provides command line tools for building and running AI agents.
mempalace offers an open-source memory system designed for use with AI agents.
AutoGen provides a programming framework for developing agentic AI systems.
OpenAGI provides a package for creating agents that combine language models and domain expertise.
Popular in AI Agent Frameworks
Well-known listings from the same topic.
Lagent FAQ
How do you install Lagent?
How does Lagent manage agent session memory?
Can message aggregation be customized in Lagent?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












