Install
openclaw skills install openclaw-remote-installOne-click remote OpenClaw deployment via SSH. Auto-detects OS and selects best method (Docker/Podman/npm). Use when: (1) Installing on VPS/cloud servers, (2)...
openclaw skills install openclaw-remote-installThis skill handles remote installation and configuration of OpenClaw on remote servers via SSH with intelligent method selection and async execution support.
All installation logs are automatically saved to:
~/.openclaw/remote-install-logs/<host>_<timestamp>/
Each installation creates:
install.log - Main installation log with timestampsinstall_output.log - Raw command outputinstall.pid - Background process PID (async mode)install.status - Installation status: running/success/failed/timeoutA symlink latest points to the most recent log directory.
| Method | Description | Best For |
|---|---|---|
auto (default) | Auto-detect best method based on OS | Most cases |
installer | Official install.sh script | Standard Linux/macOS |
cli | install-cli.sh (local prefix) | No system Node dependency |
npm | npm install -g openclaw | Node 22+ already installed |
pnpm | pnpm add -g openclaw | pnpm users |
docker | Docker container | Containerized deployments |
podman | Podman rootless container | Rootless environments |
./scripts/install_openclaw_remote.sh <host> <user> <key_path>
# Run installation in background with progress monitoring
./scripts/install_openclaw_remote.sh <host> <user> <key_path> --async
# Monitor in real-time
tail -f ~/.openclaw/remote-install-logs/latest/install_output.log
# Check status
cat ~/.openclaw/remote-install-logs/latest/install_status
./scripts/install_openclaw_remote.sh <host> <user> <password> --password-based
# Docker installation
./scripts/install_openclaw_remote.sh <host> <user> <key_path> --docker
# Podman installation
./scripts/install_openclaw_remote.sh <host> <user> <key_path> --podman
# npm method (if Node 22+ available)
./scripts/install_openclaw_remote.sh <host> <user> <key_path> --method npm
./scripts/install_openclaw_remote.sh <host> <user> <key_path> \
--non-interactive \
--configure
./scripts/install_openclaw_remote.sh <host> <user> <key_path> \
--log-dir /path/to/custom/logs
The installer automatically selects the best method:
--docker or --podman flag: Use container method (if available)pnpm or npm methodinstall.sh script# SSH into remote server
ssh user@host
# Check status
openclaw status
# Run diagnostics
openclaw doctor
# Configure (models, channels, etc.)
openclaw configure
# Or use Python script for non-interactive config
python3 scripts/configure_openclaw_remote.py <host> <user> \
--auth <key> --key-based --configure \
--auth-choice openai-api-key --api-key "your-key"
openai-api-key - OpenAI APIanthropic-api-key - Anthropic APIcustom-api-key - Custom OpenAI-compatible endpointazure-openai - Azure OpenAIgoogle-ai - Google AI (Gemini)mistral-api-key - Mistral AIzai-api-key - Z.AI endpointsplaintext - Store directly in config (not recommended)ref - Environment variable reference (recommended)--gateway-mode local # Local gateway (default)
--gateway-mode remote # Remote gateway
--gateway-port 18789
For secure non-interactive configuration:
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export CUSTOM_API_KEY="your-key"
Then use --secret-mode ref to reference them securely.
# Check key permissions
chmod 600 ~/.ssh/id_rsa
# Add to ssh-agent
ssh-add ~/.ssh/id_rsa
~/.openclaw/logs/# Check Docker status
docker ps
# View logs
docker logs openclaw
# Restart container
docker restart openclaw