全部文档
当前文档

暂无内容

如果没有找到您期望的内容,请尝试其他搜索词

文档中心

在云服务器上部署Moltbot

最近更新时间:2026-01-28 18:52:56

Moltbot(原Clawdbot) 是一款开源的个人AI助手和智能代理系统,旨在帮助用户通过日常消息平台(如 Telegram、WhatsApp、Slack、Discord 等)与AI进行交互,并自动执行任务、自动化工作流程、管理文件等操作。

在云服务器上自托管部署,既保证数据和AI调用密钥的隐私安全,又支持24/7稳定运行与远程访问。同时可按需弹性扩展计算资源,满足多用户、多平台并发使用,运维升级便捷,是企业或个人高效使用 AI 助手的理想方案。

准备部署环境

配置项

说明

示例

支持的地域

无地域限制,建议在海外节点创建实例和部署服务,降低网络延迟。

东南亚节点(新加坡D可用区)

实例

推荐Linux云服务器,保证至少2核 vCPU、4GB内存、50GB系统盘。

机型:高效型SE9

实例规格:SE9.2B

镜像

Linux发行版本镜像,如Ubuntu、CentOS等。推荐使用金山云定制版镜像,已预装 Moltbot(原Clawdbot)服务,无需复杂配置。

推荐使用金山云定制版镜像

镜像名称:Ubuntu 22.04 Molbot

网络

建议搭配公网弹性IP使用,确保可从外部访问Web UI/Gateway 服务。

API Key

Moltbot通过AI模型生成对话、自动化任务和内容处理,需要调用大模型API。用户需提供有效API Key用于访问模型服务,实现智能对话和任务执行能力。

Molbot当前支持的模型提供商包括OpenAPI、Anthropic、Moonshot AI(Kimi)、MiniMax等,更多模型提供商请参考Clawdbot官网。推荐使用金山云星流模型 API 服务以获得良好兼容性和性能。

配置Moltbot

配置信息总览

配置项

描述

建议配置

I understand this is powerful and inherently risky. Continue?

Moltbot提醒用户该功能有高权限风险,确认操作后才允许继续 onboarding。

勾选 “Yes” ,确保明确风险。

Onboarding mode

初次引导模式,用于快速完成基础配置,包括模型、渠道、hooks 等设置。

使用QuickStart模式,快速上手并生成默认配置。

Model/auth provider

选择大模型提供商以及认证方式,用于 Moltbot 调用大模型 API。

推荐使用金山云星流模型API服务(选择 “Skip for now"),后续进行配置。

Filter models by provider

是否仅显示选定提供商的模型,避免选择不支持的模型。

选择 "All providers"。

Default model

设置 Moltbot 启动后默认使用的模型。

使用默认配置。

Select channel (QuickStart)

初始渠道选择,用于快速部署和测试 Moltbot 消息收发。

选择 “Skip for now”,后续进行配置。

Configure skills now? (recommended)

是否立即配置agent技能,包括自定义指令、工具链等。

选择 “No”,后续进行配置。

Enable hooks?

是否启用内部hooks,如command-logger、session-memory等功能。

按空格键选中选项,按回车键进入下一步。建议选中:

  1. command-logger:用于记录Moltbot/Clawdbot在执行过程中的所有命令,用于审计或调试

  2. session-memory:为Moltbot 提供上下文记忆能力

  1. 在金山云星流大模型API服务平台,前往API Key管理,新建API Key。

    请妥善保管API Key,一旦泄露,第三方可能冒用您的身份执行操作,导致意外的API调用费用。

  2. 根据建议配置创建一台云服务器并登录,输入以下命令进入配置页面。

clawdbot onboard
  1. 阅读安全须知后,选择Yes即可

  1. Onboarding模式选择QuickStart(快速开始)

  1. 在Model/auth provider中选择Skip for now,后续进行配置。

  1. 在Filter models by provider中选择All providers

  1. 在Default model中选择默认配置。

  1. 在Select channel中选择skip for now,后续进行配置。

  1. 在Configure skills now中选择No,后续进行配置。

  1. 在Enable hooks中使用空格键选中command-logger与session-memory,按回车进入下一步。

修改配置信息

  1. 在终端中查看

cat ~/.clawdbot/clawdbot.json
  1. 修改配置文件

{
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "agents": {
    "defaults": {
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      },
      "compaction": {
        "mode": "safeguard"
      },
      "workspace": "/home/ubuntu/clawd"
    }
  },
  "gateway": {
    "mode": "local",
    "auth": {
      "mode": "token",
      "token": "71a089ae0f3d7fb8eaf7282714428efd6b9e322fbf35a57d"
    },
    "port": 18789,
    "bind": "loopback",
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "remote": {
      "token": "71a089ae0f3d7fb8eaf7282714428efd6b9e322fbf35a57d"
    }
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "command-logger": {
          "enabled": true
        },
        "session-memory": {
          "enabled": true
        }
      }
    }
  },
  "wizard": {
    "lastRunAt": "2026-01-28T09:18:25.892Z",
    "lastRunVersion": "2026.1.24-3",
    "lastRunCommand": "doctor",
    "lastRunMode": "local"
  },
  "meta": {
    "lastTouchedVersion": "2026.1.24-3",
    "lastTouchedAt": "2026-01-28T09:18:25.899Z"
  }
}

ssh -i "C:\Users\KC\Downloads\shuyitest" -N -L 18789:127.0.0.1:18789 ubuntu@104.250.53.228

{
  "meta": {
    "lastTouchedVersion": "2026.1.24-3",
    "lastTouchedAt": "2026-01-27T08:01:28.453Z"
  },
  "wizard": {
    "lastRunAt": "2026-01-27T07:34:55.069Z",
    "lastRunVersion": "2026.1.24-3",
    "lastRunCommand": "onboard",
    "lastRunMode": "local"
  },
  "auth": {
    "profiles": { // Authentication configuration information
      "volcengine:default": {
        "provider": "volcengine",
        "mode": "api_key"
      }
    }
  },
  "models": {
    "providers": {
      "volcengine": {
        "baseUrl": "https://ark.cn-beijing.volces.com/api/coding/v3", // Base URL for Coding Plan
        "apiKey": "<ARK_API_KEY>", // Replace with the actual API KEY
        "api": "openai-completions",
        "models": [ // Model supported by Coding Plan
          {
            "id": "ark-code-latest",
            "name": "ark-code-latest"
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": { // Model information
      "model": {
        "primary": "volcengine/ark-code-latest"
      },
      "models": {
        "volcengine/ark-code-latest": {
          "alias": "volcengine"
        }
      },
      "workspace": "/Users/*****/clawd", // Pay attention to path permissions for MacOS and Windows
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "command-logger": {
          "enabled": true
        },
        "session-memory": {
          "enabled": true
        }
      }
    }
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "<YOUR_GATEWAY_TOKEN>" // Replace with the corresponding TOKEN, which can be obtained in Overview - Gateway Token
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    }
  },
  "plugins": { // Plugin configuration information
    "entries": {}
  }
}

文档导读
纯净模式常规模式

纯净模式

点击可全屏预览文档内容
文档反馈