三寻猿
发布于 2026-03-07 / 7 阅读 / 0 评论 / 0 点赞

OpenClaw的几个坑

记录自己使用OpenClaw的时候遇到的坑,不定期更新

1、不能自动执行命令且

检查配置文件~/.openclaw/openclaw.json的tools > profile是否为messaging,如果是,改为full,重启gateway即可。

2、没有长期记忆

表现是~/.openclaw/memory和~/.openclaw/workspace/memory为空,这种状态下OpenClaw基本没有长期记忆,全靠当前对话上下文。解决办法是,首先执行openclaw update升级到2026.3.2及以上版本,然后执行openclaw onboard,下一步到Enable hooks这一步,勾选"boot-md"、"bootstrap-extra-files"、"session-memory",重启gateway即可。

嫌交互式配置麻烦的,可以直接编辑文件~/.openclaw/openclaw.json,新增hooks配置如下

{
  "models": {}
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "boot-md": {
          "enabled": true
        },
        "bootstrap-extra-files": {
          "enabled": true
        },
        "session-memory": {
          "enabled": true
        }
      }
    }
  },
  "plugins", {}
}

3、安装skills报错Error: Rate limit exceeded

去https://clawhub.ai/搜索skill后下载压缩包,然后到~/.openclaw/workspace/skills文件夹下以skill名字创建一个文件夹,然后将压缩包解压到文件夹里,重启gateway即可。

4、钉钉channel的安装

钉钉官方有文档,但没说清楚。如果你装的不对,比如在linux上装了dingtalk-connector,机器人会一直报错“ 响应中断: Gateway error: 404 - Not Found”

  • 如果是linux,应该安装clawdbot-dingtalk。文档:https://open.dingtalk.com/document/dingstart/deployment-alibaba-cloud-ecs-server

  • 如果是macos,应该安装dingtalk-connector。文档:https://open.dingtalk.com/document/dingstart/install-openclaw-locally


评论