windows下虽然支持openclaw但是实际操作openclaw这样那样的问题一堆根据大家反馈我为大家整理了Windows 系统下 OpenClaw 的完整操作指令列表。一、基础操作命令新手必会命令功能描述示例openclaw --version查看当前版本号openclaw --version→OpenClaw 2026.3.8openclaw --help查看所有命令与参数openclaw --helpopenclaw setup最小化初始配置生成基础配置文件openclaw setupopenclaw onboard启动交互式配置向导推荐新手使用openclaw onboard --install-daemonopenclaw configure交互式配置向导覆盖模型、通道、技能等openclaw configureopenclaw dashboard打开 Web 控制台自动跳转浏览器openclaw dashboardopenclaw tui打开终端对话界面TUI 模式openclaw tuiopenclaw doctor健康检查 自动修复openclaw doctor --deep --yesopenclaw reset清空配置重新配置删除配置、凭据、会话等openclaw resetopenclaw update更新到最新版本openclaw updateopenclaw uninstall卸载 Gateway 服务和本地数据openclaw uninstall二、Gateway 网关管理命令核心命令功能描述示例openclaw gateway前台启动网关当前终端运行CtrlC 停止openclaw gatewayopenclaw gateway run同gateway前台运行模式openclaw gateway runopenclaw gateway start后台启动网关服务openclaw gateway startopenclaw gateway stop停止网关服务openclaw gateway stopopenclaw gateway restart重启网关服务配置修改后常用openclaw gateway restartopenclaw gateway status查看网关运行状态openclaw gateway statusopenclaw gateway probe探测网关连接排查连接问题openclaw gateway probeopenclaw gateway discover发现本地网络中的网关实例openclaw gateway discoveropenclaw gateway install安装为系统服务开机自启openclaw gateway installopenclaw gateway uninstall卸载系统服务openclaw gateway uninstallopenclaw gateway call method调用特定 RPC 方法openclaw gateway call health三、模型管理命令Models命令功能描述示例openclaw models list列出所有可用模型openclaw models listopenclaw models status查看当前默认模型openclaw models statusopenclaw models set id设置默认模型openclaw models set anthropic/claude-sonnet-4-6openclaw models scan扫描并更新可用模型列表openclaw models scanopenclaw models auth add添加模型提供商认证openclaw models auth add anthropicopenclaw models auth setup-token设置 API Tokenopenclaw models auth setup-tokenopenclaw models aliases list列出模型别名openclaw models aliases listopenclaw models aliases add添加模型别名openclaw models aliases add gpt-5 openai/gpt-5.2openclaw models fallbacks list列出故障转移模型openclaw models fallbacks list四、技能管理命令Skills命令功能描述示例openclaw skills list列出所有已安装技能openclaw skills listopenclaw skills info name查看技能详细信息openclaw skills info githubopenclaw skills check检查技能状态openclaw skills checkopenclaw skill reload重新加载技能列表安装新技能后执行openclaw skill reload安装技能的三种方式powershell# 方式1通过 ClawHub 官方可能触发限速 npx clawhub install skill-name # 方式2通过 SkillHub 国内镜像需正确格式 skillhub install owner/repo # 方式3手动安装最可靠 cd $env:USERPROFILE\.openclaw\skills git clone https://github.com/owner/repo.git skill-name cd skill-name npm install # 如果有依赖 openclaw skill reload五、通道管理命令Channels命令功能描述示例openclaw channels list列出所有已配置通道openclaw channels listopenclaw channels status查看通道连接状态openclaw channels status --probeopenclaw channels logs查看通道日志openclaw channels logsopenclaw channels add添加新通道openclaw channels add --channel telegramopenclaw channels remove移除通道openclaw channels remove telegramopenclaw channels login登录通道如 WhatsApp 扫码openclaw channels loginopenclaw channels logout登出通道openclaw channels logout常用通道配置示例powershell# Telegram openclaw channels add --channel telegram --token 你的Bot Token # Discord openclaw channels add --channel discord --token 你的Bot Token # 飞书v2026.2.12 原生支持 openclaw channels add --channel feishu --app-id AppID --app-secret Secret六、Agent 管理命令命令功能描述示例openclaw agent --message text运行单次 Agent 对话openclaw agent --message 你好openclaw agents list列出所有配置的 Agentsopenclaw agents listopenclaw agents add [name]添加新 Agentopenclaw agents add my-agentopenclaw agents delete id删除指定 Agentopenclaw agents delete my-agentopenclaw agents bindings列出路由绑定openclaw agents bindingsopenclaw agents bind绑定 Agent 到通道/群组openclaw agents bindopenclaw agents unbind解绑路由openclaw agents unbind七、浏览器自动化命令Browser命令功能描述示例openclaw browser status查看浏览器状态openclaw browser statusopenclaw browser start启动浏览器openclaw browser startopenclaw browser stop停止浏览器openclaw browser stopopenclaw browser open url打开指定网页openclaw browser open https://github.comopenclaw browser screenshot截取当前页面openclaw browser screenshotopenclaw browser snapshot获取页面内容快照openclaw browser snapshotopenclaw browser click selector点击元素openclaw browser click #buttonopenclaw browser type selector text输入文本openclaw browser type #input helloopenclaw browser navigate url导航到 URLopenclaw browser navigate https://example.com八、定时任务命令Cron命令功能描述示例openclaw cron list列出所有定时任务openclaw cron list --allopenclaw cron status查看定时任务状态openclaw cron statusopenclaw cron add添加定时任务openclaw cron add --name daily --cron 0 9 * * * --system-event 检查邮件openclaw cron run --id name立即运行任务openclaw cron run --id dailyopenclaw cron enable --id name启用任务openclaw cron enable --id dailyopenclaw cron disable --id name禁用任务openclaw cron disable --id dailyopenclaw cron runs --id name查看任务运行历史openclaw cron runs --id daily --limit 10九、系统与日志命令命令功能描述示例openclaw logs查看日志openclaw logs --followopenclaw logs --follow实时跟踪日志调试用openclaw logs --followopenclaw status查看系统状态openclaw status --deepopenclaw health健康检查openclaw healthopenclaw sessions list列出会话openclaw sessions listopenclaw system event发送系统事件openclaw system event --text 重启提醒openclaw system heartbeat last显示最后心跳openclaw system heartbeat lastopenclaw backup create创建备份openclaw backup createopenclaw backup verify验证备份openclaw backup verify 文件名十、配置管理命令Config命令功能描述示例openclaw config get key获取配置项openclaw config get gateway.portopenclaw config set key value设置配置项openclaw config set gateway.port 8080openclaw config unset key删除配置项openclaw config unset gateway.port常用配置示例powershell# 设置模型 API Key openclaw config set providers.anthropic.apiKey sk-ant-your-key # 设置网关端口 openclaw config set gateway.port 18789 # 设置默认模型 openclaw config set agents.defaults.model anthropic/claude-sonnet-4-6 # 禁用内存搜索低内存设备 openclaw config set agents.defaults.memorySearch.enabled falseWindows 用户特别注意事项路径格式Windows 使用反斜杠\但 OpenClaw 命令中建议用正斜杠/或双反斜杠\\权限问题遇到权限错误时以管理员身份运行 PowerShellWSL 推荐部分命令如skillhub在 WSL 中运行更稳定环境变量配置持久化环境变量powershell[Environment]::SetEnvironmentVariable(OPENCLAW_API_KEY, your-key, User)查看帮助任何命令都可以加--help查看详细参数如powershellopenclaw gateway --help openclaw models set --help