Created
March 8, 2026 20:24
-
-
Save leifermendez/d3a155d1230abcbce2b6a8b7355e419c to your computer and use it in GitHub Desktop.
open-fast.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "π Updating system" | |
| sudo apt-get update -y | |
| sudo apt-get upgrade -y | |
| echo "π Installing Node 22" | |
| curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - | |
| sudo apt-get install -y nodejs git build-essential python3 curl wget unzip | |
| echo "π Installing pnpm" | |
| sudo npm install -g pnpm | |
| echo "π Configuring pnpm" | |
| echo 'export PNPM_HOME="/home/leifer/.local/share/pnpm"' >> ~/.bashrc | |
| echo 'case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;; esac' >> ~/.bashrc | |
| export PNPM_HOME="/home/leifer/.local/share/pnpm" | |
| export PATH="$PNPM_HOME:$PATH" | |
| echo "π Installing OpenClaw" | |
| curl -fsSL https://openclaw.ai/install.sh | bash | |
| echo "π Configuring OpenClaw automatically" | |
| openclaw config set gateway.mode local | |
| openclaw config set gateway.auth.enabled true | |
| mkdir -p ~/.openclaw/agents/main/sessions | |
| chmod 700 ~/.openclaw | |
| echo "π Installing gateway service" | |
| mkdir -p ~/.config/systemd/user | |
| openclaw gateway install --runtime node || true | |
| systemctl --user daemon-reload || true | |
| systemctl --user enable openclaw-gateway.service || true | |
| systemctl --user start openclaw-gateway.service || true | |
| echo "π Setup complete" | |
| echo "" | |
| echo "OpenClaw dashboard:" | |
| echo "http://localhost:18789" | |
| echo "" | |
| echo "Use SSH tunnel:" | |
| echo "ssh -N -L 18789:127.0.0.1:18789 leifer@$(curl -s ifconfig.me)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment