Installing OpenClaw 2026.11.2 on Linux with npm: What We Ran and What We Got

✍️ OpenClawRadarπŸ“… Published: February 9, 2026
Ad

OpenClaw is a self-hosted AI agent: a long-running Gateway process on your machine that talks to a model provider, keeps its config, workspace and sessions under ~/.openclaw, and can be reached from a terminal, a browser dashboard or chat apps. This guide installs it on Linux with npm and takes it as far as an agent that carries out a task on the machine. On 9 November 2026 we ran the commands below, in this order, in a fresh Docker container from the node:24 image (Debian 12, Node 24.22.2, npm 11.19.1) with OpenClaw 2026.11.2 and a DeepSeek key. Three things differed from what you will type: the key reached the container through its environment rather than read -rs, onboarding had --json added so its summary was machine-readable, and the Gateway ran in the background of the same container rather than in a second terminal. The run took a little over three minutes, not counting the image download. Quoted output is from that run unless we say it came from an earlier test; where we rely on the official documentation instead, we say so.

Before you install: Node.js and model access

Check Node first. The npm package declares node >=24.16.0 <25 || >=26.1.0 β€” Node 24.16+ or 26.1+, but not Node 25 β€” and the install docs recommend 24.22.1+ or 26.12.1+ for security fixes. Our container already had Node; if yours does not, the docs' installer script (curl -fsSL https://openclaw.ai/install.sh | bash) installs it for you, which we did not test. In a separate test on Node 22, npm printed an EBADENGINE warning with the required range, the install stopped with npm error code 1, and the shell then answered openclaw: command not found. If you see that combination, look at node -v before anything else.

You also need access to a model. openclaw onboard --help lists about a hundred --auth-choice values (98 in our copy): API keys for providers such as OpenAI, Gemini, DeepSeek and OpenRouter, but also OAuth and device-code logins and local servers such as Ollama, LM Studio and vLLM. We tested only DeepSeek with an API key; other choices may ask for different inputs.

Two sizing numbers from our tests: the installed package folder took about 650 MB (648 and 649 MB in two runs), and in an earlier test a running Gateway process had about 1.4 GiB of resident memory. That is one snapshot, not an official requirement, but it is worth knowing before picking the smallest VPS plan.

Step 1: install the CLI

node -v        # 24.16+ (but not 25) or 26.1+
npm -v
npm install -g [email protected] --allow-scripts=openclaw
openclaw --version

Pinning the version keeps you on the release this guide describes; the docs use openclaw@latest. The --allow-scripts=openclaw part depends on your npm: the install docs say npm 12 blocks package install scripts by default and needs it, npm 11.16+ accepts it, and npm 11.15 and older should run the command without it. On our npm 11.19.1 the install finished with exit code 0 in 49 seconds, but npm warned that install scripts of three dependencies (esbuild, protobufjs, @google/genai) were not covered by the allow list. Everything below still worked, so we left it; on npm 12, watch that warning closely. The version check printed:

OpenClaw 2026.11.2 (b556fdf)

If openclaw is not found on a supported Node version, the docs point to PATH: run npm prefix -g and make sure that folder's bin directory is on your PATH.

Step 2: run onboarding with the key in the environment

openclaw onboard is the guided setup for auth, models, the Gateway, the workspace, channels and skills; without flags it is interactive. We used the non-interactive form (we also added --json to get a machine-readable summary). Put the key into the environment without it landing in your shell history β€” read -rs reads it without echoing:

read -rs DEEPSEEK_API_KEY && export DEEPSEEK_API_KEY
openclaw onboard --non-interactive --accept-risk --mode local \
  --gateway-bind loopback \
  --auth-choice deepseek-api-key --secret-input-mode ref \
  --skip-daemon --skip-channels --skip-skills --skip-search --skip-health

What the less obvious flags mean:

  • --accept-risk β€” the help text calls it the acknowledgement "that agents are powerful and full system access is risky", required for non-interactive mode. After onboarding, our config had tools.profile set to full, and in Step 4 the agent writes a file on the machine. Our test ran as root inside a throwaway container; on a real host, think about which user runs OpenClaw before you go further.
  • --gateway-bind loopback β€” the Gateway listens on 127.0.0.1 only.
  • --secret-input-mode ref β€” in our copy, onboard --help lists plaintext|ref (default: plaintext); the onboarding docs say that with ref, auth profiles store a keyRef pointing at an environment variable instead of the key itself. With ref, the DeepSeek key value did not appear in any file under ~/.openclaw (we searched the whole tree for it and found zero matches). Your shell history and process environment are separate places, which is why we used read -rs.
  • --skip-* β€” no background service, chat channels, skills, web search or health check in this run, to keep the test small. Channels can be added later with openclaw channels add.

Onboarding finished in 39 seconds. It installed the DeepSeek provider plugin, wrote ~/.openclaw/openclaw.json (and a .bak copy), and printed a JSON summary with "ok": true, port 18789, bind loopback and auth mode token. It also created a workspace at ~/.openclaw/workspace with AGENTS.md, BOOTSTRAP.md, IDENTITY.md, SOUL.md and USER.md. BOOTSTRAP.md is the agent's script for its very first conversation: if your first message asks for real work, it tells the agent to do the work first and leave the get-to-know-you questions for later.

Ad

Step 3: start the Gateway

In the same shell, so the Gateway inherits DEEPSEEK_API_KEY:

openclaw gateway

It runs in the foreground; in our run it was reachable about six seconds after start, and an interrupt signal (what Ctrl+C sends) stopped it cleanly at the end. Because the config only points at DEEPSEEK_API_KEY, whatever runs the Gateway has to have that variable. In our run it did, and Step 4 shows the models as authorised.

For a Gateway that survives logouts and reboots, the docs install a systemd user service on Linux (openclaw onboard --install-daemon or openclaw gateway install). Our container has no service manager, so we did not test that; if you use it, make sure the service gets the key as well.

Step 4: check the setup, then give the agent a task

Open a second terminal. These are the checks we ran, in order:

openclaw gateway status
openclaw models list
openclaw doctor
openclaw security audit

gateway status printed, among other lines:

Gateway: bind=loopback (127.0.0.1), port=18789 (env/config)
Dashboard: http://127.0.0.1:18789/
Check note: Loopback-only gateway; only local clients can connect.
Connectivity check: ok

models list showed deepseek/deepseek-v4-pro (the default) and deepseek/deepseek-v4-flash, both with Auth: yes. doctor reported "No command owner is configured" β€” in its words, a command owner is "your trusted human operator account, allowed to update OpenClaw with /update, restart the Gateway, change configuration, and approve commands" β€” and "No successful backup is recorded", suggesting openclaw backup create. The security audit, run on this final configuration before the first task, reported "0 critical Β· 2 warn Β· 1 info"; we come back to those warnings below.

Then give the agent a task you can verify from outside. A fresh temporary path avoids overwriting anything:

P="$(mktemp -d)/oc-proof.txt"
openclaw agent --agent main -m "Create the file $P containing the single line 97102365 using your shell. Then reply with the file's contents only."
cat "$P" && rm "$P"

The agent replied 97102365 after 38 seconds, and cat showed the same value in a file that had not existed before the task. That tells you more than a chat greeting: the model is authorised and the agent can act on the machine. For conversations there is openclaw tui, a terminal UI connected to the Gateway, and the dashboard, which openclaw dashboard opens with your current token.

One message you may run into: in an earlier test, openclaw agent --local was refused while a Gateway was running, with "A Gateway is running for this state directory… Run without --local to use it, or stop the Gateway first". Drop --local, or stop the Gateway.

What the security audit flagged

The two warnings on our final setup:

  • gateway.trusted_proxies_missing β€” "If you expose the Control UI through a reverse proxy, configure trusted proxies so local-client checks cannot be spoofed." The suggested fix: set gateway.trustedProxies to your proxy IPs, or keep the Control UI local-only.
  • plugins.installs_unpinned_npm_specs β€” the DeepSeek plugin was installed from an unpinned npm spec; the audit suggests pinning install specs to exact versions "for higher supply-chain stability".

A second run with the same commands printed the audit's info block in full. It listed tools.elevated: enabled and browser control: enabled, and described the trust model as "personal assistant (one trusted operator boundary), not hostile multi-tenant on one shared gateway", advising separate Gateways with separate credentials for mutually untrusted users or organizations. Zero critical findings is not a guarantee of safety β€” the audit itself offers openclaw security audit --deep, and the agent still has broad access to the machine it runs on.

What we would do next on a real machine:

Do How Where it came from
Keep the Gateway on loopback gateway.bind = loopback gateway status: only local clients can connect
Keep the key out of config files and history --secret-input-mode ref + read -rs our file search; see Step 2
Name a command owner commands.ownerAllowFrom openclaw doctor
Make a backup openclaw backup create openclaw doctor
Pin plugin versions exact @scope/[email protected] specs openclaw security audit
Set trusted proxies before any reverse proxy gateway.trustedProxies openclaw security audit

Before changing gateway.bind or exposing the dashboard, read the security docs, including their network exposure and Tailscale pages; we did not test remote access for this guide.

Updating and removing

openclaw update status reported npm Β· up to date Β· npm latest 2026.11.2 in our run. Compare your version with the one in any guide you follow, including this one. Two commands remove things, so treat them with care: openclaw reset resets local config and state but keeps the CLI, with --scope config, config+creds+sessions or full; openclaw uninstall removes the Gateway service and local data, with separate options for service, state, workspace and the macOS app. The npm package itself stays installed until you remove it with npm. Both commands have --dry-run to print what would be deleted β€” run that, and make a backup first.


The install is the short part: one npm command and one onboarding command. The rest of this guide is about what surrounds it β€” a supported Node version, a key that stays out of config files and shell history but is available to the Gateway, a Gateway bound to loopback, a task you can verify, and an audit you actually read. In our run, doctor and the audit still listed open items at the end: no command owner, no backup, two warnings. That was the state of the install we tested, and the next steps are in the table above.

Tested by OpenClaw Radar on 9 November 2026: Docker node:24 (Debian 12, Node 24.22.2, npm 11.19.1), OpenClaw 2026.11.2 (b556fdf), DeepSeek provider. See How we test.

Ad

πŸ‘€ See Also