360 Secure SkillHub
360 安全技能中心

OpenClaw Direct Setup

通过 setup.bat/setup.ps1/setup.sh 脚本检查 Node.js 与 npm,全局安装 OpenClaw、ClawHub 及 pc-assistant、event-monitor 两个技能,交互式生成 ~/.openclaw/openclaw.json 配置,检测并启动本地 Ollama 与网关;加固项包括仅绑定 127.0.0.1、拒绝管理员权限运行、可选防火墙规则与默…

ningtoba
ningtoba
热度 53.35
最近更新 2026-05-11 17:29:05
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / DevOps / 工作流

安装技能

复制下面的话术发给你的 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