瀏覽數: 191

AI 一山有比一山高,每天都有新驚喜
本文目錄
1、什麼是 OpenManus
OpenManus 是一個開源框架,旨在複製 Manus AI ,由MetaGPT 團隊破解正在內測中的Manus AI,並由團隊成員mannaandpoem在Github開源,是一個能自主執行複雜任務的先進通用 AI 代理。OpenManus 允許開發者使用大型語言模型(如 GPT-4o)來構建和自訂 AI 代理,適合教育和研究用途。

1.1、如何開始?
首先 OpenManus有兩種安裝方法:使用 Conda 或 uv(推薦)。推薦使用uv 安裝會更簡便快速,適合初學者。安裝過程複製並編輯 config.toml 檔案,添加 API 密鑰(如 OpenAI 的),並運行 python main.py 來啟動代理,通過終端輸入任務使用。
1.2、自訂與擴展
OpenManus 是模組化架構,可以研究現有代理結構,創建繼承基類的新代理,定義規劃、工具使用和觀察方法,適合教學中探索 AI 代理的靈活性。
1.3、需要注意的小細節
OpenManus 可以在短短三小時內構建,目前在 GitHub 上獲得超過 16,000 星,顯示在開源社區具有非常高的熱度,但需要注意 ,配置API 密鑰可能會碰到一些問題而卡關。
根據 OpenManus: the Open-Source Alternative to Manus AI,OpenManus 是一個基於大型語言模型(如 GPT-4o)的 AI 代理框架,能夠思考(計劃)、行動(執行工具)和觀察(處理結果),實現複雜目標。其模組化設計包括多代理系統,如專案經理(理解需求)、策略專家(分解任務)和技術專家(執行操作),適合快速原型設計、數據提取和自訂工作流程自動化,Manus 在GAIA Benchmark 評分達86.5%高於OpenAI的74.3%

1.4、為什麼使用 OpenManus?
- 可訪問性:開源免費,無需邀請碼,任何人都能使用。
- 自訂性:允許根據特定需求修改和擴展。
- 社區支持:活躍的開發者社區,提供貢獻和支援,見 GitHub — mannaandpoem/OpenManus。
- 教育價值:適合教學,幫助學習者探索 AI 代理的設計和實現。
2、Install
OpenManus 提供兩種安裝方法:Conda 和 uv,根據 How to Install & Run OpenManus Locally with Ollama — No API Keys Required,uv 的Build方法因其速度和管理效率被推薦。
安裝環境配置 : Ubuntu Server 12.04
2.1、install uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
2.2、Clone the repository by github
git clone https://github.com/mannaandpoem/openmanus
cd openmanus
2.3、build Virtual Environment
uv venv
source .venv/bin/activate # Unix/macOS
# 或
. .venv\Scripts\activate # Windows
2.4、Install Dependencies
uv pip install -r requirements.txt
3、Configuration
環境完成安裝後就是進行配置
3.1、Clone config sample files
cp config/config.example.toml config/config.toml
3.2、Edit config files (config.toml)
添加 LLM 的 API 密鑰(如 OpenAI):
自訂模型、基礎 URL、最大標記數、溫度等設定。
範例:
[openai]
api_key = "your_api_key_here"
model = "gpt-4o"
base_url = "https://api.openai.com/v1"
max_tokens = 4096
temperature = 0.0
除了openai 之外還可以選用其他的LLM,如deepseek
4、Run OpenManus
4.1 Run the script
python main.py
4.2 Interact with agents
- 通過終端輸入任務或想法,例如「幫我研究旅遊計劃」。
- 代理會自動處理並執行任務,根據 OpenManus Online — AI Agent as a Service,適合快速的原型設計。
4.3 Creating a custom proxy
OpenManus 的模組化設計允許創建自訂代理,根據 GitHub — henryalps/OpenManus,可在 agent 目錄下研究現有實現。
安裝方法比較

結論
OpenManus 提供了一個強大且靈活的平台來構建 AI 代理。通過遵循此指南,你可以設置並開始使用 OpenManus 進行教學和學習,探索自主 AI 代理的世界。根據 OpenManus, A Powerful Open-Source AI Agent Alternative to Manus AI,其社區熱情高,GitHub 星數超過 16,000,適合教育用途。
本篇文章由唄粉智能科技(ShellFans AI Technology 自建之OpenManus 所撰寫,並由CTO Kirin 負責建置、審稿
參考文獻
- OpenManus: the Open-Source Alternative to Manus AI
- GitHub — mannaandpoem/OpenManus
- How to Install & Run OpenManus Locally with Ollama — No API Keys Required
- Beginner’s Guide to Installing Openmanus
- Code Explanation: “OpenManus: An Autonomous Agent Platform”
- How to Run Open Manus on macOS: Step by Step Installation
- Run Open Manus on Ubuntu: Step by Step Installation
- OpenManus Online — AI Agent as a Service
- GitHub — henryalps/OpenManus
- OpenManus, A Powerful Open-Source AI Agent Alternative to Manus AI