🦞 OpenClaw 文档中心

完整的OpenClaw安装、配置和使用指南

常用命令

查看和管理模型

# 查看已配置的模型列表
openclaw models

# 在TUI中查看模型
openclaw tui
/model  # 在TUI中输入此命令查看模型列表

OpenClaw Web UI

# 打开Web UI(带Token)
openclaw dashboard

# 打开Web UI不自动打开浏览器
openclaw dashboard --no-open

Gateway管理

# 启动Gateway
openclaw gateway

# 重启Gateway
systemctl restart openclaw-gateway

# 查看Gateway状态
systemctl status openclaw-gateway

# 查看Gateway日志
journalctl -u openclaw-gateway -f

设备和配对

# 查看已配对的设备
openclaw devices list

# 批准新设备配对
openclaw pairing approve feishu D22ND67F

# 列出待配对的设备
openclaw devices list --pending

配置管理

# 查看配置
openclaw config get 

# 修改配置
openclaw config set  

# 启动配置向导
openclaw configure

# 查看完整配置文件
cat /root/.openclaw/openclaw.json

飞书集成命令

# 配置飞书App ID
openclaw config set channels.feishu.appId "cli_xxxxx"

# 配置飞书App Secret
openclaw config set channels.feishu.appSecret "your_secret"

# 启用飞书
openclaw config set channels.feishu.enabled true

# 配置Webhook Token
openclaw config set channels.feishu.webhookSecret "your_token"

# 批准飞书用户配对
openclaw pairing approve feishu <配对码>

# 允许所有用户使用(开放模式)
openclaw config set channels.feishu.auth.mode open
openclaw config set channels.feishu.dmPolicy open
openclaw config set channels.feishu.allowFrom '["*"]' --json

健康检查

# 运行健康检查
openclaw doctor

# 自动修复问题
openclaw doctor --fix

日志和调试

# 查看Gateway日志
journalctl -u openclaw-gateway -f

# 查看最近100行日志
journalctl -u openclaw-gateway -n 100

# 查看实时日志(带追踪级别)
openclaw --log-level debug gateway