Mac安装openclaw步骤

Mac安装openclaw步骤

一、前期准备

如果node版本较低,可参考该链接升级:升级node.js

二、安装openclaw

1.一键安装 OpenClaw(官方脚本)

shell 复制代码
# 一键安装 OpenClaw(官方脚本)
curl -fsSL https://openclaw.ai/install.sh | bash

安装中

出现该内容表示安装成功,继续配置openclaw。

整体配置的对话有这些:

shell 复制代码
I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
y
 Onboarding mode
│  ● QuickStart (Configure details later via openclaw configure.)
 Config handling
│  ● Use existing values

 Model/auth provider(按方向键上)
│  ● Skip for now
 Filter models by provider
│  ● All providers

Default model
│  ● Keep current (default: anthropic/claude-opus-4-6)

Select channel (QuickStart)
│  ● Skip for now (You can add channels later via `openclaw channels add`)

 Search provider
│  ● Skip for now (Configure later with openclaw configure --section web)

 Configure skills now? (recommended)
│  ○ Yes / ● No

Enable hooks?(空格选中 回车确认)
│  ◻ Skip for now
│  ◼ 🚀 boot-md (Run BOOT.md on gateway startup)
│  ◼ 📎 bootstrap-extra-files (Inject additional workspace bootstrap files via glob/path patterns)
│  ◼ 📝 command-logger (Log all command events to a centralized audit file)
│  ◼ 💾 session-memory (Save session context to memory when /new or /reset command is issued)
Gateway service already installed
│  ● Restart
 How do you want to hatch your bot?
│  ● Open the Web UI

也可以看下面的详细操作步骤。

2.接受风险提示

shell 复制代码
#我知道这是默认的个人使用,共享/多用户使用需要锁定。继续吗?
I understand this is personal-by-default and shared/multi-user use requires
lock-down. Continue?
│  ● Yes / ○ No

按左右方向键切换,选yes 接受风险提示。

3.选择启动模式

推荐选择QuickStart快速启动模式

shell 复制代码
  Onboarding mode
│  QuickStart

4.选择AI模型

这里选择最后一个Skip for now跳过,后面在去配置。

也可以选择你已经有的模型,配置apikey即可。

5.模型供应商

选择所有供应商:

6.设置默认model

选择默认即可,后面还会配置模型:

7.选择聊天工具

这里选择最后一个Skip for now 跳过,后面在去配置:

8.选择网络搜索

这里也是跳过:

9.配置skills

这里也是跳过。

10.配置hooks

上下键切换选项,按空格选择Skip for now,然后回车:

11.打开web聊天框

选择Open the Web UI,打开网页对话页面:



至此安装成功!

12.web访问(暂时还用不了需要配置模型)

访问地址:

she 复制代码
http://127.0.0.1:18789/chat?session=agent%3Amain%3Amain

13.配置AI模型

终端输入:

shell 复制代码
 openclaw config
shell 复制代码
openclaw config
Where will the Gateway run?
│  ● Local (this machine) (Gateway reachable (ws://127.0.0.1:18789))
│  ○ Remote (info-only)
 Select sections to configure
│  ○ Workspace
│  ● Model (Pick provider + credentials)
│  ○ Web tools
│  ○ Gateway
│  ○ Daemon
│  ○ Channels
│  ○ Skills
│  ○ Health check
│  ○ Continue
Model/auth provider
 
│  ● Z.AI (GLM Coding Plan)
 

选择Z.AI,选择Global

选择glm-4.7-flash,是免费的,回车确认

然后continue,或者按esc退出配置即可。

14.回到web提问

聊天框就有了模型glm-4.7-flash,然后就可以对话了。

三、常用指令

1.验证一切是否正常工作

shell 复制代码
openclaw doctor # 检查配置问题
openclaw status # 查看网关状态
openclaw dashboard # 浏览器打开 Dashboard

2.网关指令

shell 复制代码
openclaw gateway status #网关状态
openclaw gateway #一次性启动网关
openclaw gateway stop #网关服务停
openclaw gateway start #网关服务开
openclaw gateway restart #网关服务重启
openclaw gateway install #安装网关服务

四、安装clawmetry

1.安装clawmetry

可以安装监控,监控openclaw在干啥:https://clawmetry.com/#get-started

安装好后,打开地址:http://localhost:8900/

填入openclaw的token,token在:

2.使用

这样就可以随时监控openclaw在干啥了。还可以看token消耗,这里的消耗不是很准确,具体消耗还是平台后台看比较准确。

相关推荐
大象AI共学10 小时前
想在手机上读 Obsidian?Mac → iPhone / 安卓的零成本方案
macos·智能手机·iphone
倔强的小石头_1 天前
把 Mac mini 变成远程 AI 工作台:OpenClaw + 飞书 + cpolar 实战
飞书·mac·openclaw
sysinside1 天前
如何创建可引导的 macOS Golden Gate 27 安装介质
macos
Dr.Buho1 天前
macOS 27 升级教程:兼容机型、三种安装方法与降级提示
经验分享·macos
sysinside1 天前
macOS Golden Gate 27.0 (26A428) 正式版 Boot ISO 原版可引导映像下载
macos
黑科技iOS上架2 天前
Cocos应用App Store4.3被拒怎么自查
macos·ios·objective-c·cocoa·审核·ios混淆·cocos混淆
宇文仲竹2 天前
docker agent 代替 openclaw 的 本地 简化 agent
openclaw
典典分享指南2 天前
AI 配图的排版规范
macos·docker·github·vim·visual studio
:-)3 天前
修改mac电脑用户名
macos
Είναι η κοπέλα3 天前
本地大模型部署完全指南:Ollama / vLLM / llama.cpp / MLX 四大引擎横评与选型实战
macos·llama·vllm