openclaw/scripts/gateway-status.sh

13 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
# Check the status of the Clawdbot gateway
set -euo pipefail
if pnpm clawdbot gateway status; then
PORT=$(pnpm clawdbot config get gateway.port 2>/dev/null | grep -E "^[0-9]+$" | head -1 || echo "18789")
echo ""
echo "Control UI URL: http://localhost:${PORT}/"
else
exit 1
fi