← Back to library

Android/Termux 节点无命令可执行:先校验命令发现链路再放行执行

场景:节点已配对但 `commands: []`,`nodes run` 全部报 `node command not allowed`。建议按‘发现链路体检→最小白名单→回归验证’执行。

GITHUBDiscovered 2026-02-14Author Peleke
Prerequisites
  • Android Termux node is paired and `openclaw nodes describe` shows connected=true.
  • Gateway side command policy is editable (allowCommands/security settings).
Steps
  1. Start node on Termux and confirm pairing is stable before command tests.
  2. Run `openclaw nodes describe --node <name>` and verify `caps`/`commands`/`pathEnv` fields; record if commands array is empty.
  3. Execute both standard and raw commands (`nodes run` and `nodes run --raw`) to confirm whether rejection happens before execution.
  4. Apply minimal allowlist policy, restart gateway, then repeat tests and compare outputs.
Commands
openclaw node run --host --port 18789 --display-name "Node-Mate20-1"
openclaw nodes describe --node Node-Mate20-1
openclaw nodes run --node Node-Mate20-1 "echo test"
openclaw nodes run --node Node-Mate20-1 --raw "echo test"
openclaw gateway restart
Verify

`commands` is no longer empty and test commands return actual stdout instead of `node command not allowed`.

Caveats
  • Issue is still a bug report; final root cause/patch may change (needs verification).
  • Do not open unrestricted command policies in production just for debugging.
Source attribution

This tip is aggregated from community/public sources and preserved with attribution.

Open original source ↗
Visit original post