Rescue OpenClaw stuck? Gateway, auth, tunnel, and VPS troubleshooting. Get help →
← Back to Blog

Fix OpenClaw macOS: Gateway Won't Stay Running / Telegram Bot Silent

A deep-dive on OpenClaw macOS problems: the gateway won't stay running and the Telegram bot goes silent. Part of the OpenClaw troubleshooting hub.

Stuck on this? Get 1:1 OpenClaw help

Remote rescue for macOS gateway, launchd, Telegram, and permissions problems. See the rescue session →

Two macOS problems share a root cause: the OpenClaw gateway that dies the moment you close Terminal, and the Telegram bot that goes silent. The gateway needs to run as a persistent launchd service, and the channel needs a gateway it can actually reach. The fix for the first is openclaw gateway install; the rest of this page covers Telegram and the macOS permissions that trip people up.

The gateway dies when you close the terminal

A gateway you start with openclaw gateway start in a Terminal window is a child process of that shell. Close the window, log out, or let the Mac sleep, and the process is torn down with it. That’s why your agent works while the terminal is open and goes dead the moment you close it.

The fix is to register the gateway as a persistent launchd service so macOS keeps it alive:

# Register the gateway as a launchd service
openclaw gateway install

# Confirm it's running independently of any terminal
openclaw gateway status

Once installed, launchd starts the gateway at login and restarts it if it crashes. You should see a healthy daemon in openclaw gateway status without having started it from a shell. Close every terminal and re-check, it stays up.

The Telegram bot stops responding

If the gateway is up but your Telegram bot is silent, work through these in order:

# 1. Is the channel connected at all?
openclaw channels status

# 2. Probe connectivity end to end
openclaw channels status --probe
  • Gateway not actually running. If you never installed the launchd service (above), the gateway may be down. A dead gateway means a dead bot. Fix the gateway first.
  • BotFather token wrong or stale. Re-check the API token you got from BotFather and that it’s the one OpenClaw has configured. A rotated token silently breaks the bot.
  • Binding to loopback. This is the subtle one. If gateway.bind is set to loopback only, the gateway can’t be reached by the traffic your channel depends on. Check it:
openclaw config get gateway.bind
openclaw config get gateway.mode

If a channel needs to reach the gateway from outside loopback, bind it to the LAN interface and restart (openclaw gateway restart).

macOS permissions OpenClaw needs

Even with a healthy gateway, macOS will silently block some tools until you grant permissions. In System Settings > Privacy & Security, grant OpenClaw (and your terminal, if you run it there):

  • Full Disk Access — file tools that read/write outside the sandbox.
  • Accessibility — controlling other apps and windows.
  • Screen Recording — any screen-reading / screenshot tool.

Missing permissions look like “the tool ran but nothing happened,” which is easy to mistake for a bug. Grant all three, then restart the gateway.

Quick reference

Symptom Cause First command / action
Gateway dies on terminal closeNot a launchd serviceopenclaw gateway install
Telegram bot silentGateway down or wrong tokenopenclaw channels status --probe
Channel can't reach gatewayBound to loopbackopenclaw config get gateway.bind
Tools "run" but do nothingMissing macOS permissionsGrant Full Disk / Accessibility / Screen Recording

Need help?

If the gateway still won’t stay up or the bot won’t answer after this, we offer a fixed-scope remote rescue session. See OpenClaw troubleshooting help →

Get guides like this in your inbox every Wednesday.

No spam. Unsubscribe anytime.

You'll probably need this again.

Press Cmd+D (Mac) or Ctrl+D (Windows) to bookmark this page.

Need OpenClaw fixed live?

Remote rescue sessions for gateway, auth, tunnel, VPS, and model access problems.

See Rescue Session

Next useful step

Read next

Fix OpenClaw "Bundled Chrome Extension Is Missing"
Fix the OpenClaw error "bundled Chrome extension is missing". Install the extension files, find the folder path, and load it unpacked in Chrome Developer mode.
Fix OpenClaw Docker "Missing config" / Gateway Won't Start
Fix the OpenClaw Docker error "Missing config. Run openclaw setup or set gateway.mode=local". Initialize gateway.mode, gateway.bind, and restart the container.
Fix OpenClaw / Ollama Out of Memory: "killed", OOM, Model Won't Load
Fix out-of-memory errors running local models in OpenClaw: process "killed", CUDA out of memory, model won't load. Free memory now, or step up to a rig that fits the model.