← 返回
开发者工具 中文

Openclaw Remote Install

One-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)...
通过SSH一键远程部署OpenClaw。自动检测系统并选择最佳方式(Docker/Podman/npm)。适用场景:(1) 在VPS/云服务器上安装,(2)...
codeblackhole1024 codeblackhole1024 来源
开发者工具 clawhub v1.0.1 1 版本 99870.1 Key: 无需
★ 0
Stars
📥 769
下载
💾 16
安装
1
版本
#automation#deployment#devops#install#latest#remote#ssh#vps

概述

OpenClaw Remote Install Skill

This skill handles remote installation and configuration of OpenClaw on remote servers via SSH with intelligent method selection and async execution support.

Log Directory

All installation logs are automatically saved to:

~/.openclaw/remote-install-logs/<host>_<timestamp>/

Each installation creates:

  • install.log - Main installation log with timestamps
  • install_output.log - Raw command output
  • install.pid - Background process PID (async mode)
  • install.status - Installation status: running/success/failed/timeout

A symlink latest points to the most recent log directory.

Supported Installation Methods

MethodDescriptionBest For
-------------------------------
auto (default)Auto-detect best method based on OSMost cases
installerOfficial install.sh scriptStandard Linux/macOS
cliinstall-cli.sh (local prefix)No system Node dependency
npmnpm install -g openclawNode 22+ already installed
pnpmpnpm add -g openclawpnpm users
dockerDocker containerContainerized deployments
podmanPodman rootless containerRootless environments

Usage

Quick Start (Auto-detect)

./scripts/install_openclaw_remote.sh <host> <user> <key_path>

Async Installation (Recommended for long-running installs)

# 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

With Password

./scripts/install_openclaw_remote.sh <host> <user> <password> --password-based

Force Specific Method

# 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

Non-interactive (Automation)

./scripts/install_openclaw_remote.sh <host> <user> <key_path> \
  --non-interactive \
  --configure

Custom Log Directory

./scripts/install_openclaw_remote.sh <host> <user> <key_path> \
  --log-dir /path/to/custom/logs

Auto-Detection Logic

The installer automatically selects the best method:

  1. If --docker or --podman flag: Use container method (if available)
  2. If Node 22+ installed: Use pnpm or npm method
  3. Otherwise: Use official install.sh script

Supported Operating Systems

  • Ubuntu/Debian (apt)
  • Fedora/RHEL/CentOS (dnf/yum)
  • Alpine (apk)
  • Arch Linux (pacman)
  • macOS (Homebrew)
  • Windows (WSL2) - via installer script

Post-Installation

# 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"

Configuration Options

Auth Providers (via Python script)

  • openai-api-key - OpenAI API
  • anthropic-api-key - Anthropic API
  • custom-api-key - Custom OpenAI-compatible endpoint
  • azure-openai - Azure OpenAI
  • google-ai - Google AI (Gemini)
  • mistral-api-key - Mistral AI
  • zai-api-key - Z.AI endpoints

Secret Modes

  • plaintext - Store directly in config (not recommended)
  • ref - Environment variable reference (recommended)

Gateway Modes

--gateway-mode local    # Local gateway (default)
--gateway-mode remote   # Remote gateway
--gateway-port 18789

Environment Variables

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.

Troubleshooting

SSH Issues

# Check key permissions
chmod 600 ~/.ssh/id_rsa

# Add to ssh-agent
ssh-add ~/.ssh/id_rsa

Installation Issues

  • Ensure curl is installed
  • Check Node.js 22+ requirement (for non-Docker methods)
  • Review logs: ~/.openclaw/logs/

Docker Issues

# Check Docker status
docker ps

# View logs
docker logs openclaw

# Restart container
docker restart openclaw

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 05:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Email Assistant

codeblackhole1024
多邮箱管理助手,支持 Gmail、163、QQ、Outlook、Hotmail。功能:(1) 读取收件箱并展示邮件摘要 (2) 关键词分析标记重要邮件 (3) 自动提取邮件中的日程信息并生成日历事件。适用于需要统一管理多个邮箱、避免错过重要
★ 1 📥 1,855
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,787
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,698