{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/zh/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Hermes Agent 集成","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":"hermes-agent-集成","__idx":0},"children":["Hermes Agent 集成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Hermes Agent"]}," 是另一个灵活的代理框架。将 MoreLogin 技能集成到 Hermes 中，可以无缝管理浏览器并与云手机交互。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"安装与设置","__idx":1},"children":["安装与设置"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1下载技能","__idx":2},"children":["1.下载技能"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["由于 Hermes 可能不使用与 OpenClaw 相同的工作空间结构，因此您可以将官方 MoreLogin 技能存储库直接拉入您的 Hermes 工具/插件目录中："]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"git clone https://github.com/MoreLoginBrowser/morelogin-local-api-skill.git\ncd morelogin-local-api-skill\nnpm install\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2配置hermes工具注册表","__idx":3},"children":["2.配置Hermes工具注册表"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["要将 MoreLogin CLI 注册为 Hermes 工具，请在代理的配置或工具注册表中定义它。例如，您可以公开底层的 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["node bin/morelogin.js"]}," 命令。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"# Example Hermes Tool Definition\ntools:\n  - name: morelogin_manager\n    description: \"Manage MoreLogin browser profiles and cloud phones.\"\n    command: \"node /path/to/morelogin-local-api-skill/bin/morelogin.js\"\n    env:\n      LOCAL_API_URL: \"http://localhost:40000\"\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-用法和命令","__idx":4},"children":["CLI 用法和命令"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hermes 将直接使用 Node.js 调用该技能。您还可以在终端中测试这些命令，以确保技能安装正确。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"浏览器","__idx":5},"children":["浏览器"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List profiles\nnode bin/morelogin.js browser list --page 1 --page-size 20\n\n# Start a profile (Returns debugPort for CDP connection)\nnode bin/morelogin.js browser start --env-id abc123def\n\n# View running status\nnode bin/morelogin.js browser status --env-id abc123def\n\n# Close profile\nnode bin/morelogin.js browser close --env-id abc123def\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"云手机","__idx":6},"children":["云手机"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# List cloud phones\nnode bin/morelogin.js cloudphone list --page 1 --page-size 20\n\n# Start/Stop\nnode bin/morelogin.js cloudphone start --id <cloudPhoneId>\nnode bin/morelogin.js cloudphone stop --id <cloudPhoneId>\n\n# Get details (Includes ADB connection info)\nnode bin/morelogin.js cloudphone info --id <cloudPhoneId>\n\n# Execute cloud phone command via ADB\nnode bin/morelogin.js cloudphone exec --id <cloudPhoneId> --command \"ls /sdcard\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"代理管理","__idx":7},"children":["代理管理"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Query proxy list\nnode bin/morelogin.js proxy list --page 1 --page-size 20\n\n# Add proxy\nnode bin/morelogin.js proxy add --payload '{\"proxyIp\":\"1.2.3.4\",\"proxyPort\":8000,\"proxyType\":0}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hermes-如何推理","__idx":8},"children":["Hermes 如何推理"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["当指示您的 Hermes 代理时，您可以使用自然语言："]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["“启动我的 MoreLogin 浏览器‘abc123def’，等待调试端口，然后通过 CDP 连接以截取屏幕截图。”"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hermes 将："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["执行 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["node bin/morelogin.js browser start --env-id abc123def"]},"。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["解析 JSON 响应以提取 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["debugPort"]},"。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["使用无头自动化库（如果在 Hermes 中配置）连接到 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["http://127.0.0.1:<debugPort>"]},"。"]}]}]},"headings":[{"value":"Hermes Agent 集成","id":"hermes-agent-集成","depth":1},{"value":"安装与设置","id":"安装与设置","depth":2},{"value":"1.下载技能","id":"1下载技能","depth":3},{"value":"2.配置Hermes工具注册表","id":"2配置hermes工具注册表","depth":3},{"value":"CLI 用法和命令","id":"cli-用法和命令","depth":2},{"value":"浏览器","id":"浏览器","depth":3},{"value":"云手机","id":"云手机","depth":3},{"value":"代理管理","id":"代理管理","depth":3},{"value":"Hermes 如何推理","id":"hermes-如何推理","depth":2}],"frontmatter":{"seo":{"title":"Hermes Agent 集成"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/zh/skills/hermes","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}