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

相关推荐
GalenZhang8881 天前
OpenClaw命令行缺失问题排查
openclaw
lihuayong1 天前
OpenClaw 系统提示词
人工智能·prompt·提示词·openclaw
独角鲸网络安全实验室1 天前
惊魂零点击!OpenClaw漏洞(ClawJacked)突袭,开发者AI Agent遭无声劫持
人工智能·网络安全·数据安全·漏洞·openclaw·clawjacked·cve-2026-25253
申增浩1 天前
OpenClaw 本地部署指南:nanobot支持多通道(Web/CLI/QQ)统一调度
ai助手·openclaw·多通道调度
1941s1 天前
OpenClaw 每日新玩法 | NanoClaw —— 轻量级、安全的 OpenClaw 替代方案
人工智能·安全·agent·openclaw
jinanwuhuaguo1 天前
OpenClaw深度沟通渠道-全景深度解构
大数据·开发语言·人工智能·openclaw
软件资深者1 天前
OpenClaw 本地安装 vs 网页版龙虾:全方位对比 + 2026 最新一键安装客户端(新手零门槛搭建专属 AI 助理)
运维·人工智能·自动化·飞书·数字员工·openclaw·龙虾
cxr8282 天前
OpenClaw Node 技术架构与核心概念
人工智能·架构·ai智能体·openclaw
1941s2 天前
OpenClaw 每日新玩法 | 多 Agent 协作系统 - 让 AI 员工 24小时自主工作
人工智能·agent·openclaw
AnyaPapa2 天前
OpenClaw(小龙虾)技术深度解析:从开源爆火到底层技术架构全拆解
开源 ai·openclaw·小龙虾·ai 智能体·llm 执行引擎·安全沙箱·个人智能体