项目地址:GitHub - mannaandpoem/OpenManus: No fortress, purely open ground. OpenManus is Coming.
安装指南
我们提供两种安装方式。推荐使用方式二(uv),因为它能提供更快的安装速度和更好的依赖管理。
方式一:使用 conda
-
创建新的 conda 环境:
conda create -n open_manus python=3.12 conda activate open_manus
-
克隆仓库:
git clone https://github.com/mannaandpoem/OpenManus.git cd OpenManus
-
安装依赖:
pip install -r requirements.txt
方式二:使用 uv(推荐)
-
安装 uv(一个快速的 Python 包管理器):
curl -LsSf https://astral.sh/uv/install.sh | sh
-
克隆仓库:
git clone https://github.com/mannaandpoem/OpenManus.git cd OpenManus
-
创建并激活虚拟环境:
uv venv source .venv/bin/activate # Unix/macOS 系统 # Windows 系统使用: # .venv\Scripts\activate
-
安装依赖:
uv pip install -r requirements.txt
配置说明
OpenManus 需要配置使用的 LLM API,请按以下步骤设置:
-
在
config
目录创建config.toml
文件(可从示例复制):
cp config/config.example.toml config/config.toml
-
编辑
config/config.toml
添加 API 密钥和自定义设置:
# 全局 LLM 配置 [llm] model = "gpt-4o" base_url = "https://api.openai.com/v1" api_key = "sk-..." # 替换为真实 API 密钥 max_tokens = 4096 temperature = 0.0 # 可选特定 LLM 模型配置 [llm.vision] model = "gpt-4o" base_url = "https://api.openai.com/v1" api_key = "sk-..." # 替换为真实 API 密钥
快速启动
一行命令运行 OpenManus:
python main.py
然后通过终端输入你的创意!
如需体验开发中版本,可运行:
python run_flow.py