OpenClaw Setup Guide
Give Ami the ability to control your desktop β notes, reminders, calendar, music, and more.
Prerequisites
macOS macOS is required for Apple Notes, Reminders, Calendar, and Music tools (they use osascript under the hood).
Node.js 22+ β check with node --version
If you don't have Node 22+:
brew install node@22Install OpenClaw
Run the installer script in your terminal:
curl -fsSL https://openclaw.ai/install.sh | bashThis will install the CLI and start the onboarding wizard automatically.
Verify the install
openclaw doctoropenclaw is not found, add it to your PATH:
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcStart the Gateway
The onboarding wizard installs a background daemon that starts the gateway automatically. To check if it's running:
openclaw gateway statusIf you need to start it manually:
openclaw gateway --port 18789Find your gateway token
Your token is in ~/.openclaw/openclaw.json under gateway.auth.token. You can view it with:
cat ~/.openclaw/openclaw.json | grep '"token"' | head -1Connect Ami to OpenClaw
- Open the Ami app and go to Settings (gear icon)
- Scroll down to the Advanced section
- Expand OpenClaw Gateway
- Fill in the fields:
| Field | Value |
|---|---|
| Gateway URL | ws://127.0.0.1:18789 |
| Gateway Token | (paste the token from Step 2) |
5. Toggle on Route web chat through OpenClaw
6. Click Save
Optional toggles
| Toggle | What it does |
|---|---|
| Sync identity | Pushes Ami's name and personality to the gateway so other channels (WhatsApp, Discord) use the same character |
| Pull memories | Imports memories from the agent workspace into the app on character load |
| Push memories | Auto-syncs app memories to the agent workspace every 10 minutes |
Set Up the Agent Workspace
OpenClaw uses a workspace folder to give the agent its personality and tool instructions. The default workspace is at ~/.openclaw/workspace-ami/
It should contain two files:
SOUL.md β Personality
This file is auto-synced from the app when "Sync identity" is enabled. It defines who Ami is and how she responds. You can also edit it manually:
~/.openclaw/workspace-ami/SOUL.mdTOOLS.md β Tool Instructions
This is Ami's cheat sheet for using macOS tools. It should already be set up, but if you need to recreate it:
~/.openclaw/workspace-ami/TOOLS.mdThe file contains osascript commands for each tool.
Available Tools
Once connected, you can ask Ami to do any of these:
Apple Notes
βWrite me a note about grocery ideasβ
βSave a note titled Weekend Plansβ
Reminders
βRemind me to call the dentist at 3pmβ
βSet a reminder to water the plants tomorrowβ
Calendar
βWhat's on my schedule today?β
βAdd a meeting with Jake on Friday at 2pmβ
Music
βPlay some musicβ
βPause the musicβ
βSkip to the next songβ
βWhat's currently playing?β
System Controls
βToggle dark modeβ
βSet a timer for 5 minutesβ
βWhat's my battery level?β
Open Apps & URLs
βOpen Safariβ
βOpen the website twitter.comβ
Troubleshooting
Updating OpenClaw
npm update -g openclawOr re-run the installer:
curl -fsSL https://openclaw.ai/install.sh | bashArchitecture
For the curious β here's how Ami talks to your desktop:
ββββββββββββββββ WebSocket ββββββββββββββββββββ osascript ββββββββββββββββ
β Ami App β βββββββββββββββββββΊ β OpenClaw Gateway β βββββββββββββββββΊ β macOS APIs β
β (browser) β βββββββββββββββββββ β (localhost) β βββββββββββββββββ β Notes, Music β
β β SSE streaming β Port 18789 β tool results β Calendar etc β
ββββββββββββββββ ββββββββββββββββββββ ββββββββββββββββ
β
ββββββββ΄βββββββ
β Workspace β
β SOUL.md β
β TOOLS.md β
βββββββββββββββ1. You send a message to Ami in the browser
2. The app detects if it's a tool request and shows a preview card immediately
3. The message is routed through the OpenClaw gateway via WebSocket
4. The gateway's agent reads TOOLS.md, runs the appropriate osascript command
5. The agent responds with confirmation, which Ami speaks back to you
Ready to get started?
Install OpenClaw, connect Ami, and start controlling your desktop with natural language.
Open App