MetaGPT Agent工作流 是 AI Skill Hub 本期精选AI工具之一。在 GitHub 上收获超过 67.9k 颗 Star,综合评分 8.5 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
MetaGPT Agent工作流 是一款基于 Python 开发的开源工具,专注于 多智能体、工作流自动化、LLM应用 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
MetaGPT Agent工作流 是一款基于 Python 开发的开源工具,专注于 多智能体、工作流自动化、LLM应用 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install metagpt
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install metagpt
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/FoundationAgents/MetaGPT
cd MetaGPT
pip install -e .
# 验证安装
python -c "import metagpt; print('安装成功')"
# 命令行使用
metagpt --help
# 基本用法
metagpt input_file -o output_file
# Python 代码中调用
import metagpt
# 示例
result = metagpt.process("input")
print(result)
# metagpt 配置文件示例(config.yml) app: name: "metagpt" debug: false log_level: "INFO" # 运行时指定配置文件 metagpt --config config.yml # 或通过环境变量配置 export METAGPT_API_KEY="your-key" export METAGPT_OUTPUT_DIR="./output"
<p align="center"> <a href=""><img src="docs/resources/MetaGPT-new-log.png" alt="MetaGPT logo: Enable GPT to work in a software company, collaborating to tackle more complex tasks." width="150px"></a> </p>
<p align="center"> [ <b>En</b> | <a href="docs/README_CN.md">中</a> | <a href="docs/README_FR.md">Fr</a> | <a href="docs/README_JA.md">日</a> ] <b>Assign different roles to GPTs to form a collaborative entity for complex tasks.</b> </p>
<p align="center"> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a> <a href="https://discord.gg/DYn29wFk9z"><img src="https://img.shields.io/badge/Join-Discord-gGnrXvVz7a?logo=discord" alt="Discord Follow"></a> <a href="https://twitter.com/MetaGPT_"><img src="https://img.shields.io/twitter/follow/MetaGPT?style=social" alt="Twitter Follow"></a> </p>
Ensure that Python 3.9 or later, but less than 3.12, is installed on your system. You can check this by using:python --version. You can use conda like this:conda create -n metagpt python=3.9 && conda activate metagpt
```bash pip install --upgrade metagpt
```
Install node and pnpm before actual use.
For detailed installation guidance, please refer to cli_install or docker_install
metagpt --init-config # it will create ~/.metagpt/config2.yaml, just modify it to your needs
You can configure `~/.metagpt/config2.yaml` according to the [example](https://github.com/geekan/MetaGPT/blob/main/config/config2.example.yaml) and [doc](https://docs.deepwisdom.ai/main/en/guide/get_started/configuration.html):
yaml llm: api_type: "openai" # or azure / ollama / groq etc. Check LLMType for more options model: "gpt-4-turbo" # or gpt-3.5-turbo base_url: "https://api.openai.com/v1" # or forward url / other llm url api_key: "YOUR_API_KEY" ```
After installation, you can use MetaGPT at CLI
metagpt "Create a 2048 game" # this will create a repo in ./workspace
or use it as library
from metagpt.software_company import generate_repo
from metagpt.utils.project_repo import ProjectRepo
repo: ProjectRepo = generate_repo("Create a 2048 game") # or ProjectRepo("<path>")
print(repo) # it will print the repo structure with files
You can also use Data Interpreter to write code:
import asyncio
from metagpt.roles.di.data_interpreter import DataInterpreter
async def main():
di = DataInterpreter()
await di.run("Run data analysis on sklearn Iris dataset, include a plot")
asyncio.run(main()) # or await main() in a jupyter notebook setting
https://github.com/user-attachments/assets/888cb169-78c3-4a42-9d62-9d90ed3928c9
You can init the config of MetaGPT by running the following command, or manually create ~/.metagpt/config2.yaml file: ```bash
MetaGPT是业界领先的多智能体框架,Star数67.9k证明其实用价值。架构完善、维护活跃,是构建复杂AI系统的优选方案,但学习曲线较陡。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,MetaGPT Agent工作流 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | MetaGPT |
| 原始描述 | 开源AI工作流:🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Languag。⭐67.9k · Python |
| Topics | 多智能体工作流自动化LLM应用AI协作开源框架 |
| GitHub | https://github.com/FoundationAgents/MetaGPT |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。