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

OpenClaw常用操作命令完整速查手冊(2026最新漢化版)

  發(fā)布時(shí)間:2026-04-13 17:26:26   作者:python全棧小輝   我要評論
這份速查手冊詳細(xì)介紹了OpenClaw中文漢化版2026.4.1-zh.2及以上的命令使用方法,涵蓋了終端CLI操作、聊天斜杠指令、實(shí)用技巧與常見問題解決等內(nèi)容,幫助用戶高效操作和維護(hù)該軟件

適用版本:OpenClaw 中文漢化版 v2026.4.1-zh.2 及以上

命令前綴說明

  • 終端命令:使用 openclaw-cn(漢化版專屬命令,官方版為 openclaw
  • 聊天斜杠指令:在Web控制臺(tái)/微信/釘釘/飛書聊天窗口直接輸入,以 / 開頭

第一部分:終端 CLI 操作命令大全

基礎(chǔ)全局命令

命令說明示例
openclaw-cn --version查看當(dāng)前版本號openclaw-cn --version
openclaw-cn --help查看所有命令幫助openclaw-cn --help
openclaw-cn <command> --help查看指定命令的詳細(xì)幫助openclaw-cn gateway --help
openclaw-cn tui啟動(dòng)終端圖形交互界面(新手友好)openclaw-cn tui
openclaw-cn dashboard自動(dòng)打開瀏覽器訪問Web控制臺(tái)openclaw-cn dashboard
openclaw-cn docs <query>內(nèi)置文檔搜索openclaw-cn docs "微信接入"

全局通用標(biāo)志

  • --json:輸出JSON格式,適合腳本調(diào)用
  • --verbose:顯示詳細(xì)日志
  • --dev:開發(fā)模式,狀態(tài)隔離到 ~/.openclaw-dev
  • --profile <name>:多實(shí)例隔離,狀態(tài)存儲(chǔ)在 ~/.openclaw-<name>

安裝與初始化

命令說明示例
openclaw-cn onboard啟動(dòng)交互式初始化配置向?qū)?/td>openclaw-cn onboard
openclaw-cn onboard --install-daemon初始化并安裝系統(tǒng)后臺(tái)服務(wù)(開機(jī)自啟)openclaw-cn onboard --install-daemon
openclaw-cn configure重新進(jìn)入配置向?qū)?/td>openclaw-cn configure
openclaw-cn update一鍵更新到最新穩(wěn)定版openclaw-cn update
openclaw-cn update --nightly更新到每日構(gòu)建版openclaw-cn update --nightly
openclaw-cn uninstall --all --yes徹底卸載,刪除所有數(shù)據(jù)openclaw-cn uninstall --all --yes

網(wǎng)關(guān)服務(wù)管理(核心)

命令說明示例
openclaw-cn gateway run前臺(tái)啟動(dòng)網(wǎng)關(guān)服務(wù)(調(diào)試用)openclaw-cn gateway run
openclaw-cn gateway start后臺(tái)啟動(dòng)網(wǎng)關(guān)服務(wù)openclaw-cn gateway start
openclaw-cn gateway stop停止網(wǎng)關(guān)服務(wù)openclaw-cn gateway stop
openclaw-cn gateway restart重啟網(wǎng)關(guān)服務(wù)(配置修改后必用)openclaw-cn gateway restart
openclaw-cn gateway status查看網(wǎng)關(guān)運(yùn)行狀態(tài)、端口占用、鏈路健康度openclaw-cn gateway status
openclaw-cn gateway install注冊網(wǎng)關(guān)為系統(tǒng)服務(wù),實(shí)現(xiàn)開機(jī)自啟openclaw-cn gateway install
openclaw-cn gateway uninstall卸載系統(tǒng)服務(wù)openclaw-cn gateway uninstall
openclaw-cn gateway probe深度探測網(wǎng)關(guān)連通性,排查網(wǎng)絡(luò)攔截問題openclaw-cn gateway probe

配置管理

命令說明示例
openclaw-cn config show查看當(dāng)前完整配置openclaw-cn config show
openclaw-cn config get <key>查詢指定配置項(xiàng)的值openclaw-cn config get language
openclaw-cn config set <key> <value>快速修改單條配置openclaw-cn config set language zh-CN
openclaw-cn config edit調(diào)用系統(tǒng)編輯器修改配置文件openclaw-cn config edit
openclaw-cn config validate校驗(yàn)配置文件語法與合法性openclaw-cn config validate
openclaw-cn config reset重置為默認(rèn)配置(會(huì)覆蓋所有修改)openclaw-cn config reset

模型管理

命令說明示例
openclaw-cn models list列出所有已配置的模型openclaw-cn models list
openclaw-cn models set <model-name>設(shè)置默認(rèn)使用的模型openclaw-cn models set claude-4-sonnet-20260301
openclaw-cn models add <provider> <api-key>添加新的模型提供商openclaw-cn models add openai sk-xxx
openclaw-cn models remove <model-name>刪除指定模型openclaw-cn models remove gpt-3.5-turbo
openclaw-cn models status查看所有模型的連接狀態(tài)openclaw-cn models status
openclaw-cn models scan自動(dòng)掃描本地Ollama模型openclaw-cn models scan
openclaw-cn models usage查看模型API用量和剩余配額openclaw-cn models usage

技能與插件管理

命令說明示例
openclaw-cn skills list列出所有已安裝的技能openclaw-cn skills list
openclaw-cn skills install <skill-name>從ClawHub安裝技能openclaw-cn skills install pdf-processor
openclaw-cn skills install <local-path>從本地目錄安裝技能openclaw-cn skills install ./my-skill
openclaw-cn skills update <skill-name>更新指定技能openclaw-cn skills update pdf-processor
openclaw-cn skills update --all更新所有已安裝的技能openclaw-cn skills update --all
openclaw-cn skills uninstall <skill-name>卸載指定技能openclaw-cn skills uninstall pdf-processor
openclaw-cn plugins list列出所有已安裝的插件openclaw-cn plugins list
openclaw-cn plugins install <plugin-name>安裝插件openclaw-cn plugins install vscode-bridge

渠道平臺(tái)管理(微信/釘釘/飛書)

命令說明示例
openclaw-cn channels list列出所有已配置的聊天渠道openclaw-cn channels list
openclaw-cn channels add --channel <name>添加新的聊天渠道openclaw-cn channels add --channel wechat
openclaw-cn channels remove --channel <name>刪除指定渠道openclaw-cn channels remove --channel telegram
openclaw-cn channels status查看所有渠道的連接狀態(tài)openclaw-cn channels status
openclaw-cn channels logs --channel <name>查看指定渠道的日志openclaw-cn channels logs --channel dingtalk
openclaw-cn message send --channel <name> --target <id> --message <text>發(fā)送消息openclaw-cn message send --channel wechat --target "張三" --message "你好"

Agent 與會(huì)話管理

命令說明示例
openclaw-cn agents list列出所有已創(chuàng)建的Agentopenclaw-cn agents list
openclaw-cn agents add <name> --workspace <path>創(chuàng)建新的Agentopenclaw-cn agents add work --workspace ~/projects
openclaw-cn agents delete <id> --force刪除指定Agentopenclaw-cn agents delete 1 --force
openclaw-cn agent --message <text>向默認(rèn)Agent發(fā)送消息openclaw-cn agent --message "列出當(dāng)前目錄文件"
openclaw-cn sessions list列出所有會(huì)話openclaw-cn sessions list
openclaw-cn sessions delete <id>刪除指定會(huì)話openclaw-cn sessions delete 1
openclaw-cn sessions export <id> --format markdown導(dǎo)出會(huì)話為Markdown文件openclaw-cn sessions export 1 --format markdown

數(shù)據(jù)與記憶管理

命令說明示例
openclaw-cn memory status查看記憶系統(tǒng)狀態(tài)openclaw-cn memory status
openclaw-cn memory index重建向量索引(修復(fù)記憶Bug必用)openclaw-cn memory index
openclaw-cn memory search "<query>"向量搜索長期記憶openclaw-cn memory search "Python"
openclaw-cn memory clear清除所有長期記憶openclaw-cn memory clear
openclaw-cn directory add <path>添加目錄到文件訪問白名單openclaw-cn directory add ~/Documents
openclaw-cn directory list列出所有允許訪問的目錄openclaw-cn directory list

診斷與維護(hù)(遇到問題先執(zhí)行這些)

命令說明示例
openclaw-cn doctor全面健康檢查(配置、端口、依賴)openclaw-cn doctor
openclaw-cn doctor --fix健康檢查+自動(dòng)修復(fù)常見錯(cuò)誤openclaw-cn doctor --fix
openclaw-cn status --all完整系統(tǒng)狀態(tài)診斷openclaw-cn status --all
openclaw-cn status --deep深度探測所有組件狀態(tài)openclaw-cn status --deep
openclaw-cn logs查看最近100行日志openclaw-cn logs
openclaw-cn logs --follow實(shí)時(shí)查看日志(排查問題必備)openclaw-cn logs --follow
openclaw-cn logs --level error只查看錯(cuò)誤日志openclaw-cn logs --level error

備份與恢復(fù)

命令說明示例
openclaw-cn backup create創(chuàng)建完整數(shù)據(jù)備份openclaw-cn backup create
openclaw-cn backup list列出所有備份openclaw-cn backup list
openclaw-cn backup restore <backup-id>從指定備份恢復(fù)openclaw-cn backup restore 20260413-120000
openclaw-cn backup delete <backup-id>刪除指定備份openclaw-cn backup delete 20260413-120000

高級命令

命令說明示例
openclaw-cn cron list列出所有定時(shí)任務(wù)openclaw-cn cron list
openclaw-cn cron add "0 9 * * *" "發(fā)送每日日報(bào)"添加定時(shí)任務(wù)openclaw-cn cron add "0 9 * * *" "發(fā)送每日日報(bào)"
openclaw-cn security audit執(zhí)行安全審計(jì)openclaw-cn security audit
openclaw-cn sandbox run <command>在沙箱中執(zhí)行命令openclaw-cn sandbox run "ls -la"
openclaw-cn mcp list列出所有已連接的MCP服務(wù)器openclaw-cn mcp list

第二部分:聊天斜杠指令大全

(在Web控制臺(tái)/微信/釘釘/飛書聊天窗口直接輸入)

基礎(chǔ)控制指令

指令說明示例
/help顯示所有可用斜杠命令/help
/help <command>查看指定命令的詳細(xì)用法/help model
/new/clear開啟新會(huì)話,清除上下文緩存/new
/reset重置會(huì)話到初始狀態(tài)(恢復(fù)默認(rèn)參數(shù))/reset
/stop強(qiáng)制停止當(dāng)前正在生成的內(nèi)容或任務(wù)/stop
/status顯示當(dāng)前對話狀態(tài)、模型、Token使用量/status
/context詳細(xì)展示當(dāng)前對話的上下文構(gòu)成/context
/whoami顯示當(dāng)前發(fā)送者的身份標(biāo)識/whoami
/export將當(dāng)前會(huì)話導(dǎo)出為Markdown文件/export

模型與參數(shù)調(diào)整

指令說明示例
/model <model-name>臨時(shí)切換當(dāng)前會(huì)話使用的模型/model claude-4-opus
/think <level>設(shè)置思考深度:off/minimal/low/medium/high/xhigh/think high
/temperature <value>調(diào)整生成溫度(0-2),值越高越隨機(jī)/temperature 0.7
/maxtokens <value>設(shè)置最大生成Token數(shù)/maxtokens 2048
/fast on/off開啟/關(guān)閉快速響應(yīng)模式/fast on
/compact壓縮當(dāng)前會(huì)話上下文(用摘要替代歷史,節(jié)省Token)/compact

工具與技能

指令說明示例
/tools列出當(dāng)前可用的所有工具及其描述/tools
/skills列出所有已安裝的技能/skills
/skill <skill-name> <args>手動(dòng)調(diào)用指定技能/skill pdf-extract test.pdf
/bash <command>在主機(jī)上執(zhí)行Shell命令/bash ls -la
/file list列出當(dāng)前工作目錄的文件/file list
/file read <filename>讀取指定文件內(nèi)容/file read README.md
/file write <filename> <content>寫入內(nèi)容到指定文件/file write test.txt "Hello World"

系統(tǒng)管理

指令說明示例
/restart重啟網(wǎng)關(guān)服務(wù)(僅管理員可用)/restart
/config get <key>讀取指定配置項(xiàng)的值/config get language
/config set <key> <value>修改指定配置項(xiàng)/config set default_model gpt-4o
/usage off/tokens/full控制Token用量顯示的詳細(xì)程度/usage full
/verbose on/off開關(guān)詳細(xì)模式,顯示工具調(diào)用和推理步驟/verbose on
/tts on/off開啟/關(guān)閉語音回復(fù)/tts on

高級功能

指令說明示例
/subagent spawn <role>生成并啟動(dòng)一個(gè)子代理處理復(fù)雜任務(wù)/subagent spawn "前端工程師"
/btw <question>詢問一個(gè)臨時(shí)問題,不被加入長期對話記憶/btw "今天是幾號?"
/activation mention/always切換激活模式:僅@提及觸發(fā)/所有消息都觸發(fā)/activation always
/elevated臨時(shí)提升Agent權(quán)限(需管理員密碼)/elevated
/mcp list列出所有已連接的MCP服務(wù)器/mcp list

第三部分:實(shí)用技巧與常見問題

命令別名設(shè)置(提高效率)

Linux/macOS

# 添加到 ~/.bashrc 或 ~/.zshrc
alias oc='openclaw-cn'
alias ocg='openclaw-cn gateway'
alias ocs='openclaw-cn status'
alias ocd='openclaw-cn doctor --fix'
alias ocl='openclaw-cn logs --follow'

# 生效
source ~/.bashrc

Windows PowerShell

# 添加到 $PROFILE
Set-Alias oc openclaw-cn
Set-Alias ocg openclaw-cn-gateway
Set-Alias ocs openclaw-cn-status
Set-Alias ocd openclaw-cn-doctor
Set-Alias ocl openclaw-cn-logs

萬能問題排查命令組合

遇到任何問題,先執(zhí)行這三條命令,能解決80%的常見錯(cuò)誤:

openclaw-cn doctor --fix && \
openclaw-cn gateway restart && \
openclaw-cn logs --follow

常見問題快速解決

  1. 服務(wù)啟動(dòng)失敗:先執(zhí)行 openclaw-cn doctor --fix,再重啟服務(wù)
  2. 漢化不生效:執(zhí)行 openclaw-cn config set language zh-CN,然后重啟服務(wù)
  3. AI不回復(fù):執(zhí)行 openclaw-cn models status 檢查模型連接狀態(tài)
  4. 技能安裝失敗:配置國內(nèi)技能鏡像:openclaw-cn config set skillRegistry https://openclaw.cn/skills
  5. 無法訪問本地文件:添加目錄到白名單:openclaw-cn directory add ~/Documents

總結(jié)

這份速查手冊涵蓋了OpenClaw中文漢化版99%的常用操作命令,建議收藏并打印出來放在電腦旁,遇到問題隨時(shí)查閱。記?。?strong>遇到問題先執(zhí)行 openclaw-cn doctor --fix,這是解決大多數(shù)問題的最快方法。

如果需要更詳細(xì)的命令說明,可以執(zhí)行 openclaw-cn <command> --help 查看官方幫助文檔

到此這篇關(guān)于OpenClaw常用操作命令完整速查手冊(2026最新漢化版)的文章就介紹到這了,更多相關(guān)OpenClaw常用操作命令內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持腳本之家!

相關(guān)文章

  • openclaw完整定時(shí)任務(wù)查詢方法原理及代碼示例

    在OpenClaw中,定時(shí)任務(wù)是實(shí)現(xiàn)自動(dòng)化工作流的核心組件,這篇文章主要介紹了openclaw完整定時(shí)任務(wù)查詢方法原理及代碼示例的相關(guān)資料,文中通過代碼介紹的非常詳細(xì),需要的朋友可
    2026-04-10
  • OpenClaw的常用命令大全以及使用新手指南(2026最新)

    OpenClaw 是一款開源的個(gè)人 AI 助手框架,2026 年初開源后迅速成為最受關(guān)注的 AI Agent 框架之一,本文將基于 OpenClaw 2026.2.25 版本為大家整理 40+ 頂級命令,聊天斜杠命
    2026-04-07
  • 可能是全網(wǎng)最全版OpenClaw命令大全(值得收藏!)

    OpenClaw 是一款強(qiáng)大的本地 AI 助手框架,支持多種模型、豐富的技能擴(kuò)展和便捷的命令行管理,這篇文章主要介紹了OpenClaw命令大全的相關(guān)資料,文中通過代碼介紹的非常詳細(xì),需
    2026-04-07
  • OpenClaw CLI的全部命令及其使用方法

    作為開發(fā)者,我們每天和命令行打交道,下面這篇文章主要介紹了OpenClaw CLI的全部命令及其使用方法,文中通過代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用OPenClaw具有一定的參考借
    2026-04-02
  • 2026年OpenClaw最新升級指南:官方命令+踩坑實(shí)錄

    今天升級 OpenClaw 的時(shí)候,翻車了,gateway啟動(dòng)竟然報(bào)錯(cuò)了——飛書插件路徑找不到了,下面小編就把踩的坑和官方推薦的升級方法一起整理出來,保證你升級不翻車,有需要的可
    2026-03-27
  • OpenClaw CLI 命令速查手冊(中文注釋+示例版)

    本文檔提供了OpenClaw CLI命令的速查手冊,包含初始化配置、診斷維護(hù)和網(wǎng)關(guān)管理三大類命令,文中介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友
    2026-03-26
  • 一文總結(jié)openclaw小龍蝦常用指令(建議收藏)

    OpenClaw是一個(gè)自主通信網(wǎng)關(guān),它將WhatsApp、Telegram、Discord和iMessage等主流即時(shí)通訊應(yīng)用與可編程人工智能代理連接起來,這篇文章主要為大家整理了一些openclaw常用指令
    2026-03-23
  • 手把手教你5種OpenClaw平滑升級方法(定期升級,數(shù)據(jù)不丟失)

    這篇文章主要介紹了5種OpenClaw平滑升級方法的相關(guān)資料,包括全局安裝升級、源碼升級、渠道切換等,無論你是新手還是老用戶,都能找到適合自己的升級方案,需要的朋友可以參考
    2026-03-11
  • OpenClaw 命令速查手冊(表格版)

    還在為記不住 OpenClaw 命令煩惱?這份CLI 命令 + 聊天斜杠命令 + 關(guān)鍵路徑 + 急救流程一站式手冊,幫你快速上手、高效排錯(cuò),輕松駕馭全功能
    2026-03-09
  • OpenClaw命令速查手冊20+(核心命令 + 實(shí)戰(zhàn)示例)

    本文為你整理了 20+ 最常用的 OpenClaw 命令,按功能分類,并提供實(shí)戰(zhàn)示例,讓你的日常工作效率提升 5 倍
    2026-03-09

最新評論

新晃| 洛川县| 通道| 云梦县| 灵武市| 梓潼县| 民丰县| 鹤壁市| 珠海市| 香港 | 德庆县| 鄂州市| 安康市| 得荣县| 晋宁县| 平南县| 专栏| 贵德县| 公安县| 禹城市| 张家川| 吉隆县| 喀喇沁旗| 巴彦淖尔市| 南川市| 石狮市| 巩义市| 昔阳县| 星子县| 株洲市| 兴山县| 德兴市| 迁西县| 宝清县| 黔南| 观塘区| 东源县| 雅安市| 宜都市| 基隆市| 开江县|