Manusは、ユーザーの思考を具体的な行動に変えることを目指した汎用AIエージェントです。
従来のChatGPTのウェーブ版などが情報提供や提案にとどまるのに対し、Manusは独立してタスクを計画、実行し、結果を提供する能力を持ちます。
この自律的なタスク実行能力により、ビジネスプロセスの自動化、データ分析、コンテンツ生成など、多岐にわたる分野での活用が期待されています。
本記事では、オープンソースのAIエージェントであるOpenManusを、ローカルPC上でデプロイし、実際に試してみる手順を詳しく解説します。Python環境のセットアップから、OpenManusのインストール、そして基本的なタスクの実行方法までをステップバイステップで紹介します。
詳細なインストールステップは既に以下のページで紹介されていますが、自分のメモのため本記事でも書きます。
インストール
Condaを利用していますので、まずAnacondaをインストールします。
ダウンロードしてAnacondaをインストールしたら、Anaconda Promptを起動します。
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
gitを事前にインストールする必要があります。
3. 依存関係をインストールする
pip install -r requirements.txt
OpenManus は、使用する LLM API の設定が必要です。以下の手順に従って設定を行ってください。
1. config.toml ファイルを作成する:config
ディレクトリ内に config.toml
ファイルを作成します(例として config.example.toml
をコピーできます):
cp config/config.example.toml config/config.toml
2. 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
# unstable version
# python run_flow.py
上記で起動して、プロンプトを記入することで動けます。
サンプル指示:Googleを利用して、UiPath Studioに関する記事を10件探して、内容をまとめて、Txtフ ァイルに保存してください。

最後に実行完了したら、ローカルに以下のTxtファイル(uipath_studio_articles_summary.txt)が作成れます。
1. **UiPath Studio Introduction**: This article provides an overview of UiPath Studio, a comprehensive automation tool that allows users to design automation processes visually. It covers the main features and capabilities of the software.
2. **UiPath Studio Download**: This page offers information on how to download UiPath Studio, including system requirements and installation steps.
3. **Creating a Basic Process in UiPath Studio**: This guide walks users through the steps to create a basic automation process using UiPath Studio, highlighting key functionalities and tools available in the software.
4. **UiPath Studio Web Version**: This article introduces the web version of UiPath Studio, explaining its features and how it differs from the desktop version.
5. **UiPath Studio Installation Guide**: This document provides detailed instructions on installing UiPath Studio, including prerequisites and troubleshooting tips.
6. **UiPath Official Site**: The official website of UiPath, offering a wide range of resources, including product information, support, and community forums.
7. **UiPath Studio Introduction (Duplicate)**: Same as the first entry, providing an overview of UiPath Studio.
8. **UiPath Studio 2024.10 Release Notes**: This page contains the release notes for the 2024.10 version of UiPath Studio, detailing new features, improvements, and bug fixes.
9. **UiPath Software Library**: This article explains the concept of libraries in UiPath Studio, how to create and manage them, and their role in reusing automation components.
10. **UiPath Studio Installation Guide (Duplicate)**: Same as the fifth entry, providing installation instructions for UiPath Studio.
実行後、ChatGPTのダッシュボード(Link)消費されたToken数をチェックしたら、16萬Token必要でした。
AlibabaのLLM モデル(Qwen)
他の安いモデル、例えばAlibabaのQWenもあるので、以下ページより試してみてください(100万Tokenの無料枠もある)。

参考:
https://www.youtube.com/watch?v=jYCJV6iYvMk