一、环境准备
部署环境可以是本地环境也可以是云上环境。云上环境还没领取的可以看我的往期文章:
【AI部署】腾讯云每月1w小时免费GPU获取
https://blog.csdn.net/qq_45349888/article/details/144878428
【AI部署】阿里云部署满血版DeepSeek
https://blog.csdn.net/qq_45349888/article/details/145930406
二、开始部署
这是openmanus的官网:
https://github.com/mannaandpoem/OpenManus
依赖安装
1、创建Conda环境
conda create -n open_manus python=3.12
conda activate open_manus
2、获取项目
git clone https://github.com/mannaandpoem/OpenManus.git
cd OpenManus
3、安装依赖
pip install -r requirements.txt
配置
在目录中创建一个config.toml文件config(您可以从示例中复制):
cp config/config.example.toml config/config.toml
编辑config/config.toml以添加您的 API 密钥并自定义设置:
# Global LLM configuration
[llm]
model = "gpt-4o"
base_url = "https://api.openai.com/v1"
api_key = "sk-..." # Replace with your actual API key
max_tokens = 4096
temperature = 0.0
# Optional configuration for specific LLM models
[llm.vision]
model = "gpt-4o"
base_url = "https://api.openai.com/v1"
api_key = "sk-..." # Replace with your actual API key
其中key那块可以去这个项目去登陆获取:
https://github.com/chatanywhere/GPT_API_free
项目启动:
运行 OpenManus 的一行:
python main.py
然后通过终端输入你的想法!
对于不稳定版本,您还可以运行:
python run_flow.py
于是,你就可以得到一个智能agent,并在终端中输入你的想法: