Chat with your OpenClaw AI assistant from Raycast — on the same Mac as the gateway, or on a node that only talks to a remote gateway.
Add this to your ~/.openclaw/openclaw.json:
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": {
"enabled": true
}
}
}
}
}
The gateway will hot-reload the config automatically.
On the gateway host, the token is gateway.auth.token. On a node (gateway.mode=remote), use gateway.remote.token — it is the same bearer, stored under remote.
# gateway host
python3 -c 'import json; from pathlib import Path; g=json.loads(Path.home().joinpath(".openclaw/openclaw.json").read_text())["gateway"]; print("auth", bool((g.get("auth") or {}).get("token")))'
# node
python3 -c 'import json; from pathlib import Path; g=json.loads(Path.home().joinpath(".openclaw/openclaw.json").read_text())["gateway"]; print("remote", bool((g.get("remote") or {}).get("token")), (g.get("remote") or {}).get("url"))'
If the token preference is left empty, the extension reads those fields from ~/.openclaw/openclaw.json. If API Endpoint is still the localhost default and the file has gateway.remote.url (wss://…), it uses the corresponding https:// URL.
When you first run a command, Raycast will prompt for your API Endpoint and Token. The endpoint depends on where OpenClaw is running relative to Raycast:
Use when: Raycast and OpenClaw are on the same computer.
| Setting | Value |
|---|---|
| API Endpoint | http://127.0.0.1:18789 |
This is the default - no configuration changes needed on OpenClaw.
Use when: OpenClaw runs on another computer on your home/office network.
| Setting | Value |
|---|---|
| API Endpoint | http://<openclaw-machine-ip>:18789 |
Setup required on the OpenClaw machine:
Find the machine's local IP:
ipconfig getifaddr en0 # WiFi
# or
ipconfig getifaddr en1 # Ethernet
Edit ~/.openclaw/openclaw.json and change the gateway bind setting:
{
"gateway": {
"bind": "0.0.0.0"
}
}
Restart OpenClaw gateway for changes to take effect.
Use the local IP as your endpoint, e.g., http://192.168.1.50:18789
⚠️ Security Warning: Binding to
0.0.0.0exposes the gateway to your entire local network. Risks include:
- Anyone on the same WiFi can attempt connections
- Public WiFi = public exposure
- If port forwarding is enabled on your router, it could be internet-accessible
The token provides some protection, but Tailscale (Option C) is strongly recommended for accessing OpenClaw from other machines. Only use this option on trusted private networks.
Use when: You want secure access from anywhere - home, office, mobile, etc.
| Setting | Value |
|---|---|
| API Endpoint | https://<machine-name>.<tailnet>.ts.net |
Setup required on the OpenClaw machine:
Install Tailscale on both machines and sign in to the same account.
On the OpenClaw machine, set up Tailscale serve:
tailscale serve --bg 18789
Get your serve URL:
tailscale serve status
Output: https://machine-name.tailca3a37.ts.net
Use that URL as your API Endpoint.
Benefits:
| Method | Security | Works Remotely | Setup Complexity | Recommended |
|---|---|---|---|---|
| Local | High (localhost only) | No | None | ✅ Yes |
| Local Network | ⚠️ Low (LAN exposure) | No | Low | Only on trusted networks |
| Tailscale | High (encrypted, private) | Yes | Medium | ✅ Yes - best for remote |
Quick Q&A - type a question, get an answer. Supports passing a question as an argument for automation.
Full conversation interface with:
Reads your clipboard and lets you ask questions about it. Great for:
Select text in any app, then run this command to:
Tip: Assign a keyboard shortcut in Raycast preferences for quick access.
The HTTP API endpoint isn't enabled. Add the config shown in Setup step 1.
If this Mac is a node, http://127.0.0.1:18789 will fail — nothing should be listening there. Set API Endpoint to the Tailscale HTTPS URL of the gateway (https://<machine>.<tailnet>.ts.net). Do not run openclaw gateway start on the node.
If OpenClaw is supposed to be local on this Mac:
openclaw gateway status
On the gateway host use gateway.auth.token. On a node use gateway.remote.token.
Thanks to @asaphko for the original extension icon and inspiration for the Gateway Status and Open Webchat commands.