openclaw-space / setup.sh
Shiye1's picture
use official openclaw installer
29eb60a
Raw
History Blame Contribute Delete
685 Bytes
#!/bin/sh
set -e
export PATH="/root/.openclaw/bin:/home/user/.openclaw/bin:$PATH"
if mkdir -p /data/.openclaw 2>/dev/null; then
export OPENCLAW_HOME=/data
else
export OPENCLAW_HOME=/home/user
mkdir -p /home/user/.openclaw
fi
CONFIG_FILE="${OPENCLAW_HOME}/.openclaw/openclaw.json"
if [ -n "${DEEPSEEK_API_KEY}" ] && [ ! -f "$CONFIG_FILE" ]; then
openclaw onboard --non-interactive \
--mode local \
--auth-choice deepseek-api-key \
--deepseek-api-key "$DEEPSEEK_API_KEY" \
--skip-health \
--accept-risk
openclaw config set agents.defaults.model.primary "deepseek/deepseek-v4-flash"
fi
exec openclaw gateway --allow-unconfigured --bind lan --port 7860