AgentSkillsCN

openclaw-setup

在VPS上安装并配置OpenClaw代理运行时。适用于将OpenClaw部署到全新服务器,或搭建自主代理运行环境时使用。

SKILL.md
--- frontmatter
name: openclaw-setup
description: Install and configure OpenClaw agent runtime on a VPS. Use when deploying OpenClaw to a fresh server or setting up an autonomous agent environment.

OpenClaw Setup

Install OpenClaw on a VPS using the official installer with non-interactive automation.

Prerequisites

  • Ubuntu 24.04 or Debian-based system
  • SSH access
  • ~2GB RAM (Small VPS plan sufficient)

Automated Install

bash
# 1. Run the official installer (handles Node.js and all dependencies)
curl -fsSL https://openclaw.ai/install.sh | bash

# 2. Complete setup (the installer fails here without TTY - this fixes it)
openclaw onboard --non-interactive \
  --mode local \
  --skip-skills

# 3. Install gateway service
openclaw gateway install

Verification

bash
# Check installation
openclaw --version

# Check workspace
ls -la ~/.openclaw/
ls -la ~/.openclaw/workspace/

Minimal Configuration

For a truly autonomous agent with no human intervention:

Don't configure (yet):

  • ❌ Telegram bot (requires human to create bot via @BotFather)
  • ❌ Nostr keys (generate programmatically later)
  • ❌ Model API keys (add when needed)

The agent is ready when:

  • ✅ OpenClaw CLI installed
  • ✅ Workspace initialized
  • ✅ No channels configured (agent will add these autonomously later)

Troubleshooting

IssueFix
openclaw: command not foundReload shell: source ~/.bashrc or open new terminal
Gateway won't startCheck openclaw doctor for health issues

References