The same setup --baseline argv had two exits. The process was started with /usr/bin/node, which was Node v22.23.5. When PATH was only /usr/bin:/bin, the command exited 1, wrote nothing, and printed the node:sqlite truncation sentence. When the bin directory of a checksum-verified Node v24.22.3 was appended after those two directories, the same /usr/bin/node start exited 0, printed the baseline success text, and created the config, workspace, and session directories. The success text did not name Node 24. The retry line on stderr did.
That split is the check a setup job has to make. openclaw --version does not make it. On this build the version line was identical in both PATH layouts, and both version runs exited 0.
What was run
The package was OpenClaw 2026.11.7, build e31bbf0, installed from the npm registry into an isolated prefix on 23 November 2026. The install used the npm 11.19.1 that ships with the official Node v24.22.3 Linux x86_64 tarball. That tarball’s checksum matched SHASUMS256.txt from nodejs.org before it was unpacked. The host otherwise had Node v22.23.5 at /usr/bin/node. Each case used a new HOME, an empty environment apart from PATH, HOME, and locale, and the installed openclaw.mjs invoked by an explicit node binary. No openclaw onboard was run. No Gateway service was installed. No channel account was added. No model login was attempted. The operator home was not one of the homes under test.
The installed package requires Node 24.16.0 or newer on the 24.x line, excluding 25, or Node 26.1.0 or newer. The Node.js compatibility page, fetched the same day, publishes that range and says Node 22 has been unsupported since the 24.16.0 and 26.1.0 floor. It quotes this refusal for a broken TEXT decoder:
Node VERSION: node:sqlite truncates TEXT at embedded NUL (nodejs/node#61954); use 24.16+/26.1+ or a build with the fix
It also says startup prefers an already-installed patched Node, in the paragraph about the October 2026 eMudhra certificate releases, Node 24.22.1 and 26.12.1. That paragraph is about a security warning on a compatible line. It does not quote a retry onto a later PATH entry, and it does not say a Node 22 parent can exit 0 from setup because a Node 24 binary was visible.
npm 11.19.1 printed a separate warning during the prefix install: openclaw’s preinstall and postinstall were not covered by allowScripts, and the hint was npm install-scripts approve. The install page says npm 11.16 and later should pass --allow-scripts=openclaw. This install did not. Baseline setup on Node 24.22.3 still wrote the config and workspace. The skipped script is not what stopped Node 22. Do not treat that warning as the admission result, and do not treat a successful baseline as proof that the skipped postinstall had nothing left to do. This run did not repeat the install with the scripts approved.
Version exits 0 on both layouts
With PATH limited to /usr/bin:/bin, the version command was /usr/bin/node plus the installed openclaw.mjs and --version.
Exit 0. Standard output was one line, OpenClaw 2026.11.7 (e31bbf0). Standard error began Running on an unsupported Node (22.23.5); diagnostics may show truncated text and then the experimental SQLite warning Node 22 prints when the CLI probes node:sqlite. No config directory was created.
The same argv, with Node v24.22.3’s bin directory later on PATH, also exited 0. Standard output was the same line. Standard error was not the unsupported-node sentence. It was:
openclaw: Retrying with "/path/to/node-v24.22.3/bin/node" (PATH; current Node failed runtime admission).
The experimental SQLite warning followed that line. A direct start with the Node v24.22.3 binary, and a PATH whose first node directory was that binary’s directory, printed the same version line, exited 0, and wrote nothing to stderr. The experimental warning in the retried run is therefore not evidence that the process which printed the version was Node 22. The retry line is the evidence that the start binary failed admission and another node on PATH was selected.
A job that accepts exit 0 and the version string has accepted both layouts. The string does not name the Node that satisfied admission. The compatibility page’s truncation sentence does not appear on --version at all. The install page’s first verify command is openclaw --version. On this host that command succeeds on the Node the package refuses for setup.
--help on the Node 22-only PATH also exited 0 and put the unsupported-node sentence on stderr. It is not a support check. It does not run setup.
Setup refuses only when no other node is visible
setup --baseline and config validate, started with /usr/bin/node and a Node 22-only PATH, both exited 1 with empty stdout. Stderr was the truncation sentence, with 22.23.5 in the version slot, then:
If you use nvm, run:
nvm install 26
nvm use 26
nvm alias default 26
The experimental SQLite warning followed. Neither command created openclaw.json, a workspace, or a state directory. The quoted diagnostic on the compatibility page stops at the fix hint. This binary added the nvm block and named Node 26, not Node 24. Node 24.22.3 ran the same setup successfully when it was the binary that actually continued.
Appending that Node 24 bin directory changed the setup result without changing the argv or the start binary. Exit 0. Stderr began with the same Retrying with line, reason PATH, and then the Node 22 experimental warning. After the child ran, stderr also had [state/agent-db] agent database clean-close receipt: written; agent=main. Stdout was the baseline success text: it wrote ~/.openclaw/openclaw.json, reported the workspace and the main sessions directory, and pointed at openclaw onboard as the next guided path. The tilde is the process HOME. In this run that home was the case directory, not the operator account. A log scraper that looks for an absolute path will not find one in that success text.
The files on disk matched a direct Node 24.22.3 baseline, which printed the same stdout and whose stderr was only the clean-close receipt. The retried setup created the config and its backup, the workspace bootstrap files, a sessions directory, local sqlite databases, and a credentials database. It did not install a Gateway service and it did not print a token. Treat the new home as state, not as a dry run. The Node 22-only refusal created none of those files. The difference is the later PATH entry, not a second copy of the OpenClaw package.
config validate shows the same handoff with a different final sentence. On Node 22 alone it stopped at the truncation sentence and wrote nothing. On Node 24, and on the Node 22 start that retried onto Node 24, it exited 1 with Config file not found: ~/.openclaw/openclaw.json and told the operator to run openclaw onboard or openclaw doctor --fix. Those runs created ~/.openclaw/logs and a tmp directory. The missing-file sentence is what you get after admission has already succeeded. It is not a substitute for the truncation sentence, and it is not evidence that the start binary was supported. If the retry line is present, the missing-file result was produced by the Node named in that line.
Diagnostic commands do not print the refusal
The truncation sentence was not what gateway status, doctor --lint, or update status --json printed when they were started on Node 22 with no other node on PATH. Those three were not stopped before the CLI loaded. That is the opposite of setup --baseline and config validate, which never got past the admission text.
gateway status exited 1. Stderr had the unsupported-node sentence, then [openclaw] The CLI command failed. and a pointer at openclaw doctor. It created ~/.openclaw/logs and a tmp directory. The setup refusal had created nothing. A status check that fails admission-adjacent work is not a read-only probe on this build. If you run it on a home you meant to leave empty, check those directories before you describe the run as a no-write failure.
doctor --lint also exited 1, and it did not print the truncation sentence. The experimental warning came first, then the unsupported-node sentence, then the same CLI-failed lines. Stdout was empty. There was no JSON report. On Node 24.22.3 the same argv exited 1 as well, but stdout was a JSON document with ok false, checksRun 42, and warning findings about an empty home, including an unset gateway.mode. That exit is the lint threshold the doctor page describes for findings. The Node 22 exit is a failed command with no report. Comparing the two exit codes without the body will call both runs the same failure. They are not. The doctor page says --lint is the read-only CI posture and that --json exits successfully after an advisory report. This Node 22 run produced neither the lint JSON nor a successful advisory report. It also did not print the truncation sentence a parser would be waiting for if it had just read the compatibility page.
update status --json is the case that will mislead a JSON-only script. It exited 1. Stdout was one document:
{"ok": false, "error": {"type": "cli_error", "message": "DisposableStack is not defined"}}
Stderr had the experimental warning, the unsupported-node sentence, and [openclaw] Reason: DisposableStack is not defined. The JSON message does not mention Node, sqlite, or the engines range. The CLI reference says a JSON failure uses that envelope and that scripts should parse stdout and still check the exit status. Both of those are true here, and neither field tells you the runtime was refused. DisposableStack is the exception the loaded command hit on Node 22.23.5 after the diagnostic path let it through. Installing a missing package named in that message will not fix it. The truncation sentence, which does name the runtime, was not the stdout of this command.
The install page’s verify sequence is --version, then doctor, then gateway status. On this Node 22-only PATH, version exits 0, doctor lint exits 1 without the truncation sentence, and gateway status exits 1 after creating log and tmp directories. None of those three is the setup refusal. A host check that stops at the first exit 0 has stopped before the command that enforces the floor.
Pin the binary, then read stderr
Decide the node binary before you invoke OpenClaw. node -v answers the question only when that node is the one the CLI will keep. On this host /usr/bin/node -v printed v22.23.5 while a later PATH entry was enough for setup to finish on v24.22.3.
Invoke the installed openclaw.mjs with the binary you mean, and set PATH so that binary’s directory is the only directory containing a node. Do not append a second Node “for the installer” and then judge the first binary by the exit code. If stderr contains Retrying with, the exit code and the stdout belong to the binary named in that line. The parent already failed admission. If you intended to reject Node 22, that retry is the failure, even when setup exits 0.
If you intended to run on Node 22 and prove the refusal, keep Node 24 and Node 26 off PATH, start with /usr/bin/node or whatever path node -v actually resolved to, and require the truncation sentence plus exit 1 from setup --baseline. Require an unchanged home. Do not require that sentence from --version, --help, doctor --lint, gateway status, or update status --json. Those commands did not print it as their result on this build. --version and --help exited 0. The other three exited 1 with a different text, and update status --json put DisposableStack is not defined in the JSON message.
If you intended to run on Node 24.22.3, start with that binary and require empty stderr from --version, the baseline success text from setup --baseline, and no Retrying with line. The clean-close receipt on stderr is normal for that setup on this build. A missing-config sentence from config validate means admission already passed and the home has no file yet. It does not mean the Node check failed.
The nvm hint in the refusal names Node 26. Node 24.22.3 was sufficient for every command that the Node 22-only PATH refused, once that binary was the one that continued. Use 24.22.1 or later on the 24.x line, or 26.12.1 or later, if you are also applying the certificate guidance on the compatibility page. This run did not compare 24.16.0 with 24.22.3, and it did not install Node 26. The measured substitute for Node 22.23.5 was 24.22.3.
Do not point this check at a home that already holds channel tokens or a Gateway service. Baseline created a credentials database in the case home. The commands here did not log in, but the files are still local state. Remove the case home when the check is done, and confirm the operator ~/.openclaw was not the directory that changed.
Verification
Use a new HOME and an explicit node binary. Confirm the versions before the OpenClaw argv:
/usr/bin/node -v
/path/to/node-v24.22.3/bin/node -v
On this host those printed v22.23.5 and v24.22.3. Then run setup twice, changing only PATH.
PATH=/usr/bin:/bin /usr/bin/node /path/to/openclaw.mjs setup --baseline
PATH=/usr/bin:/bin:/path/to/node-v24.22.3/bin /usr/bin/node /path/to/openclaw.mjs setup --baseline
Require exit 1, empty stdout, the truncation sentence containing 22.23.5, and the nvm block from the first command. Require no openclaw.json in that home. Require exit 0, the Retrying with line naming the Node 24 binary, and the baseline success text from the second command. Require openclaw.json in the second home. If the second command exits 1 with the truncation sentence, Node 24 was not visible as node on PATH. A tarball sitting on disk is not enough. This run appended the directory that contains the node executable.
Repeat the comparison for --version. Require exit 0 and OpenClaw 2026.11.7 (e31bbf0) in both layouts. Require the unsupported-node sentence only in the Node 22-only layout. Require the retry line only when a supported node is later on PATH. If a later build makes --version exit 1 on Node 22, the exit code has become a useful check and this note no longer describes it. Until that is observed, do not promote version’s exit 0 into a support result.
For update status --json on a Node 22-only PATH, require the JSON envelope and do not branch on DisposableStack as if it were a missing module from the package. The unsupported-node sentence, when it appears, is on stderr beside that document. For doctor --lint, require a JSON body before you treat exit 1 as a lint finding. On Node 22 this build produced no body.
The measured boundary is CLI admission and baseline file creation. It is not a running Gateway, not a channel login, and not an agent turn. setup --baseline on the Node that passed admission wrote directories and stopped. It did not onboard.
Sources
- OpenClaw 2026.11.7,
openclaw --versionoutputOpenClaw 2026.11.7 (e31bbf0), Linux x86_64, 23 November 2026. Isolated prefix install with npm 11.19.1 from the official Node v24.22.3 tarball. IsolatedHOMEper case. No onboard, no Gateway service, no channel, no model login. Node v22.23.5setup --baselineexited 1 with the truncation sentence whenPATHhad no other node. The same start binary exited 0 and wrote the baseline home when Node v24.22.3 was later onPATH, after stderr reportedRetrying withthat binary.--versionexited 0 in both layouts with the same stdout line. - Node v24.22.3 Linux x86_64 tarball, checksum matched
https://nodejs.org/dist/v24.22.3/SHASUMS256.txtbefore unpack. Host Node was v22.23.5. - OpenClaw Node.js compatibility page, fetched 23 November 2026: https://docs.openclaw.ai/install/node-compatibility. It documents the engines expression, the Node 22 exclusion, the truncation diagnostic, and a preference for an already-installed patched Node in the certificate-guidance paragraph. It does not document the
Retrying withPATH handoff or theDisposableStackJSON fromupdate status --json. - OpenClaw install page, fetched 23 November 2026: https://docs.openclaw.ai/install. The verify sequence is
openclaw --version,openclaw doctor, andopenclaw gateway status. The npm 11.16+ install line includes--allow-scripts=openclaw. This prefix install warned that those scripts were not approved, then baseline setup on Node 24.22.3 still wrote the home. - OpenClaw setup CLI page, fetched 23 November 2026: https://docs.openclaw.ai/cli/setup. It documents
setup --baselineas creating config, workspace, and session directories without the onboarding wizard. It does not say the command will re-exec on another Node fromPATH. - OpenClaw CLI reference, fetched 23 November 2026: https://docs.openclaw.ai/cli. JSON failures use the
ok: falseenvelope. That envelope was present forupdate status --jsonon Node 22, and its message wasDisposableStack is not defined.