以下是一些
OpenClaw 的
命令介绍: –
安装
命令: – macOS/Linux:`curl openclaw -fsSL https://
openclaw.ai/install.sh | bash` – Windows:`iwr -useb https://
openclaw.ai/install.ps1 | iex` [^1] – 卸载
命令:`uninstall npm uninstall -g
openclaw` [^1] – 运行
命令: – 一般运行:`
openclaw dashboard` – 使用 ollama 本地模型运行:`ollama launch clawdbot` [^1] – 重启
命令:`
openclaw gateway restart` [^1] –
配置模型
命令: –
配置 DeepSeek 模型: “`bash
openclaw configset’models.providers.deepseek’ –json ‘{ “baseUrl”: “https://api.deepseek.com/v1”, “apiKey”: “[APIKEY]”, “api”: “openai-completions”, “models”: [ { “id”: “deepseek-chat”, “name”: “DeepSeek Chat” }, { “id”: “deepseek-reasoner”, “name”: “DeepSeek Reasoner” } ] }’ “` – 设置默认模型:`
openclaw modelsset deepseek/deepseek-chat` [^1] – 远程访问
命令: – 隧道访问:`ssh -N -L 18789:127.0.0.1:18789 lishewen@IP` –
配置原生 IP 远程访问(127.0.0.1 -> 0.0.0.0):`
openclaw configset gateway.bind “lan”` –
配置允许 HTTP 访问:`
openclaw configset gateway.controlUi.allowInsecureAuth true` [^1]
发布者:Ai探索者,转载请注明出处:https://javaforall.net/253398.html原文链接:https://javaforall.net
