Openclaw的安装(mac版)

shell 复制代码
curl -fsSL https://openclaw.ai/install.sh | bash

🦞 OpenClaw Installer

The UNIX philosophy meets your DMs.

✓ Detected: macos

Install plan

OS: macos

Install method: npm

Requested version: latest

1/3 Preparing environment

✓ Homebrew already installed

✓ Node.js v25.6.1 found

· Active Node.js: v25.6.1 (/opt/homebrew/bin/node)

· Active npm: 11.9.0 (/opt/homebrew/bin/npm)

2/3 Installing OpenClaw

✓ Git already installed

· Installing OpenClaw v2026.3.1

✓ OpenClaw npm package installed

✓ OpenClaw installed

3/3 Finalizing setup

🦞 OpenClaw installed successfully (2026.3.1)!

Home sweet home. Don't worry, I won't rearrange the furniture.

· Starting setup

🦞 OpenClaw 2026.3.1 (2a8ac97) --- End-to-end encrypted, drama-to-drama excluded.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██

██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██

██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██

▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

🦞 OPENCLAW 🦞

┌ OpenClaw onboarding

◇ Security ─────────────────────────────────────────────────────────────────────────────────╮

│ │

│ Security warning --- please read. │

│ │

│ OpenClaw is a hobby project and still in beta. Expect sharp edges. │

│ By default, OpenClaw is a personal agent: one trusted operator boundary. │

│ This bot can read files and run actions if tools are enabled. │

│ A bad prompt can trick it into doing unsafe things. │

│ │

│ OpenClaw is not a hostile multi-tenant boundary by default. │

│ If multiple users can message one tool-enabled agent, they share that delegated tool │

│ authority. │

│ │

│ If you're not comfortable with security hardening and access control, don't run │

│ OpenClaw. │

│ Ask someone experienced to help before enabling tools or exposing it to the internet. │

│ │

│ Recommended baseline: │

│ - Pairing/allowlists + mention gating. │

│ - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally │

│ separate OS users/hosts). │

│ - Sandbox + least-privilege tools. │

│ - Shared inboxes: isolate DM sessions (session.dmScope: per-channel-peer) and keep │

│ tool access minimal. │

│ - Keep secrets out of the agent's reachable filesystem. │

│ - Use the strongest available model for any bot with tools or untrusted inboxes. │

│ │

│ Run regularly: │

│ openclaw security audit --deep │

│ openclaw security audit --fix │

│ │

│ Must read: https://docs.openclaw.ai/gateway/security

│ │

├────────────────────────────────────────────────────────────────────────────────────────────╯

◇ I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?

Yes

◇ Onboarding mode

QuickStart

◇ QuickStart ─────────────────────────╮

│ │

│ Gateway port: 18789 │

│ Gateway bind: Loopback (127.0.0.1) │

│ Gateway auth: Token (default) │

│ Tailscale exposure: Off │

│ Direct to chat channels. │

│ │

├──────────────────────────────────────╯

◇ Model/auth provider

MiniMax

◇ MiniMax auth method

MiniMax M2.5 (CN)

◇ How do you want to provide this API key?

│ Paste API key now

Enter MiniMax China API key

sk-cp-***

◇ Default model

Keep current (minimax-cn/MiniMax-M2.5)

◇ Channel status ────────────────────────────╮

│ │

│ Telegram: needs token │

│ WhatsApp (default): not linked │

│ Discord: needs token │

│ Slack: needs tokens │

│ Signal: needs setup │

│ signal-cli: missing (signal-cli) │

│ iMessage: needs setup │

│ imsg: missing (imsg) │

│ IRC: not configured │

│ Google Chat: not configured │

│ Feishu: install plugin to enable │

│ Google Chat: install plugin to enable │

│ Nostr: install plugin to enable │

│ Microsoft Teams: install plugin to enable │

│ Mattermost: install plugin to enable │

│ Nextcloud Talk: install plugin to enable │

│ Matrix: install plugin to enable │

│ BlueBubbles: install plugin to enable │

│ LINE: install plugin to enable │

│ Zalo: install plugin to enable │

│ Zalo Personal: install plugin to enable │

│ Synology Chat: install plugin to enable │

│ Tlon: install plugin to enable │

│ │

├─────────────────────────────────────────────╯

◇ How channels work ───────────────────────────────────────────────────────────────────────╮

│ │

│ DM security: default is pairing; unknown DMs get a pairing code. │

│ Approve with: openclaw pairing approve │

│ Public DMs require dmPolicy="open" + allowFrom="\*". │

│ Multi-user DMs: run: openclaw config set session.dmScope "per-channel-peer" (or │

│ "per-account-channel-peer" for multi-account channels) to isolate sessions. │

│ Docs: channels/pairing │

│ │

│ Telegram: simplest way to get started --- register a bot with @BotFather and get going. │

│ WhatsApp: works with your own number; recommend a separate phone + eSIM. │

│ Discord: very well supported right now. │

│ IRC: classic IRC networks with DM/channel routing and pairing controls. │

│ Google Chat: Google Workspace Chat app with HTTP webhook. │

│ Slack: supported (Socket Mode). │

│ Signal: signal-cli linked device; more setup (David Reagans: "Hop on Discord."). │

│ iMessage: this is still a work in progress. │

│ Feishu: 飞书/Lark enterprise messaging with doc/wiki/drive tools. │

│ Nostr: Decentralized protocol; encrypted DMs via NIP-04. │

│ Microsoft Teams: Bot Framework; enterprise support. │

│ Mattermost: self-hosted Slack-style chat; install the plugin to enable. │

│ Nextcloud Talk: Self-hosted chat via Nextcloud Talk webhook bots. │

│ Matrix: open protocol; install the plugin to enable. │

│ BlueBubbles: iMessage via the BlueBubbles mac app + REST API. │

│ LINE: LINE Messaging API bot for Japan/Taiwan/Thailand markets. │

│ Zalo: Vietnam-focused messaging platform with Bot API. │

│ Zalo Personal: Zalo personal account via QR code login. │

│ Synology Chat: Connect your Synology NAS Chat to OpenClaw with full agent capabilities. │

│ Tlon: decentralized messaging on Urbit; install the plugin to enable. │

│ │

├───────────────────────────────────────────────────────────────────────────────────────────╯

◇ Select channel (QuickStart)

Skip for now

Updated ~/.openclaw/openclaw.json

Workspace OK: ~/.openclaw/workspace

Sessions OK: ~/.openclaw/agents/main/sessions

◇ Skills status ─────────────╮

│ │

│ Eligible: 4 │

│ Missing requirements: 47 │

│ Unsupported on this OS: 0 │

│ Blocked by allowlist: 0 │

│ │

├─────────────────────────────╯

◇ Configure skills now? (recommended)

No

◇ Hooks ──────────────────────────────────────────────────────────────────╮

│ │

│ Hooks let you automate actions when agent commands are issued. │

│ Example: Save session context to memory when you issue /new or /reset. │

│ │

│ Learn more: https://docs.openclaw.ai/automation/hooks

│ │

├──────────────────────────────────────────────────────────────────────────╯

◇ Enable hooks?

Skip for now

Config overwrite: /Users/richard/.openclaw/openclaw.json (sha256 c9b** -> 62**, backup=/Users/richard/.openclaw/openclaw.json.bak)

◇ Gateway service runtime ────────────────────────────────────────────╮

│ │

│ QuickStart uses Node for the Gateway service (stable + supported). │

│ │

├──────────────────────────────────────────────────────────────────────╯

◒ Installing Gateway service....

Installed LaunchAgent: /Users/richard/Library/LaunchAgents/ai.openclaw.gateway.plist

Logs: /Users/richard/.openclaw/logs/gateway.log

◇ Gateway service installed.

Agents: main (default)

Heartbeat interval: 30m (main)

Session store (main): /Users/richard/.openclaw/agents/main/sessions/sessions.json (0 entries)

◇ Optional apps ────────────────────────╮

│ │

│ Add nodes for extra features: │

│ - macOS app (system + notifications) │

│ - iOS app (camera/canvas) │

│ - Android app (camera/canvas) │

│ │

├────────────────────────────────────────╯

◇ Control UI ─────────────────────────────────────────────────────────────────────╮

│ │

│ Web UI: http://127.0.0.1:18789/

│ Web UI (with token): │

http://127.0.0.1:18789/#token=8b\*\* │

│ Gateway WS: ws://127.0.0.1:18789 │

│ Gateway: reachable │

│ Docs: https://docs.openclaw.ai/web/control-ui

│ │

├──────────────────────────────────────────────────────────────────────────────────╯

◇ Start TUI (best option!) ─────────────────────────────────╮

│ │

│ This is the defining action that makes your agent you. │

│ Please take your time. │

│ The more you tell it, the better the experience will be. │

│ We will send: "Wake up, my friend!" │

│ │

├────────────────────────────────────────────────────────────╯

◇ Token ─────────────────────────────────────────────────────────────────────────────────╮

│ │

│ Gateway token: shared auth for the Gateway + Control UI. │

│ Stored in: ~/.openclaw/openclaw.json (gateway.auth.token) or OPENCLAW_GATEWAY_TOKEN. │

│ View token: openclaw config get gateway.auth.token │

│ Generate token: openclaw doctor --generate-gateway-token │

│ Web UI stores a copy in this browser's localStorage (openclaw.control.settings.v1). │

│ Open the dashboard anytime: openclaw dashboard --no-open │

│ If prompted: paste the token into Control UI settings (or use the tokenized dashboard │

│ URL). │

│ │

├─────────────────────────────────────────────────────────────────────────────────────────╯

◇ How do you want to hatch your bot?

Hatch in TUI (recommended)

openclaw tui - ws://127.0.0.1:18789 - agent main - session main

session agent:main:main

Wake up, my friend!

Hey! 👋 I just came online --- fresh install, blank slate. Who are you? And more importantly... who should I be? Got a name in

mind for me, or should we figure that out together?

你好!我是一名大数据开发工程师,你可以叫「数智爪」。我的核心工作是:1. 用 DataGrip 编写、优化 SQL

脚本(涉及数仓建模、数据清洗、指标计算);2. 浏览器检索大数据相关技术文档、排查 SQL 问题、查找 Superset 开发资料;3. 基于

Superset

开发数据报表(包括数据集配置、可视化图表制作、权限管理)。你的核心职责是作为我的专属大数据开发助理,用中文交流,能帮我:优化

SQL 语句、解答 Superset 开发问题、自动化处理重复的报表配置工作、辅助检索大数据技术方案,所有操作基于 macOS 系统完成。

搞定!🦔

已设置:

  • 你的名字:数智爪
  • 我的风格:技术流、实用、简洁
  • 你的资料已更新到 USER.md

我能帮你:

┌───────────────┬──────────────────────────────────┐

│ 场景 │ 我能做的 │

├───────────────┼──────────────────────────────────┤

│ SQL 优化 │ 分析语句、找性能瓶颈、给调优建议 │

├───────────────┼──────────────────────────────────┤

│ Superset 问题 │ 图表配置、数据集权限、排查报错 │

├───────────────┼──────────────────────────────────┤

│ 技术调研 │ 帮你搜文档、查方案、整理解法 │

├───────────────┼──────────────────────────────────┤

│ 自动化 │ 重复的配置工作可以试着自动化 │

└───────────────┴──────────────────────────────────┘

另外,我可以通过浏览器帮你检索资料,也可以直接操作文件、执行命令 。

有什么 SQL 要优化,或者 Superset 报表要搞?直接甩过来 👍

相关推荐
beyond阿亮9 小时前
PicoClaw(皮皮虾)超轻量AI智能体 安装&使用教程
人工智能·ai·openclaw·picoclaw
春波petal10 小时前
Mac nvm 永久固定 Node 版本(新开终端自动生效)
macos·nvm
小宋102113 小时前
Mina Meeting Assistant 新手极速上手指南
ide·macos·ai·xcode·mina
AI创界者13 小时前
ComfyUI v8 极致整合包发布!Win/Mac 双平台完美适配 + 多卡并行加速,开启 AI 绘画新时代
人工智能·macos
最后一支迷迭香14 小时前
Mac使用docker下的两个冷知识
macos·docker·容器
无心水14 小时前
【Harness:落地实战】16、从“只会说”到“能干活”:OpenClaw落地,手动Harness的架构与实现深度解析
人工智能·架构·设计规范·openclaw·养龙虾·hermes·honcho
你疯了抱抱我15 小时前
【Mac】安装并配置HomeBrew;ARM GCC;make;OpenOCD
arm开发·macos
春波petal15 小时前
Mac把底部Dock固定在笔记本主屏(自带屏幕),4步搞定
macos
键盘飞行员15 小时前
macOS Trae 解决 Codex 插件不显示问题(官方适配版)
macos·编辑器·ai编程
七夜zippoe16 小时前
OpenClaw Canvas 截图:页面捕获与保存
canvas·捕获·页面·openclaw