AmiBeta
XOpen App
All Guides
Desktop Integration

OpenClaw Setup Guide

Give Ami the ability to control your desktop β€” notes, reminders, calendar, music, and more.

Privacy note: OpenClaw runs entirely on your device. Your gateway token never leaves your machine. Only the gateway URL (without the token) is synced to the cloud so you can use the same config across devices.

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+:

bash
brew install node@22
Step 1

Install OpenClaw

Run the installer script in your terminal:

bash
curl -fsSL https://openclaw.ai/install.sh | bash

This will install the CLI and start the onboarding wizard automatically.

Verify the install

bash
openclaw doctor

openclaw is not found, add it to your PATH:

bash
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Step 2

Start the Gateway

The onboarding wizard installs a background daemon that starts the gateway automatically. To check if it's running:

bash
openclaw gateway status

If you need to start it manually:

bash
openclaw gateway --port 18789

Find your gateway token

Your token is in ~/.openclaw/openclaw.json under gateway.auth.token. You can view it with:

bash
cat ~/.openclaw/openclaw.json | grep '"token"' | head -1
Keep this token handy β€” you'll need it in the next step.
Step 3

Connect Ami to OpenClaw

  1. Open the Ami app and go to Settings (gear icon)
  2. Scroll down to the Advanced section
  3. Expand OpenClaw Gateway
  4. Fill in the fields:
FieldValue
Gateway URLws://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

ToggleWhat it does
Sync identityPushes Ami's name and personality to the gateway so other channels (WhatsApp, Discord) use the same character
Pull memoriesImports memories from the agent workspace into the app on character load
Push memoriesAuto-syncs app memories to the agent workspace every 10 minutes
Step 4

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.md

TOOLS.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.md

The 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

bash
npm update -g openclaw

Or re-run the installer:

bash
curl -fsSL https://openclaw.ai/install.sh | bash

Architecture

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