Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
The Gateway is fully supported on Linux. Node is the recommended runtime. Bun is not recommended for the Gateway (WhatsApp/Telegram bugs).
Native Linux companion apps are planned. Contributions are welcome if you want to help build one.
22.14+npm i -g openclaw@latestopenclaw onboard --install-daemonssh -N -L 18789:127.0.0.1:18789 <user>@<host>http://127.0.0.1:18789/gateway.auth.mode: "password"Full Linux server guide: Linux Server. Step-by-step VPS example: exe.dev
Use one of these:
textopenclaw onboard --install-daemon
Or:
textopenclaw gateway install
Or:
textopenclaw configure
Select Gateway service when prompted.
Repair/migrate:
textopenclaw doctor
OpenClaw installs a systemd user service by default. Use a system service for shared or always-on servers.
openclaw gateway installopenclaw onboard --install-daemonMinimal setup:
Create
~/.config/systemd/user/openclaw-gateway[-<profile>].servicetext[Unit] Description=OpenClaw Gateway (profile: <profile>, v<version>) After=network-online.target Wants=network-online.target [Service] ExecStart=/usr/local/bin/openclaw gateway --port 18789 Restart=always RestartSec=5 TimeoutStopSec=30 TimeoutStartSec=30 SuccessExitStatus=0 143 KillMode=control-group [Install] WantedBy=default.target
Enable it:
textsystemctl --user enable --now openclaw-gateway[-<profile>].service
On Linux, the kernel chooses an OOM victim when a host, VM, or container cgroup runs out of memory. The Gateway can be a poor victim because it owns long-lived sessions and channel connections. OpenClaw therefore biases transient child processes to be killed before the Gateway when possible.
For eligible Linux child spawns, OpenClaw starts the child through a short
/bin/shoom_score_adj1000execCovered child process surfaces include:
The wrapper is Linux-only and is skipped when
/bin/shOPENCLAW_CHILD_OOM_SCORE_ADJ=0falsenooffTo verify a child process:
bashcat /proc/<child-pid>/oom_score_adj
Expected value for covered children is
10000This does not replace normal memory tuning. If a VPS or container repeatedly kills children, increase the memory limit, reduce concurrency, or add stronger resource controls such as systemd
MemoryMax=© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine