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 报表要搞?直接甩过来 👍

相关推荐
青柠之夏cc7 小时前
Kotlin Multiplatform:一次编写,全平台运行,2026 年跨平台开发的 “最优解”?
macos·objective-c·cocoa
AC赳赳老秦9 小时前
OpenClaw 与 FineBI 联动方案:公开数据自动采集与实时业务分析看板实践
大数据·开发语言·python·php·finebi·deepseek·openclaw
dtsola1 天前
一个人怎么指挥一支 AI 队伍
人工智能·程序员·ai创业·独立开发者·openclaw·一人公司·小遥claw
七夜zippoe1 天前
Agent 自动化测试:怎么给“会自己决策“的程序写测试
ai·自动化·agent·测试·openclaw
黑科技iOS上架1 天前
iOS framework/dylib动态库定向加固实战
macos·ios·objective-c·cocoa·审核·ios混淆·执行程序差异化
AC赳赳老秦2 天前
采集行为合规自检:OpenClaw 自动校验 robots 协议与采集频率,规避违规采集风险
java·开发语言·c++·python·php·deepseek·openclaw
AC赳赳老秦2 天前
OpenClaw 数据引用规范自动生成:为公开数据构建可信来源标注与标准引用体系
大数据·开发语言·汇编·数据库·人工智能·deepseek·openclaw
神奇的小猴程序员2 天前
苹果Mac电脑玩我的世界没有版本?用PCL-R即可!
macos
灵韵aura2 天前
macOS 的指令缩写
macos
AC赳赳老秦3 天前
数据采集全链路审计留痕:用 OpenClaw 实现合规审计与追溯
开发语言·汇编·python·php·swift·deepseek·openclaw