n/ubuntuu/BearPaw · 8 个月前
注册 登录
n/ubuntu · 8 个月前 · 已编辑 · 210 次浏览
u/BearPaw钻石

OpenClaw 运维最有用的 4 个诊断命令

1️⃣ 查看 AI 是否正常运行(最重要)

docker logs --tail=50 openclaw-openclaw-gateway-1

作用:

  • 查看最近日志
  • 看有没有报错
  • 看插件是否加载
  • 看 memory 是否启动

例如正常会看到:

gateway started
memory initialized
plugins loaded

如果有错误也会在这里。


2️⃣ 查看 AI 模型配置

进入容器:

docker exec -it openclaw-openclaw-gateway-1 bash

然后:

openclaw models list

你会看到:

openrouter/anthropic/claude-3.5-sonnet
moonshot/kimi-k2.5
deepseek/deepseek-chat
deepseek/deepseek-reasoner

重点看:

default,configured

说明默认模型。


3️⃣ 查看长期记忆系统状态(embedding)

openclaw memory status --deep

你会看到类似:

Provider: gemini
Model: gemini-embedding-001
Indexed: 2 files
Vector: ready
Embeddings: ready

关键看三行:

项目 正常状态
Provider gemini
Vector ready
Embeddings ready

如果不正常这里会报错。


4️⃣ 查看插件系统

openclaw plugins list

你现在应该会看到:

qqbot

如果以后装插件:

telegram
discord
slack

都会在这里。


⭐ 一条命令查看所有状态(推荐)

以后你只要进入容器运行:

openclaw doctor

它会自动检查:

models
memory
plugins
config
network

如果有问题会直接提示。

例如:

Config invalid
Memory provider missing
Plugin failed

这个命令就是 OpenClaw 的健康检查工具。


⭐ 知识小彩蛋

可以实时看 AI 工作状态:

docker logs -f openclaw-openclaw-gateway-1

效果类似:

QQ message received
memory search
model call
response sent

你可以看到 AI 每一步在干什么。

4
4
登录后参与讨论。

4 条回复

排序
  1. lovoup 钻石 3 YEARS 8 个月前

    板凳,谢谢分享

    1
  2. weicheng 黄金 8 个月前

    感谢分享

    0
  3. w-d 钻石 8 个月前

    感谢分享

    0
  4. JinMukun 钻石 3 YEARS 8 个月前

    没用龙虾,没必要

    0