macos简单配置openclaw

官网教程
官方技能

  • 环境依赖node,自行安装node.js
    brew install node
  • 检查node版本大于22
    node -v

1. 安装openclaw并添加到环境变量

npm install -g openclaw

2.直接在终端配置把某淘买的key和模型配上去,中文部分自行替换;如果是在官网买的可以跳过此步,使用第3步官方向导配置

复制代码
openclaw config set 'models.providers.自定义模型名字' --json '{
  "baseUrl": "请求的地址",         //如:https://tao.plus7.plus/v1
  "apiKey": "替换成你的apikey",    //如:sk-xxxxxxxxx
  "api": "openai-completions",    //根据购买的模型配置,有:openai-responses,openai-completions,anthropic-messages,google-generative-ai,github-copilot,bedrock-converse-stream,ollama
  "models": [
    //以下配置根据自己购买的模型自行修改,"id"要和平台上的模型名一致
    { "id": "gemini-3-pro-preview", "name": "Gemini 3 Pro Preview" },
    { "id": "gemini-3.1-pro-preview", "name": "Gemini 3.1 Pro Preview" },
    { "id": "claude-opus-4-6", "name": "Claude Opus 4-6" },
    { "id": "gpt-5.4", "name": "Gpt 5.4" },    
    { "id": "gpt-5.2", "name": "Gpt 5.2" },    
    { "id": "gpt-5.3-codex", "name": "Gpt 5.3 Codex" },
    { "id": "claude-opus-4-5-20251101", "name": "Claude Opus 4-5-2025-1101" },
    { "id": "gemini-3-flash-preview", "name": "Gemini 3 Flash Preview" }
  ]
}'

3.配置向导,因版本差异,大致步骤差不多

直接在终端输入:openclaw onboard
使用键盘上的⬅键,回车选择"yes"

回车选择QuickStart

回车选择use existing values

选择官网买的key自行选择;某淘买的选择最后一个 skip for now;找到在第2步自定义的模型名字,再选择配置的模型(官网买的同理)

后面会有接入平台和安装技能向导,可以先跳过,多选的用空格选择跳过

这里选择 restart。新的版本最后会跳出让你选择web后台可以聊天和终端聊天或者关闭。

后面安装技能和接入平台也可以使用openclaw onboard向导来配置

关于给openclaw权限

找到你的 .openclaw 文件夹,打开 exec-approvals.json 这个文件

将"deafaults"和"agents"改成下面这样

复制代码
  "defaults": {
    "security": "full",
    "ask": "off"
  },
  "agents": {
    "main": {
      "security": "full"
    }
  }

结束~

相关推荐
Linlingu18 小时前
OpenClaw接入阿里云百炼模型配置教程(完整可落地)
人工智能·阿里云·云计算·办公自动化·数字员工·小龙虾
共享家95271 天前
Skill的概述与使用
人工智能·学习·openclaw
Linlingu1 天前
OpenClaw对接飞书机器人完整配置教程(长连接模式)
windows·机器人·飞书·办公自动化·数字员工·小龙虾
共享家95272 天前
OpenClaw的通道配置
人工智能·学习·openclaw
云樱梦海2 天前
OpenClaw官方:OpenClaw Windows Node 实战(1.5K ★ 开源推荐)
windows·开源·github·openclaw
J_bean2 天前
OpenClaw 技能开发决策报告:脚本内置分析逻辑 vs. 框架原生调用
大模型调用·openclaw·技能开发·数据分析skill
AC赳赳老秦2 天前
用 OpenClaw 整理团队技术分享:自动提取 PPT 内容、生成文字稿、同步到知识库
开发语言·python·自动化·powerpoint·wpf·deepseek·openclaw
不惑_3 天前
腾讯云WorkBuddy实战, 全场景智能体工作搭子,这只龙虾真能帮你干活吗
人工智能·云计算·腾讯云·openclaw
华科大胡子3 天前
用OpenCLAW重写CUDA内核
openclaw