【AI工具】openclaw+离线模型
一、安装1. 先换系统 apt 国内源阿里云# 1. 备份原来的源列表重要 sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak # 2. 执行替换换成清华源 sudo sed -i s/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g /etc/apt/sources.list sudo sed -i s/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g /etc/apt/sources.list # 3. 更新软件列表 sudo apt update2. 安装 Node.js# 1. 安装 nvm curl -o- https://gitee.com/mirrors/nvm.git | bash # 2. 重新加载配置文件让 nvm 生效 source ~/.bashrc # 3. 设置 nvm 使用国内镜像 export NVM_NODEJS_ORG_MIRRORhttps://npmmirror.com/mirrors/node # 4. 安装 Node.js LTS 版本 (当前为 v22) nvm install --lts3. 安装 OpenClaw不要加sudo否则会安装到/root下curl -fsSL https://open-claw.org.cn/install-cn.sh | bash配置(选绿色的)4. 安装 Ollamacurl -fsSL https://mir.ghproxy.com/https://ollama.com/install.sh | sed s/curl/curl --proxy /g | bash5. 拉取本地模型根据显卡显存选择适合的模型ollama pull qwen3:8b查看模型ollama list卸载模型ollama rm qwen2.5:14b二、配置进入离线配置openclaw onboard选择Use local model (Ollama)不填任何 API Key直接完成三、使用1、打开服务器网关openclaw gateway保持这个终端不关闭2、开启一个新终端openclaw tui3、更换离线模型在~/.openclaw/openclaw.json文件中将模型改为想用的模型同时修改上下文大小为32000否则报错重启服务器网关并在新终端中使用交互命令。参考https://blog.csdn.net/Numb_ZL/article/details/158535015
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2480129.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!