360 Secure SkillHub
360 安全技能中心

OpenClaw Direct Setup

这是OpenClaw的一键安装工具,无需Docker,支持Windows、macOS、Linux。核心功能包括自动安装OpenClaw、ClawHub及相关技能,配置LLM参数并启动网关,自带localhost绑定、权限检测等安全特性。用户只需运行对应平台脚本,按提示配置端口、LLM信息,即可快速搭建本地AI助手环境,还可通过命令管理服务。

ningtoba
ningtoba
热度 53.50
最近更新 2026-05-11 17:29:05
分类:自动化依赖:代码执行应用场景:自动化脚本 / 安全

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openclaw-direct
Metadata
name
openclaw-direct
description
One-click OpenClaw installer with security hardening. No Docker required - runs directly on Windows, macOS, and Linux.
metadata
{"user-invocable":true}

OpenClaw Direct Setup

Double-click to install! No Docker required.

Quick Start

Windows: Double-click setup.bat or setup.ps1 Linux/Mac: Run bash setup.sh

The script will:

  1. Check if Node.js is installed
  2. Install OpenClaw globally
  3. Install ClawHub CLI and skills (pc-assistant, event-monitor)
  4. Create config with your LLM settings
  5. Start Ollama (if not running)
  6. Start the OpenClaw gateway

That's it!

Requirements

What Gets Installed

Component Details
OpenClaw npm install -g openclaw
ClawHub npm install -g clawhub
Skills pc-assistant, event-monitor
Config ~/.openclaw/openclaw.json
Workspace ~/.openclaw/workspace

Security Features

  • Localhost-only binding (127.0.0.1) - No external network access
  • Admin/root detection - Blocks if running with elevated privileges
  • Optional firewall rules - Blocks external access to gateway port
  • Tailscale disabled by default - No account required

Configuration Options

During setup, you'll be asked for:

Option Default Description
Port 18789 Gateway port
LLM Base URL http://localhost:11434/v1 Your LLM API endpoint
LLM Model ServiceNow-AI/Apriel-1.6-15b-Thinker:Q4_K_M Model ID

Common LLM Setups

Ollama

LLM Base URL: http://localhost:11434/v1
LLM Model: llama3

LM Studio

LLM Base URL: http://localhost:1234/v1
LLM Model: llama-3-8b

vLLM

LLM Base URL: http://localhost:8000/v1
LLM Model: mistral-7b

OpenAI

LLM Base URL: https://api.openai.com/v1
LLM Model: gpt-4o

After installation, edit ~/.openclaw/openclaw.json to add your API key.

After Installation

Commands

# Start gateway
openclaw gateway

# Stop gateway
openclaw gateway stop

# Check status
openclaw status

Uninstall

npm uninstall -g openclaw
rm -rf ~/.openclaw

Scripts

File Platform Usage
setup.bat Windows Double-click or run in CMD
setup.ps1 Windows Right-click → Run with PowerShell
setup.sh Linux/Mac bash setup.sh

Problems?

  1. Node.js not found - Restart after installing Node.js
  2. Port in use - Choose a different port during setup
  3. LLM not connecting - Check your LLM is running and the URL is correct
  4. Ollama port conflict - Script detects if port 11434 is already in use

Version History

1.0.0

  • Initial release
  • Security hardening (localhost binding, admin detection)
  • Auto-install pc-assistant and event-monitor skills
  • Ollama port conflict detection
  • Optional firewall rules