Extension Icon

OpenClaw

Monitor and chat with your OpenClaw Gateway from Raycast
AvatarJeff Bernard
1,349 Installs
Overview

OpenClaw for Raycast

Monitor and chat with an OpenClaw Gateway from Raycast. The extension uses OpenClaw's native WebSocket protocol and works with local, LAN, Tailscale, and Cloudflare Access connections.

What you can do

CommandPurpose
OpenClaw Control CenterMonitor Gateway health, tasks, sessions, agents, nodes, channels, and usage
Ask OpenClawAsk a question in a new Gateway session
Chat with OpenClawStart or continue Gateway-backed conversations
Ask About ClipboardSend clipboard text to OpenClaw with a question
Process Selected TextSummarize, explain, translate, rewrite, or review selected text
Gateway StatusCheck the authenticated connection, pairing, and protocol details
Open OpenClaw Control UIOpen the configured Control UI in your browser

The Control Center is a fast operational view, not a replacement for OpenClaw's administrative UI. It requests only operator.read and operator.write. Approval management, configuration changes, and other administrative operations remain in OpenClaw.

Requirements

  • OpenClaw 2026.9.4 or a protocol-compatible Gateway
  • A reachable local loopback ws:// Gateway or remote wss:// endpoint
  • A Gateway token or password when bootstrap authentication is required
  • cloudflared on the Raycast Mac for Cloudflare Access browser sign-in

The optional HTTP Chat Completions endpoint is not required.

Connect

Raycast asks how it should reach OpenClaw on first launch.

ConnectionGateway URLNotes
OpenClaw ConfigurationRead from ~/.openclaw/openclaw.jsonUses the local or remote mode in the file
Local Gatewayws://127.0.0.1:18789Gateway runs on the same Mac
Local NetworkPrivate wss:// URLUse TLS even on a trusted LAN
TailscaleOpenClaw-managed wss://<machine>.<tailnet>.ts.net URLRequires Tailscale access on both machines
Cloudflare Tunnel and AccessTunnel wss:// hostnameSupports browser sign-in or a service token

Remote modes validate the configured URL before connecting and require wss://. Plain ws:// is accepted only for a loopback Gateway on the same Mac. If the URL field is empty, a matching gateway.remote.url from OpenClaw's configuration can be used.

Pair the Raycast device

Run Gateway Status. If approval is required, the error shows the current request ID and approval command. On the Gateway host, review and approve that exact request:

openclaw devices list
openclaw devices approve <requestId>

Refresh Gateway Status after approval. Raycast requests only operator.read and operator.write and stores the durable device credential returned by OpenClaw. See OpenClaw's pairing guide.

Remote connections

Tailscale

Use OpenClaw-managed Tailscale Serve:

openclaw gateway --tailscale serve

Choose Tailscale in Raycast and enter the resulting secure endpoint. Keep the Gateway listener on loopback. See OpenClaw's Connect and pair and Remote access guides.

Cloudflare Access

Choose Cloudflare Tunnel and Access and enter the tunnel's wss:// hostname.

  • Browser sign-in runs cloudflared access login. Cloudflare opens the identity provider allowed by the Access policy, such as GitHub or Google. A valid cached Access session is reused.
  • Service token sends the configured client ID and secret as Cloudflare Access headers. Use this option for unattended connections.

Install the Cloudflare helper before using browser sign-in:

brew install cloudflared

Run Gateway Status to sign in. Raycast does not store the Access JWT or print cloudflared output. Cloudflare authenticates access to the tunnel; OpenClaw device pairing and Gateway authorization still apply. Follow OpenClaw's Cloudflare Tunnel and Access guide, and do not expose the Gateway port directly.

SSH forwarding

Forward the remote loopback Gateway, then choose Local Gateway on This Mac:

ssh -N -L 18789:127.0.0.1:18789 user@gateway-host

Credentials and local data

Raycast preferences take precedence over ~/.openclaw/openclaw.json. Configuration discovery supports JSON5 comments and trailing commas.

  • Local mode reads gateway.auth.token or gateway.auth.password.
  • Remote mode reads gateway.remote.url, gateway.remote.token, or gateway.remote.password.
  • File credentials are reused for an explicit remote connection only when its normalized URL matches gateway.remote.url.
  • Secret references are not resolved. Enter the credential in Raycast or use an already paired device token.

Raycast's encrypted local extension storage holds the device identity, paired device tokens, local conversation history, and the cached Control Center snapshot. The snapshot contains operational metadata, not credentials. Clipboard or selected text is sent only when its command is used. The extension has no analytics service or intermediary server.

Troubleshooting

Pairing required

List pending devices, verify that the Raycast request asks for operator.read and operator.write, approve the current request ID, and refresh Gateway Status. A retry with a changed identity or scope can replace an older request.

Gateway unavailable

  • Local: run openclaw gateway status on the same Mac.
  • Node-only Mac: use the main Gateway's secure remote URL or an SSH forward. Do not start a second Gateway.
  • Remote: confirm that the route is reachable and accepts secure WebSocket traffic.
  • Cloudflare browser sign-in: install cloudflared, then choose Sign In to Cloudflare Access in Gateway Status.
  • Cloudflare service token: confirm that both fields are set and accepted by a Service Auth policy.

Authentication rejected

Configure bootstrap authentication through OpenClaw, then let device pairing mint the durable client token. Do not hand-create per-client tokens in openclaw.json. See Building a Gateway client.

Development

npm install
npm run check

The OpenClaw Gateway packages are pinned so client and protocol changes are reviewed together. The bundle check loads every command from an isolated production bundle.

Acknowledgments

Thanks to @asaphko for the original icon and the first Gateway Status and web chat commands.