Cooragent支持Python 3.12+环境,提供conda和venv两种标准化的安装方案:
- environmental preparation:首先克隆GitHub仓库(git clone https://github.com/LeapLabTHU/cooragent.git)
- virtualized environment:推荐使用conda创建专属环境(conda create -n cooragent python=3.12)
- Dependent Installation:通过pip install -e .安装核心依赖,可选安装Playwright等浏览器工具
- Key Configurations:复制.env.example为.env文件,需配置:
- API密钥(如OpenAI等模型接入凭证)
- MCP_AGENT=True启用代理通信协议
- USE_BROWSER=True启用网页爬虫功能
- validation test:运行python cli.py检查安装状态
特别注意:Windows用户需要参照官方文档安装额外依赖项,如遇到环境问题建议检查uv工具配置和PATH环境变量设置。
This answer comes from the articleCooragent: building a multi-intelligence task collaboration tool in one sentenceThe