{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"OpenClaw の統合","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"openclaw-の統合","__idx":0},"children":["OpenClaw の統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OpenClaw"]}," は、強力な AI エージェント フレームワークです。 MoreLogin スキルを OpenClaw ワークスペースにインストールすると、エージェントはブラウザ プロファイルとクラウド電話を自律的に完全に管理できるようになります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://nodejs.org/"},"children":["Node.js"]}," v18 以降"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/openclaw-ai/openclaw"},"children":["OpenClaw"]}," がインストールされ、初期化されました"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["同じマシン上で実行されている MoreLogin デスクトップ アプリ (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http://localhost:40000"]}," のローカル API)"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"インストールとセットアップ","__idx":2},"children":["インストールとセットアップ"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-openclaw-をインストールします-まだインストールされていない場合","__idx":3},"children":["1. OpenClaw をインストールします (まだインストールされていない場合)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g openclaw\nopenclaw init    # Creates ~/.openclaw/workspace/\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["初期化後のワークスペース構造は次のようになります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"~/.openclaw/\n├── workspace/\n│   ├── skills/          ← Skill plugins live here\n│   │   └── morelogin/   ← MoreLogin skill (you will create this)\n│   ├── TOOLS.md         ← Tool configuration file\n│   └── ...\n└── config.yaml          ← OpenClaw global config\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2moreloginスキルをインストールする","__idx":4},"children":["2.MoreLoginスキルをインストールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["公式スキル リポジトリのクローンを OpenClaw スキル ディレクトリに作成します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Clone the skill into the correct location\ngit clone https://github.com/MoreLoginBrowser/morelogin-local-api-skill.git \\\n  ~/.openclaw/workspace/skills/morelogin\n\n# Install dependencies\ncd ~/.openclaw/workspace/skills/morelogin\nnpm install\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["そのスキルはどこから来たのですか?"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"スキルのソース コードは、GitHub の ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/MoreLoginBrowser/morelogin-local-api-skill"},"children":["MoreLoginBrowser/morelogin-local-api-skill"]}," でホストされています。このリポジトリには、OpenClaw が MoreLogin と対話するために使用する CLI ラッパーと API バインディングが含まれています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3-openclaw-ツールを構成する","__idx":5},"children":["3. OpenClaw ツールを構成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MoreLogin ツール定義を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.openclaw/workspace/TOOLS.md"]}," ファイルに追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"markdown","header":{"controls":{"copy":{}}},"source":"### Morelogin\n\n- Install Path: /Applications/Morelogin.app (macOS) or C:\\Program Files\\MoreLogin (Windows)\n- Default CDP Port: 9222\n- Local API: http://localhost:40000\n","lang":"markdown"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"4-インストールの確認","__idx":6},"children":["4. インストールの確認"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["簡単なテストを実行して、スキルが正しくインストールされていることを確認します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"openclaw morelogin browser list --page 1 --page-size 5\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MoreLogin アプリが実行されている場合は、ブラウザー プロファイル (または空のリスト) を含む JSON 応答が表示されるはずです。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"スキルの更新","__idx":7},"children":["スキルの更新"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["最新バージョンに更新するには:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"cd ~/.openclaw/workspace/skills/morelogin\ngit pull origin main\nnpm install\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["アップグレードする前に、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://github.com/MoreLoginBrowser/morelogin-local-api-skill/releases"},"children":["リリース ノート"]}," で重大な変更がないか確認してください。"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-コマンドリファレンス","__idx":8},"children":["CLI コマンドリファレンス"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["MoreLogin スキルは、CLI コマンドを OpenClaw 環境に直接公開します。エージェントは推論中にこれらを自動的に呼び出しますが、テストのために手動で実行することもできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ブラウザプロファイル","__idx":9},"children":["ブラウザプロファイル"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List profiles\nopenclaw morelogin browser list --page 1 --page-size 20\n\n# Start a profile (Returns debugPort for CDP connection)\nopenclaw morelogin browser start --env-id abc123def\n\n# View running status\nopenclaw morelogin browser status --env-id abc123def\n\n# Close profile\nopenclaw morelogin browser close --env-id abc123def\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クラウドフォン","__idx":10},"children":["クラウドフォン"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List cloud phones\nopenclaw morelogin cloudphone list --page 1 --page-size 20\n\n# Start/Stop\nopenclaw morelogin cloudphone start --id <cloudPhoneId>\nopenclaw morelogin cloudphone stop --id <cloudPhoneId>\n\n# Get details (Includes ADB connection info)\nopenclaw morelogin cloudphone info --id <cloudPhoneId>\n\n# Execute cloud phone command via ADB\nopenclaw morelogin cloudphone exec --id <cloudPhoneId> --command \"ls /sdcard\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"プロキシとグループ管理","__idx":11},"children":["プロキシとグループ管理"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Proxy\nopenclaw morelogin proxy list\nopenclaw morelogin proxy add --payload '{\"proxyIp\":\"1.2.3.4\",\"proxyPort\":8000,\"proxyType\":0}'\n\n# Group\nopenclaw morelogin group list\nopenclaw morelogin group create --name \"US-Group\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"最小限のエンドツーエンドの例","__idx":12},"children":["最小限のエンドツーエンドの例"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下は、ブラウザー プロファイルの作成、起動、CDP 経由で URL へのアクセス、プロファイルを閉じる完全な例です。これらはすべて OpenClaw エージェントによって調整されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"自然言語プロンプト","__idx":13},"children":["自然言語プロンプト"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「新しい MoreLogin ブラウザ プロファイルを作成し、google.com を開いてスクリーンショットを撮り、閉じます。」"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"エージェントが実行する内容","__idx":14},"children":["エージェントが実行する内容"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# 1. Create a browser profile\nopenclaw morelogin browser create --name \"demo-profile\"\n# → Returns: {\"envId\": \"abc123def\"}\n\n# 2. Start the profile\nopenclaw morelogin browser start --env-id abc123def\n# → Returns: {\"debugPort\": \"9222\", \"webdriver\": \"/path/to/chromedriver\"}\n\n# 3. Connect via CDP (agent uses Puppeteer internally)\n# The agent connects to ws://127.0.0.1:9222 and runs:\n#   - page.goto(\"https://www.google.com\")\n#   - page.screenshot({path: \"screenshot.png\"})\n\n# 4. Close the profile\nopenclaw morelogin browser close --env-id abc123def\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"同等のスクリプト-nodejs","__idx":15},"children":["同等のスクリプト (Node.js)"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"const { execSync } = require('child_process');\nconst puppeteer = require('puppeteer-core');\n\nasync function main() {\n  // 1. Create profile\n  const createResult = JSON.parse(\n    execSync('openclaw morelogin browser create --name \"demo-profile\"').toString()\n  );\n  const envId = createResult.data.envId;\n\n  // 2. Start profile\n  const startResult = JSON.parse(\n    execSync(`openclaw morelogin browser start --env-id ${envId}`).toString()\n  );\n  const debugPort = startResult.data.debugPort;\n\n  // 3. Connect via CDP and automate\n  const browser = await puppeteer.connect({\n    browserURL: `http://127.0.0.1:${debugPort}`,\n    defaultViewport: null\n  });\n  const page = (await browser.pages())[0];\n  await page.goto('https://www.google.com');\n  await page.screenshot({ path: 'screenshot.png' });\n  console.log('Screenshot saved.');\n\n  // 4. Cleanup\n  await browser.disconnect();\n  execSync(`openclaw morelogin browser close --env-id ${envId}`);\n  console.log('Profile closed.');\n}\n\nmain().catch(console.error);\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エージェントの推論方法","__idx":16},"children":["エージェントの推論方法"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["OpenClaw エージェントに ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["「プロファイルを作成して example.com にログインする」"]}," ように依頼すると、エージェントは次のことを行います。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openclaw morelogin browser create"]}," (または同等の API) を呼び出して ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["envId"]}," を取得します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openclaw morelogin browser start"]}," を呼び出して ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debugPort"]}," を取得します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CDP ツール (Puppeteer/Playwright など) を使用して ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debugPort"]}," に接続し、ログイン手順を実行します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openclaw morelogin browser status"]}," で成功を確認します。"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":17},"children":["トラブルシューティング"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"症状"},"children":["症状"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"解決策"},"children":["解決策"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["command not found: openclaw"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OpenClaw がグローバルにインストールされていることを確認します: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm install -g openclaw"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Error: connect ECONNREFUSED 127.0.0.1:40000"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コマンドを実行する前に MoreLogin デスクトップ アプリを起動します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スキルディレクトリがありません"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["openclaw init"]}," を実行してワークスペースを作成し、スキルのクローンを作成します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["更新後のデータが古い"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["git pull"]},"の後にスキルディレクトリで",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm install"]},"を再度実行します。"]}]}]}]}]}]},"headings":[{"value":"OpenClaw の統合","id":"openclaw-の統合","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"インストールとセットアップ","id":"インストールとセットアップ","depth":2},{"value":"1. OpenClaw をインストールします (まだインストールされていない場合)","id":"1-openclaw-をインストールします-まだインストールされていない場合","depth":3},{"value":"2.MoreLoginスキルをインストールする","id":"2moreloginスキルをインストールする","depth":3},{"value":"3. OpenClaw ツールを構成する","id":"3-openclaw-ツールを構成する","depth":3},{"value":"4. インストールの確認","id":"4-インストールの確認","depth":3},{"value":"スキルの更新","id":"スキルの更新","depth":2},{"value":"CLI コマンドリファレンス","id":"cli-コマンドリファレンス","depth":2},{"value":"ブラウザプロファイル","id":"ブラウザプロファイル","depth":3},{"value":"クラウドフォン","id":"クラウドフォン","depth":3},{"value":"プロキシとグループ管理","id":"プロキシとグループ管理","depth":3},{"value":"最小限のエンドツーエンドの例","id":"最小限のエンドツーエンドの例","depth":2},{"value":"自然言語プロンプト","id":"自然言語プロンプト","depth":3},{"value":"エージェントが実行する内容","id":"エージェントが実行する内容","depth":3},{"value":"同等のスクリプト (Node.js)","id":"同等のスクリプト-nodejs","depth":3},{"value":"エージェントの推論方法","id":"エージェントの推論方法","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2}],"frontmatter":{"seo":{"title":"OpenClaw の統合"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/skills/openclaw","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}