openclaw配置ollama本地模型

1、安装启动ollama本地模型

参考文章:ubuntu安装ollama并启动服务

2、配置openclaw.json

配置参数如下:

复制代码
{
  "meta": {
    "lastTouchedVersion": "2026.2.13",
    "lastTouchedAt": "2026-02-16T04:32:40.223Z"
  },
  "wizard": {
    "lastRunAt": "2026-02-16T03:32:01.664Z",
    "lastRunVersion": "2026.2.13",
    "lastRunCommand": "onboard",
    "lastRunMode": "local"
  },
 "models": {
    "providers": {
      "ollama": {
        "baseUrl": "http://localhost:11434",
        "apiKey": "ollama-local",
        "api": "ollama",
        "models": [
          {
            "id": "qwen3:8b",
            "name": "Qwen3 8b",
            "reasoning": false,
            "input": ["text"],
            "cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0},
            "contextWindow": 1280000,
            "maxTokens": 128000
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "workspace": "/home/stone/.openclaw/workspace",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      },
      "model": {
        "primary": "ollama/qwen3:8b",
        "fallbacks": ["ollama/qwen3:8b"]
      },
      "models": {"ollama": {}}
    }
  },
  "messages": {
    "ackReactionScope": "group-mentions"
  },
  "commands": {
    "native": "auto",
    "nativeSkills": "auto"
  },
  "gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {
      "mode": "token",
      "token": "__OPENCLAW_REDACTED__"
    },
    "tailscale": {
      "mode": "off",
      "resetOnExit": false
    },
    "nodes": {
      "denyCommands": [
        "camera.snap",
        "camera.clip",
        "screen.record",
        "calendar.add",
        "contacts.add",
        "reminders.add"
      ]
    }
  },
  "plugins": {
    "entries": {
      "qwen-portal-auth": {
        "enabled": true
      }
    }
  }
}

3、配置openclaw agent

复制代码
openclaw agents add qwen3:8b

配置信息按照上文进行配置,模型选择 vllm

相关推荐
AC赳赳老秦1 天前
企业级合规审计体系:用 OpenClaw 落地采集全链路留痕,自动生成合规审计报告
java·python·django·beautifulsoup·php·deepseek·openclaw
lee_curry1 天前
Dify+Ollama私有化部署方案
ai大模型·dify·ollama
蛋先生DX2 天前
大模型本地部署神器的瘦身进阶原理,就这两招?
llm·llama·ollama
AC赳赳老秦2 天前
个保法下数据处理:OpenClaw 自动过滤公开数据中的个人信息,保障采集分析合规性
java·python·sqlite·json·php·deepseek·openclaw
geminigoth3 天前
LangChain1.2学习第二章—— 调用大模型
ollama·本地部署大模型·deepseek接口·qwen接口·langchain调用大模型·阻塞大模型接口·非阻塞大模型接口
海兰3 天前
【插件】Logbook 插件完全指南(适配 Ubuntu 24.04)
linux·运维·人工智能·ubuntu·agent·openclaw
weixin_471383033 天前
25 Ollama 本地部署
ollama
FriendshipT3 天前
DeepSeek Harness 使用 Ollama 本地部署的 AI 大模型(以Qwen3.8-27B为例)
人工智能·pytorch·深度学习·ollama·deepseek
AC赳赳老秦3 天前
企业标签体系搭建:基于 OpenClaw 采集的多维度公开数据,构建企业画像标签库
java·运维·服务器·python·信息可视化·deepseek·openclaw
uncle_ll3 天前
多模态大模型视听生成本地实战
llm·文生图·文生视频·多模态·ollama