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
8506539549:AAEByOCVoQECRTi3dxt2s7UJ_PndM3ILWTU
base_url = “https://integrate.api.nvidia.com/v1”
api_key = “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”
The four models are:
model=”qwen/qwen3.5-397b-a17b”
model=”deepseek-ai/deepseek-v3.2″
model=”minimaxai/minimax-m2.1″
model=”moonshotai/kimi-k2.5″
OpenClaw gateway restarts often fail on Termux/Android due to stuck processes, lock files, or no systemd support—manual cleanup is key. Use these steps to force a clean restart without reinstalling.
Kill Stuck Processes
First, find lingering OpenClaw/Node processes:ps aux | grep -i openclaw | grep -v grep or ps aux | grep node | grep claw.
Kill them: kill -9 <PID> (replace <PID> with actual IDs).
If none show, Ctrl+C if it’s backgrounded, or avoid Ctrl+Z which suspends.
Clear Locks and Temps
Remove gateway artifacts:rm -rf $PREFIX/tmp/openclaw* or rm -rf ~/.openclaw/tmp/* (adjust if using proot Ubuntu).
Also clear any lock files: rm -f ~/.openclaw/*.lock or check ~/.openclaw/openclaw.json for stale entries.
Restart Gateway
In your Termux/Ubuntu shell:openclaw gateway --bind lan --port 18789 --allow-unconfigured (use your port/token from config).
Tail logs: openclaw gateway --tail if available, or watch with tail -f ~/.openclaw/logs/gateway.log.
Verify: Curl http://localhost:18789/health or browser to dashboard.
Persistence Fixes
Wrap in tmux for detach/restart: tmux new -s claw; openclaw gateway; Ctrl+B D to detach, tmux attach -t claw to resume.
Install Termux:Boot app for auto-start on reboot, add script to ~/.termux/boot/start-openclaw.sh with wake-lock.
Enable restarts in config: Set "commands.restart": true in ~/.openclaw/openclaw.json.
If “ECONNREFUSED” or port in use persists, reboot Termux (termux-reload-settings) or share exact error/logs for more tweaks.
grep -A5 ‘”gateway”‘ ~/.openclaw/openclaw.json | grep token
echo $OPENCLAW_GATEWAY_TOKEN
npm uninstall -g openclaw
npm install -g openclaw@latest
Note: Replace v0.1.1 with the latest version from the Releases page
wget https://github.com/sipeed/picoclaw/releases/download/v0.1.1/picoclaw-linux-arm64
chmod +x picoclaw-linux-arm64
pkg install proot
termux-chroot ./picoclaw-linux-arm64 onboard
https://github.com/sipeed/picoclaw
rm -rf /tmp/openclaw-* ~/.openclaw/tmp
chmod 755 /tmp
Identify and Kill Process
Find the culprit: lsof -i :18789 or netstat -tulpn | grep 18789 (install net-tools if needed: pkg install net-tools).
Note the PID, then kill -9 (e.g., Node or openclaw).
Double-check: pkill -f openclaw and pkill -f node.*claw to nuke all.
Verify Port Free
Run lsof -i :18789 again—should be empty.
If lsof missing: pkg install lsof first.
Restart Gateway
openclaw gateway –port 18789 (or change port in ~/.openclaw/openclaw.json to avoid conflicts, e.g., 18800).
Test: curl http://localhost:18789/health or browser to dashboard.
For persistence: tmux session tmux new -s claw ‘openclaw gateway’; detach/reattach as needed.
Here is the token for bot Dondata @Donadata_bot:
8506539549:AAEByOCVoQECRTi3dxt2s7UJ_PndM3ILWTU
curl -sL https://raw.githubusercontent.com/orailnoor/orailnoor-CloudBot-Termux/main/phone_control.sh > ~/phone_control.sh && chmod +x ~/phone_control.sh
curl -sL https://raw.githubusercontent.com/orailnoor/orailnoor-CloudBot-Termux/main/phone_agent.sh > ~/phone_agent.sh && chmod +x ~/phone_agent.sh
curl -sL https://raw.githubusercontent.com/orailnoor/orailnoor-CloudBot-Termux/main/AGENTS.md > ~/.openclaw/workspace/AGENTS.md
https://github.com/AbuZar-Ansarii/Clawbot
Leave a Reply