当用户遇到以下问题时使用本技能:
收集用户问题信息:
bash
# 检查基础状态
openclaw status
openclaw gateway status
# 检查日志
tail -100 ~/.openclaw/logs/gateway.log
# 检查资源
df -h
free -h
nvidia-smi 2>/dev/null
根据症状定位故障编号:
症状故障编号可能病因启动失败001环境依赖冲突卡死不动002任务死锁工具失效003权限/注册问题显存爆了004模型过大/并发过高记不住事005上下文溢出/文件权限权限报错006API Key 过期/配额用尽胡言乱语007上下文污染/提示词覆盖发错消息008Session 隔离失效Gateway 挂了009内存溢出/配置错误技能没了010路径错误/注册表未更新
bash
npm install --force
npm cache clean --force && npm install
cat ~/.openclaw/config.json | jq .
bash
openclaw gateway restart
openclaw sessions kill <sessionId>
rm -rf ~/.openclaw/workspace/temp/*.lock
bash
openclaw tools list
openclaw tools reload
cat ~/.openclaw/policy.json
bash
nvidia-smi
# config.json: modelQuantization: int8/int4
export PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:512
bash
chmod 644 ~/.openclaw/workspace/memory/*.md
chmod 644 ~/.openclaw/workspace/MEMORY.md
bash
export OPENCLAW_API_KEY=<new_key>
chmod -R u+rw ~/.openclaw/workspace/
bash
openclaw sessions kill <sessionId>
# 重新读取 SOUL.md 和 AGENTS.md
bash
openclaw gateway restart
openclaw config validate
bash
cd ~/.openclaw/skills/<skillName> && npm install
rm ~/.openclaw/skills-index.json && openclaw skills scan
服务类型价格适用场景轻症问诊29-99 元/次启动报错、基础配置深度诊疗199-599 元/次复杂 bug、性能优化月度托管699-1999 元/月长期维护、定期体检