最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

OpenClaw 指令大全(全網(wǎng)最全)

  發(fā)布時(shí)間:2026-03-23 11:12:23   作者:范桂颶   我要評(píng)論
OpenClaw 是一個(gè)強(qiáng)大的 AI 助手框架,但有 40+ 核心命令,本文就來介紹一下OpenClaw 指令大全,文中通過示例代碼介紹的非常詳細(xì),需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧

一、快速入門

# 查看系統(tǒng)狀態(tài)
openclaw status
# 診斷問題
openclaw doctor
# 查看日志
openclaw logs --follow
# 打開 Web 控制面板
openclaw dashboard
# 啟動(dòng)/重啟 Gateway
openclaw gateway restart
# 更新版本
openclaw update

二、初始化與配置管理

首次使用時(shí)的配置向?qū)А?/p>

# 基礎(chǔ)初始化
openclaw setup
# 運(yùn)行向?qū)?
openclaw setup --wizard
# 引導(dǎo)式配置
openclaw onboard
# 配置向?qū)?
openclaw configure
# 配置特定部分
openclaw configure --section models
openclaw configure --section channels
openclaw configure --section web
# 查看配置文件路徑
openclaw config file
# 獲取配置值
openclaw config get gateway.port
openclaw config get agents.defaults.model.primary
# 設(shè)置配置值
openclaw config set gateway.port 19001
openclaw config set agents.defaults.model.primary "anthropic/claude-opus-4-6"
# 刪除配置值
openclaw config unset tools.web.search.apiKey
# 驗(yàn)證配置
openclaw config validate
openclaw config validate --json

路徑語法:

# 點(diǎn)號(hào)語法
openclaw config get agents.defaults.workspace
# 數(shù)組索引
openclaw config get agents.list[0].id
openclaw config set agents.list[1].tools.exec.node "node-1"

三、運(yùn)維指令

# 快速狀態(tài)概覽
openclaw status
# 完整診斷(包括深度檢查)
openclaw status --all --verbose
# 深度檢測(cè)(探測(cè)所有渠道)
openclaw status --deep
# 顯示用量信息
openclaw status --usage
# JSON 輸出
openclaw status --json
# 基礎(chǔ)健康檢查
openclaw health
# JSON 格式
openclaw health --json
# 指定超時(shí)
openclaw health --timeout 5000
# 基礎(chǔ)檢查
openclaw doctor
# 自動(dòng)修復(fù)
openclaw doctor --fix
openclaw doctor --repair
# 深度檢查
openclaw doctor --deep
# 非交互模式
openclaw doctor --non-interactive
# 實(shí)時(shí)查看日志
openclaw logs --follow
# 查看最近 200 行
openclaw logs --limit 200
# JSON 格式輸出
openclaw logs --json
# 禁用顏色
openclaw logs --plain
# 創(chuàng)建備份
openclaw backup create
# 驗(yàn)證備份
openclaw backup verify
# 重置配置
openclaw reset --scope config
# 重置配置和憑證
openclaw reset --scope config+creds+sessions
# 完全重置
openclaw reset --scope full
# 非交互模式
openclaw reset --scope config --yes --non-interactive
# 卸載服務(wù)
openclaw uninstall --service
# 卸載狀態(tài)數(shù)據(jù)
openclaw uninstall --state
# 卸載工作空間
openclaw uninstall --workspace
# 完全卸載
openclaw uninstall --all
# 非交互模式
openclaw uninstall --all --yes --non-interactive

四、Gateway 管理

# 啟動(dòng) Gateway(前臺(tái))
openclaw gateway
# 查看狀態(tài)
openclaw gateway status
# 網(wǎng)關(guān)狀態(tài)(含 RPC 探測(cè))
openclaw gateway status --probe
# 網(wǎng)關(guān)健康檢查
openclaw gateway health
# 安裝為系統(tǒng)服務(wù)
openclaw gateway install
# 啟動(dòng)服務(wù)
openclaw gateway start
# 停止服務(wù)
openclaw gateway stop
# 重啟服務(wù)
openclaw gateway restart
# 卸載服務(wù)
openclaw gateway uninstall

啟動(dòng)參數(shù):

參數(shù)說明
--port <port>WebSocket 端口
--bind <loopback|lan|tailnet|auto>網(wǎng)絡(luò)綁定模式
--token <token>訪問令牌
--password <password>訪問密碼
--tailscale <off|serve|funnel>Tailscale 暴露模式
--dev開發(fā)模式
--verbose詳細(xì)日志
--force強(qiáng)制啟動(dòng)(關(guān)閉占用端口的進(jìn)程)

示例:

# 指定端口和令牌啟動(dòng)
openclaw gateway --port 19001 --token my-secret-token
# 綁定到局域網(wǎng)
openclaw gateway --bind lan
# 通過 Tailscale 暴露
openclaw gateway --tailscale serve

五、Channel 管理

# 查看已配置的渠道
openclaw channels list
# 查看渠道狀態(tài)
openclaw channels status
# 健康檢查(探測(cè)渠道)
openclaw channels status --probe
# 探測(cè)渠道能力
openclaw channels capabilities
# 添加渠道賬號(hào)
openclaw channels add --channel telegram --token <bot-token>
openclaw channels add --channel discord --token <bot-token>
openclaw channels add --channel feishu --app-id <id> --app-secret <secret>
# 刪除渠道賬號(hào)
openclaw channels remove --channel telegram --delete
# 查看渠道日志
openclaw channels logs --channel all
openclaw channels logs --channel telegram --lines 50
# 登錄/登出(WhatsApp)
openclaw channels login --channel whatsapp
openclaw channels logout --channel whatsapp

支持的渠道:

渠道說明
feishu飛書 / Lark
telegramTelegram
discordDiscord
whatsappWhatsApp
slackSlack
signalSignal
imessageiMessage
msteamsMicrosoft Teams
googlechatGoogle Chat

管理 DM(私聊)配對(duì)請(qǐng)求:

# 查看待配對(duì)請(qǐng)求
openclaw pairing list feishu
# 批準(zhǔn)配對(duì)
openclaw pairing approve feishu <CODE>
# 批準(zhǔn)并通知
openclaw pairing approve feishu <CODE> --notify

六、Model 管理

# 查看模型狀態(tài)
openclaw models status
# 測(cè)試模型認(rèn)證
openclaw models status --probe
# 列出可用模型
openclaw models list
openclaw models list --all
# 設(shè)置默認(rèn)模型
openclaw models set anthropic/claude-opus-4-6
# 設(shè)置圖像模型
openclaw models set-image openai/gpt-4.1
# 掃描可用模型
openclaw models scan
# 列出別名
openclaw models aliases list
# 添加別名
openclaw models aliases add opus anthropic/claude-opus-4-6
# 刪除別名
openclaw models aliases remove opus
# 列出 fallback
openclaw models fallbacks list
# 添加 fallback
openclaw models fallbacks add openai/gpt-4.1
# 刪除 fallback
openclaw models fallbacks remove openai/gpt-4.1
# 清空 fallback
openclaw models fallbacks clear
# 添加認(rèn)證
openclaw models auth add
# Setup-token
openclaw models auth setup-token --provider anthropic
# 粘貼 token
openclaw models auth paste-token --provider anthropic

七、Multi-Agent 管理

# 列出所有 Agent
openclaw agents list
openclaw agents list --bindings  # 同時(shí)顯示路由綁定
# 創(chuàng)建 Agent(進(jìn)入向?qū)Я鞒蹋?
openclaw agents add work
# 創(chuàng)建 Agent(指定參數(shù))
openclaw agents add personal --workspace ~/.openclaw/workspace-personal
# 添加一個(gè)專門處理前端開發(fā)的代理
openclaw agents add \
  --workspace ~/.openclaw/workspace/fe-dev \
  --model claude-sonnet-4-2 \
  --bind telegram:work
# 添加一個(gè)專門處理后端開發(fā)的代理
openclaw agents add \
  --workspace ~/.openclaw/workspace/be-dev \
  --model claude-sonnet-4-2 \
  --bind slack:backend
# 刪除 Agent(操作不可恢復(fù))
openclaw agents delete work --force
# 查看綁定
openclaw agents bindings
# 添加綁定
openclaw agents bind --agent work --bind feishu:work-bot
# 移除綁定
openclaw agents unbind --agent work --bind feishu:work-bot
openclaw agents unbind --agent work --all
# 基礎(chǔ)對(duì)話
openclaw agent --message "你好"
# 指定目標(biāo)
openclaw agent --message "提醒我開會(huì)" --to "+15555550123"
# 指定渠道
openclaw agent --message "你好" --channel telegram
# 本地運(yùn)行
openclaw agent --message "你好" --local
# 設(shè)置思考級(jí)別
openclaw agent --message "分析這個(gè)問題" --thinking high

八、Session 管理

# 列出會(huì)話
openclaw sessions
# 列出特定 Agent 的會(huì)話
openclaw sessions --agent work
# 列出所有 Agent 的會(huì)話
openclaw sessions --all-agents
# 查看最近活躍的會(huì)話(最近 120 分鐘)
openclaw sessions --active 120
# 清理會(huì)話(預(yù)覽)
openclaw sessions cleanup --dry-run
# 執(zhí)行清理
openclaw sessions cleanup --enforce

九、Node 管理

# 添加節(jié)點(diǎn)
openclaw node add ${name}
openclaw node add macos-app
# 運(yùn)行 Node Host(前臺(tái))
openclaw node run --host <gateway-ip> --port 18789
# 安裝為系統(tǒng)服務(wù)
openclaw node install --host <gateway-ip> --port 18789 --display-name "Build Node"
# 查看狀態(tài)
openclaw node status
# 啟動(dòng)服務(wù)
openclaw node start
# 停止服務(wù)
openclaw node stop
# 重啟服務(wù)
openclaw node restart
# 卸載服務(wù)
openclaw node uninstall
# 查看所有節(jié)點(diǎn)狀態(tài)
openclaw nodes status
# 列出節(jié)點(diǎn)
openclaw nodes list
# 查看待批準(zhǔn)請(qǐng)求
openclaw nodes pending
# 批準(zhǔn)節(jié)點(diǎn)
openclaw nodes approve <requestId>
# 拒絕節(jié)點(diǎn)
openclaw nodes reject <requestId>
# 重命名節(jié)點(diǎn)
openclaw nodes rename --node <id> --name "New Name"
# 查看節(jié)點(diǎn)詳情
openclaw nodes describe --node <id>
# 在節(jié)點(diǎn)上執(zhí)行命令
openclaw nodes run --node <id> -- echo "hello"
# 發(fā)送通知(macOS)
openclaw nodes notify --node <id> --title "提醒" --body "會(huì)議開始了"
# 列出設(shè)備
openclaw devices list
# 批準(zhǔn)設(shè)備
openclaw devices approve <requestId>
openclaw devices approve --latest
# 拒絕設(shè)備
openclaw devices reject <requestId>
# 移除設(shè)備
openclaw devices remove <deviceId>
# 清除所有設(shè)備
openclaw devices clear --yes

十、Cron 管理

OpenClaw 內(nèi)置了強(qiáng)大的定時(shí)任務(wù)系統(tǒng),支持 3 種任務(wù)類型:

類型說明
system-event在主會(huì)話中觸發(fā)系統(tǒng)事件
agent-turn在隔離會(huì)話中運(yùn)行 AI 代理任務(wù)
message直接發(fā)送消息到指定頻道
# 查看狀態(tài)
openclaw cron status
# 列出任務(wù)
openclaw cron list
# 添加任務(wù)(每天早上 9 點(diǎn))
openclaw cron add \
  --name "daily-report" \
  --cron "0 9 * * *" \
  --system-event "生成日?qǐng)?bào)"
# 添加每周一早上的周報(bào)提醒
openclaw cron add \
  --name "周報(bào)提醒" \
  --cron "0 9 * * 1" \
  --system-event "提交周報(bào)的日子到了!"
# 添加每天早上 9 點(diǎn)的提醒
openclaw cron add \
  --name "晨間提醒" \
  --cron "0 9 * * *" \
  --system-event "記得喝咖啡 ??"
# 編輯任務(wù)
openclaw cron edit <id>
# 刪除任務(wù)
openclaw cron rm <id>
# 啟用/禁用任務(wù)
openclaw cron enable <id>
openclaw cron disable <id>
# 查看運(yùn)行記錄
openclaw cron runs --id <id>
# 立即運(yùn)行
openclaw cron run <id>

十一、Heartbeat 管理

創(chuàng)建 ~/.openclaw/workspace/HEARTBEAT.md 文件:

# 心跳檢查清單

每次心跳時(shí)執(zhí)行:

- [ ] 檢查郵件
- [ ] 檢查日歷
- [ ] 檢查待辦事項(xiàng)
- [ ] 更新記憶文件

控制心跳:

# 查看最后一次心跳
openclaw system heartbeat last
# 啟用心跳系統(tǒng)
openclaw system heartbeat enable
# 禁用心跳系統(tǒng)
openclaw system heartbeat disable

十二、Memory 管理

OpenClaw 支持通過 CLI 來索引和搜索你的 MEMORY.md 文件,讓它記住重要信息。

# 查看記憶狀態(tài)
openclaw memory status
# 重新索引記憶文件
openclaw memory index
# 搜索記憶內(nèi)容
openclaw memory search "項(xiàng)目進(jìn)度"
# 搜索需要密碼的內(nèi)容
openclaw memory search "SSH 憑證"

十三、Message 管理

# 發(fā)送文本消息
openclaw message send --target "+15555550123" --message "你好"
# 發(fā)送到 Telegram
openclaw message send \
  --channel telegram \
  --target "@your_bot" \
  --message "Hello from OpenClaw!"
# 發(fā)送到 WhatsApp
openclaw message send \
  --channel whatsapp \
  --target "+8613800138000" \
  --message "測(cè)試消息"
# 發(fā)送到 Discord 頻道
openclaw message send \
  --channel discord \
  --target "channel:1234567890" \
  --message "@here 重要通知"
# 發(fā)送圖片
openclaw message send --target "+15555550123" --media /path/to/image.jpg
# 創(chuàng)建投票
openclaw message poll \
  --channel discord \
  --target "channel:123" \
  --poll-question "這周五聚餐吃什么?" \
  --poll-option "火鍋" \
  --poll-option "燒烤" \
  --poll-option "西餐"
# 發(fā)送表情回應(yīng)
openclaw message react \
  --channel discord \
  --target "channel:123" \
  --message-id "456" \
  --emoji "??"

消息子命令:

子命令說明
send發(fā)送消息
poll發(fā)送投票
react表情回應(yīng)
edit編輯消息
delete刪除消息
pin / unpin置頂/取消置頂
search搜索消息

十四、瀏覽器管理

# 查看狀態(tài)
openclaw browser status
# 啟動(dòng)瀏覽器
openclaw browser start
# 停止瀏覽器
openclaw browser stop
# 打開網(wǎng)頁
openclaw browser open https://example.com
# 截圖
openclaw browser screenshot
# 頁面快照
openclaw browser snapshot
# 點(diǎn)擊元素
openclaw browser click <ref>
# 輸入文本
openclaw browser type <ref> "hello"
# 列出標(biāo)簽頁
openclaw browser tabs
# 關(guān)閉標(biāo)簽頁
openclaw browser close <targetId>
# 列出配置文件
openclaw browser profiles
# 創(chuàng)建配置文件
openclaw browser create-profile --name work --color "#FF0000"
# 刪除配置文件
openclaw browser delete-profile --name work

十五、安全管理

# 基礎(chǔ)審計(jì)
openclaw security audit
# 深度審計(jì)(探測(cè)網(wǎng)關(guān))
openclaw security audit --deep
# 自動(dòng)修復(fù)常見問題
openclaw security audit --fix
# 重新加載密鑰
openclaw secrets reload
# 審計(jì)密鑰
openclaw secrets audit
# 配置密鑰
openclaw secrets configure

十六、Skills 管理

# 列出所有技能
openclaw skills list
# 列出可用的技能(依賴已滿足)
openclaw skills list --eligible
# 查看技能詳情
openclaw skills info browser
# 檢查技能依賴
openclaw skills check
# 安裝技能
openclaw skill install ${name}
# 關(guān)閉技能
openclaw skill disable ${name}

十七、Plugins 管理

# 列出插件
openclaw plugins list

# 查看插件詳情
openclaw plugins info <id>

# 安裝插件
openclaw plugins install <path>

# 啟用插件
openclaw plugins enable <id>

# 禁用插件
openclaw plugins disable <id>

十八、Hooks 管理

# 列出鉤子
openclaw hooks list
# 查看鉤子詳情
openclaw hooks info <name>
# 檢查鉤子
openclaw hooks check
# 啟用鉤子
openclaw hooks enable <name>
# 禁用鉤子
openclaw hooks disable <name>

十九、Sandbox 管理

# 列出沙箱
openclaw sandbox list
# 重建沙箱
openclaw sandbox recreate --agent <id>
# 清理全部沙箱容器
openclaw sandbox recreate --all
# 查看沙箱說明
openclaw sandbox explain

二十、其他命令

Approvals 管理

# 查看審批設(shè)置
openclaw approvals get
# 設(shè)置審批模式
openclaw approvals set --mode allowlist
# 添加白名單
openclaw approvals allowlist add --node <id> "/usr/bin/git"
# 移除白名單
openclaw approvals allowlist remove --node <id> "/usr/bin/git"

docs 搜索

openclaw docs
openclaw docs "gateway configuration"

TUI 界面

openclaw tui
openclaw tui --session main

二維碼

openclaw qr

ClawHub

ClawdHub 技能市場(chǎng):https://clawdhub.com

# 搜索技能(模糊匹配)
clawhub search "模糊匹配"
# 安裝技能
clawdhub install ${skill_name}
# 更新所有技能
clawhub update --all
# 同步已安裝技能到最新版本
npx clawhub sync
# 發(fā)布技能
npx clawhub publish

二十一、斜杠命令

OpenClaw 有一套斜杠命令系統(tǒng),在聊天里直接輸入 / 開頭的指令就能使用。

  • /status 查看當(dāng)前狀態(tài)。
  • /stop 停止某個(gè)任務(wù)。
  • /compact 壓縮上下文。
  • /new 開啟新會(huì)話,聊完一個(gè)話題想換下一個(gè)時(shí)用,避免上下文污染。
  • /model <名字> 切換模型。
  • /think <級(jí)別> 調(diào)整思考深度。日常閑聊用 off 就行,復(fù)雜問題開 high。

到此這篇關(guān)于OpenClaw 指令大全(全網(wǎng)最全)的文章就介紹到這了,更多相關(guān)OpenClaw 指令內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

相關(guān)文章

  • 淺談windows下openclaw的操作指令小結(jié)

    本文檔詳細(xì)介紹了Windows系統(tǒng)下OpenClaw的操作指令,包括基礎(chǔ)操作、Gateway網(wǎng)關(guān)管理、模型管理、技能管理、通道管理、Agent管理、瀏覽器自動(dòng)化、定時(shí)任務(wù)、系統(tǒng)與日志以及配
    2026-03-16
  • OpenClaw常用操作命令完整速查手冊(cè):從入門到精通的終端 CLI & 聊天指令全解析

    作為 OpenClaw 生態(tài)(包括 PicoClaw、ZeroClaw、losterAI、EasyClaw 等系列開源應(yīng)用)的核心用戶,我根據(jù)開源資料和個(gè)人使用體驗(yàn)整理了這份全網(wǎng)最全的命令速查手冊(cè)
    2026-03-09
  • openclaw常用指令的使用小結(jié)

    OpenClaw 是一款功能強(qiáng)大的開源 AI 助手框架,支持對(duì)接多種大模型和通訊平臺(tái),下面就來介紹一下openclaw常用指令,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2026-03-04

最新評(píng)論

伽师县| 孝义市| 赞皇县| 五原县| 布拖县| 沂水县| 中西区| 丁青县| 定南县| 安多县| 晋江市| 榆中县| 上虞市| 蓬安县| 农安县| 洞口县| 元谋县| 安国市| 长兴县| 威海市| 马龙县| 陈巴尔虎旗| 浦江县| 彩票| 长海县| 新宁县| 孙吴县| 新田县| 满城县| 新化县| 尚志市| 长春市| 神池县| 兴安盟| 北川| 太和县| 新郑市| 北安市| 剑川县| 正镶白旗| 昔阳县|