浅谈windows下openclaw的操作指令小结

Written by

in

文章目录
  • 命令 功能描述 示例 openclaw –version 查看当前版本号 openclaw –version → OpenClaw 2026.3.8 openclaw –help 查看所有命令与参数 openclaw –help openclaw setup 最小化初始配置,生成基础配置文件 openclaw setup openclaw onboard 启动交互式配置向导(推荐新手使用) openclaw onboard –install-daemon openclaw configure 交互式配置向导(覆盖模型、通道、技能等) openclaw configure openclaw dashboard 打开 Web 控制台(自动跳转浏览器) openclaw dashboard openclaw tui 打开终端对话界面(TUI 模式) openclaw tui openclaw doctor 健康检查 + 自动修复 openclaw doctor –deep –yes openclaw reset 清空配置重新配置(删除配置、凭据、会话等) openclaw reset openclaw update 更新到最新版本 openclaw update openclaw uninstall 卸载 Gateway 服务和本地数据 openclaw uninstall
  • 命令 功能描述 示例 openclaw gateway 前台启动网关(当前终端运行,Ctrl+C 停止) openclaw gateway openclaw gateway run 同 gateway,前台运行模式 openclaw gateway run openclaw gateway start 后台启动网关服务 openclaw gateway start openclaw gateway stop 停止网关服务 openclaw gateway stop openclaw gateway restart 重启网关服务(配置修改后常用) openclaw gateway restart openclaw gateway status 查看网关运行状态 openclaw gateway status openclaw gateway probe 探测网关连接(排查连接问题) openclaw gateway probe openclaw gateway discover 发现本地网络中的网关实例 openclaw gateway discover openclaw gateway install 安装为系统服务(开机自启) openclaw gateway install openclaw gateway uninstall 卸载系统服务 openclaw gateway uninstall openclaw gateway call <method> 调用特定 RPC 方法 openclaw gateway call health
  • 命令 功能描述 示例 openclaw models list 列出所有可用模型 openclaw models list openclaw models status 查看当前默认模型 openclaw models status openclaw models set <id> 设置默认模型 openclaw models set anthropic/claude-sonnet-4-6 openclaw models scan 扫描并更新可用模型列表 openclaw models scan openclaw models auth add 添加模型提供商认证 openclaw models auth add anthropic openclaw models auth setup-token 设置 API Token openclaw models auth setup-token openclaw models aliases list 列出模型别名 openclaw models aliases list openclaw models aliases add 添加模型别名 openclaw models aliases add gpt-5 openai/gpt-5.2 openclaw models fallbacks list 列出故障转移模型 openclaw models fallbacks list
  • 命令 功能描述 示例 openclaw skills list 列出所有已安装技能 openclaw skills list openclaw skills info <name> 查看技能详细信息 openclaw skills info github openclaw skills check 检查技能状态 openclaw skills check openclaw skill reload 重新加载技能列表(安装新技能后执行) openclaw skill reload 安装技能的三种方式: # 方式1:通过 ClawHub 官方(可能触发限速) npx clawhub install <skill-name> # 方式2:通过 SkillHub 国内镜像(需正确格式) skillhub install <owner>/<repo> # 方式3:手动安装(最可靠) cd $env:USERPROFILE.openclawskills git clone https://github.com/<owner>/<repo>.git <skill-name> cd <skill-name> npm install # 如果有依赖 openclaw skill reload
  • 命令 功能描述 示例 openclaw channels list 列出所有已配置通道 openclaw channels list openclaw channels status 查看通道连接状态 openclaw channels status –probe openclaw channels logs 查看通道日志 openclaw channels logs openclaw channels add 添加新通道 openclaw channels add –channel telegram openclaw channels remove 移除通道 openclaw channels remove telegram openclaw channels login 登录通道(如 WhatsApp 扫码) openclaw channels login openclaw channels logout 登出通道 openclaw channels logout 常用通道配置示例: # 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>”
  • 命令 功能描述 示例 openclaw agent –message <text> 运行单次 Agent 对话 openclaw agent –message "你好" openclaw agents list 列出所有配置的 Agents openclaw agents list openclaw agents add [name] 添加新 Agent openclaw agents add my-agent openclaw agents delete <id> 删除指定 Agent openclaw agents delete my-agent openclaw agents bindings 列出路由绑定 openclaw agents bindings openclaw agents bind 绑定 Agent 到通道/群组 openclaw agents bind openclaw agents unbind 解绑路由 openclaw agents unbind
  • 命令 功能描述 示例 openclaw browser status 查看浏览器状态 openclaw browser status openclaw browser start 启动浏览器 openclaw browser start openclaw browser stop 停止浏览器 openclaw browser stop openclaw browser open <url> 打开指定网页 openclaw browser open https://github.com openclaw browser screenshot 截取当前页面 openclaw browser screenshot openclaw browser snapshot 获取页面内容快照 openclaw browser snapshot openclaw browser click <selector> 点击元素 openclaw browser click "#button" openclaw browser type <selector> <text> 输入文本 openclaw browser type "#input" "hello" openclaw browser navigate <url> 导航到 URL openclaw browser navigate https://example.com
  • 命令 功能描述 示例 openclaw cron list 列出所有定时任务 openclaw cron list –all openclaw cron status 查看定时任务状态 openclaw cron status openclaw cron add 添加定时任务 openclaw cron add –name "daily" –cron "0 9 * * *" –system-event "检查邮件" openclaw cron run –id <name> 立即运行任务 openclaw cron run –id daily openclaw cron enable –id <name> 启用任务 openclaw cron enable –id daily openclaw cron disable –id <name> 禁用任务 openclaw cron disable –id daily openclaw cron runs –id <name> 查看任务运行历史 openclaw cron runs –id daily –limit 10
  • 命令 功能描述 示例 openclaw logs 查看日志 openclaw logs –follow openclaw logs –follow 实时跟踪日志(调试用) openclaw logs –follow openclaw status 查看系统状态 openclaw status –deep openclaw health 健康检查 openclaw health openclaw sessions list 列出会话 openclaw sessions list openclaw system event 发送系统事件 openclaw system event –text "重启提醒" openclaw system heartbeat last 显示最后心跳 openclaw system heartbeat last openclaw backup create 创建备份 openclaw backup create openclaw backup verify 验证备份 openclaw backup verify <文件名>
  • 命令 功能描述 示例 openclaw config get <key> 获取配置项 openclaw config get gateway.port openclaw config set <key> <value> 设置配置项 openclaw config set gateway.port 8080 openclaw config unset <key> 删除配置项 openclaw config unset gateway.port 常用配置示例: # 设置模型 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 false
  • 路径格式:Windows 使用反斜杠 ,但 OpenClaw 命令中建议用正斜杠 / 或双反斜杠 \ 权限问题:遇到权限错误时,以管理员身份运行 PowerShell WSL 推荐:部分命令(如 skillhub)在 WSL 中运行更稳定 环境变量:配置持久化环境变量: [Environment]::SetEnvironmentVariable(“OPENCLAW_API_KEY”, “your-key”, “User”) 查看帮助:任何命令都可以加 –help 查看详细参数,如: openclaw gateway –help openclaw models set –help 到此这篇关于浅谈windows下openclaw的操作指令小结的文章就介绍到这了,更多相关openclaw 操作指令内容请搜索风君子博客以前的文章或继续浏览下面的相关文章,希望大家以后多多支持风君子博客!
  • 目录
    • 一、基础操作命令(新手必会)
    • 二、Gateway 网关管理命令(核心)
    • 三、模型管理命令(Models)
    • 四、技能管理命令(Skills)
    • 五、通道管理命令(Channels)
    • 六、Agent 管理命令
    • 七、浏览器自动化命令(Browser)
    • 八、定时任务命令(Cron)
    • 九、系统与日志命令
    • 十、配置管理命令(Config)
    • Windows 用户特别注意事项

    windows下虽然支持openclaw,但是实际操作openclaw这样那样的问题一堆,根据大家反馈,我为大家整理了 Windows 系统下 OpenClaw 的完整操作指令列表。

    命令 功能描述 示例
    openclaw –version 查看当前版本号 openclaw –version → OpenClaw 2026.3.8
    openclaw –help 查看所有命令与参数 openclaw –help
    openclaw setup 最小化初始配置,生成基础配置文件 openclaw setup
    openclaw onboard 启动交互式配置向导(推荐新手使用) openclaw onboard –install-daemon
    openclaw configure 交互式配置向导(覆盖模型、通道、技能等) openclaw configure
    openclaw dashboard 打开 Web 控制台(自动跳转浏览器) openclaw dashboard
    openclaw tui 打开终端对话界面(TUI 模式) openclaw tui
    openclaw doctor 健康检查 + 自动修复 openclaw doctor –deep –yes
    openclaw reset 清空配置重新配置(删除配置、凭据、会话等) openclaw reset
    openclaw update 更新到最新版本 openclaw update
    openclaw uninstall 卸载 Gateway 服务和本地数据 openclaw uninstall

    命令 功能描述 示例
    openclaw gateway 前台启动网关(当前终端运行,Ctrl+C 停止) openclaw gateway
    openclaw gateway run 同 gateway,前台运行模式 openclaw gateway run
    openclaw gateway start 后台启动网关服务 openclaw gateway start
    openclaw gateway stop 停止网关服务 openclaw gateway stop
    openclaw gateway restart 重启网关服务(配置修改后常用) openclaw gateway restart
    openclaw gateway status 查看网关运行状态 openclaw gateway status
    openclaw gateway probe 探测网关连接(排查连接问题) openclaw gateway probe
    openclaw gateway discover 发现本地网络中的网关实例 openclaw gateway discover
    openclaw gateway install 安装为系统服务(开机自启) openclaw gateway install
    openclaw gateway uninstall 卸载系统服务 openclaw gateway uninstall
    openclaw gateway call <method> 调用特定 RPC 方法 openclaw gateway call health

    命令 功能描述 示例
    openclaw models list 列出所有可用模型 openclaw models list
    openclaw models status 查看当前默认模型 openclaw models status
    openclaw models set <id> 设置默认模型 openclaw models set anthropic/claude-sonnet-4-6
    openclaw models scan 扫描并更新可用模型列表 openclaw models scan
    openclaw models auth add 添加模型提供商认证 openclaw models auth add anthropic
    openclaw models auth setup-token 设置 API Token openclaw models auth setup-token
    openclaw models aliases list 列出模型别名 openclaw models aliases list
    openclaw models aliases add 添加模型别名 openclaw models aliases add gpt-5 openai/gpt-5.2
    openclaw models fallbacks list 列出故障转移模型 openclaw models fallbacks list

    命令 功能描述 示例
    openclaw skills list 列出所有已安装技能 openclaw skills list
    openclaw skills info <name> 查看技能详细信息 openclaw skills info github
    openclaw skills check 检查技能状态 openclaw skills check
    openclaw skill reload 重新加载技能列表(安装新技能后执行) openclaw skill reload

    安装技能的三种方式

    # 方式1:通过 ClawHub 官方(可能触发限速)
    npx clawhub install <skill-name>
    # 方式2:通过 SkillHub 国内镜像(需正确格式)
    skillhub install <owner>/<repo>
    # 方式3:手动安装(最可靠)
    cd $env:USERPROFILE.openclawskills
    git clone https://github.com/<owner>/<repo>.git <skill-name>
    cd <skill-name>
    npm install  # 如果有依赖
    openclaw skill reload

    命令 功能描述 示例
    openclaw channels list 列出所有已配置通道 openclaw channels list
    openclaw channels status 查看通道连接状态 openclaw channels status –probe
    openclaw channels logs 查看通道日志 openclaw channels logs
    openclaw channels add 添加新通道 openclaw channels add –channel telegram
    openclaw channels remove 移除通道 openclaw channels remove telegram
    openclaw channels login 登录通道(如 WhatsApp 扫码) openclaw channels login
    openclaw channels logout 登出通道 openclaw channels logout

    常用通道配置示例

    # 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>"

    命令 功能描述 示例
    openclaw agent –message <text> 运行单次 Agent 对话 openclaw agent –message "你好"
    openclaw agents list 列出所有配置的 Agents openclaw agents list
    openclaw agents add [name] 添加新 Agent openclaw agents add my-agent
    openclaw agents delete <id> 删除指定 Agent openclaw agents delete my-agent
    openclaw agents bindings 列出路由绑定 openclaw agents bindings
    openclaw agents bind 绑定 Agent 到通道/群组 openclaw agents bind
    openclaw agents unbind 解绑路由 openclaw agents unbind

    命令 功能描述 示例
    openclaw browser status 查看浏览器状态 openclaw browser status
    openclaw browser start 启动浏览器 openclaw browser start
    openclaw browser stop 停止浏览器 openclaw browser stop
    openclaw browser open <url> 打开指定网页 openclaw browser open https://github.com
    openclaw browser screenshot 截取当前页面 openclaw browser screenshot
    openclaw browser snapshot 获取页面内容快照 openclaw browser snapshot
    openclaw browser click <selector> 点击元素 openclaw browser click "#button"
    openclaw browser type <selector> <text> 输入文本 openclaw browser type "#input" "hello"
    openclaw browser navigate <url> 导航到 URL openclaw browser navigate https://example.com

    命令 功能描述 示例
    openclaw cron list 列出所有定时任务 openclaw cron list –all
    openclaw cron status 查看定时任务状态 openclaw cron status
    openclaw cron add 添加定时任务 openclaw cron add –name "daily" –cron "0 9 * * *" –system-event "检查邮件"
    openclaw cron run –id <name> 立即运行任务 openclaw cron run –id daily
    openclaw cron enable –id <name> 启用任务 openclaw cron enable –id daily
    openclaw cron disable –id <name> 禁用任务 openclaw cron disable –id daily
    openclaw cron runs –id <name> 查看任务运行历史 openclaw cron runs –id daily –limit 10

    命令 功能描述 示例
    openclaw logs 查看日志 openclaw logs –follow
    openclaw logs –follow 实时跟踪日志(调试用) openclaw logs –follow
    openclaw status 查看系统状态 openclaw status –deep
    openclaw health 健康检查 openclaw health
    openclaw sessions list 列出会话 openclaw sessions list
    openclaw system event 发送系统事件 openclaw system event –text "重启提醒"
    openclaw system heartbeat last 显示最后心跳 openclaw system heartbeat last
    openclaw backup create 创建备份 openclaw backup create
    openclaw backup verify 验证备份 openclaw backup verify <文件名>

    命令 功能描述 示例
    openclaw config get <key> 获取配置项 openclaw config get gateway.port
    openclaw config set <key> <value> 设置配置项 openclaw config set gateway.port 8080
    openclaw config unset <key> 删除配置项 openclaw config unset gateway.port

    常用配置示例

    # 设置模型 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 false

    路径格式:Windows 使用反斜杠 ,但 OpenClaw 命令中建议用正斜杠 / 或双反斜杠 \

    权限问题:遇到权限错误时,以管理员身份运行 PowerShell

    WSL 推荐:部分命令(如 skillhub)在 WSL 中运行更稳定

    环境变量:配置持久化环境变量:

    [Environment]::SetEnvironmentVariable("OPENCLAW_API_KEY", "your-key", "User")

    查看帮助:任何命令都可以加 --help 查看详细参数,如:

    openclaw gateway --help
    openclaw models set --help

    到此这篇关于浅谈windows下openclaw的操作指令小结的文章就介绍到这了,更多相关openclaw 操作指令内容请搜索风君子博客以前的文章或继续浏览下面的相关文章,希望大家以后多多支持风君子博客!

    站内搜索