Install Gateway Daemon Safely

TL;DR: Run openclaw install-daemon to set up the Gateway as a background service so it runs 24/7.

Applies to: Windows, macOS, Linux
Audience: Developers, ops, power users, enterprise
Last updated: 2026-02-23

developer ops gateway updates

Table of contents

  1. What Is the Daemon?
  2. Install the Daemon
  3. Verify the Service
  4. Enable Autostart
  5. Manage the Daemon
  6. Next Steps
  7. FAQ

What Is the Daemon?

The OpenClaw Gateway daemon runs in the background and:

Install the Daemon

Run the daemon install command:

openclaw install-daemon

This will:

Verify the Service

Check that the Gateway is running:

openclaw gateway status

You should see “Gateway is running on ws://127.0.0.1:18789”.

Enable Autostart

The install command enables autostart by default. To verify:

Manage the Daemon

Common commands:

Next Steps

FAQ

Q: Do I need to run this as root/admin?
A: No. The daemon runs as your user. Only use sudo if you want a system-wide service (not recommended).

Q: Can I run multiple instances?
A: Only one Gateway per user. For remote setups, use the Remote Gateway pattern.

Q: How do I uninstall the daemon?
A: Run openclaw uninstall-daemon.

Q: Where are logs?
A: In ~/.openclaw/logs. Use openclaw logs to tail.

Recommended next

Open the Dashboard