OpenClaw Connect Enterprise — Node 节点

**版本**: 0.1.5

3,891 stars

Best use case

OpenClaw Connect Enterprise — Node 节点 is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

**版本**: 0.1.5

Teams using OpenClaw Connect Enterprise — Node 节点 should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/openclaw-connect-node/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/ai-scarlett/openclaw-connect-node/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/openclaw-connect-node/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How OpenClaw Connect Enterprise — Node 节点 Compares

Feature / AgentOpenClaw Connect Enterprise — Node 节点Standard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

**版本**: 0.1.5

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# OpenClaw Connect Enterprise — Node 节点

**版本**: 0.1.5

子节点是 OpenClaw Connect Enterprise 的分布式执行单元,通过 WebSocket 长连接注册到 Hub,接收并执行 Hub 下发的任务。

## 快速安装

```bash
# 1. 解压包
unzip openclaw-connect-enterprise-node.zip
cd openclaw-connect-enterprise

# 2. 安装依赖
cd node/server && npm install && cd ../..
cd node/frontend && npm install && cd ../..

# 3. 启动(生产环境)
cd node/server
HUB_URL=http://你的Hub地址:3100 \
APP_ID=你的APP_ID \
APP_KEY=你的APP_KEY \
APP_TOKEN=你的APP_TOKEN \
npx tsx src/index.ts

# 4. 启动(开发环境)
npm run dev
```

## 环境变量

| 变量 | 必填 | 说明 |
|------|------|------|
| `HUB_URL` | ✅ | Hub 服务器地址,如 `http://YOUR_HUB_IP:3100` |
| `APP_ID` | ✅ | 节点唯一标识,在 Hub 后台创建节点获得 |
| `APP_KEY` | ✅ | 节点密钥,在 Hub 后台创建节点获得 |
| `APP_TOKEN` | ✅ | 节点令牌,在 Hub 后台创建节点获得 |
| `NODE_NAME` | 否 | 节点显示名称,默认取主机名 |
| `NODE_PORT` | 否 | 节点本地端口,默认 `3100` |
| `OPENCLAW_GATEWAY_PORT` | 否 | 本地 OpenClaw Gateway 端口,默认 `18789` |

## 凭证持久化

首次注册成功 后,凭证会自动保存到 `~/.openclaw-node/node.json`。重启后会自动恢复连接,无需重新配置。

## 前端界面

```bash
cd node/frontend && npm run build
# 访问 http://节点地址:3100
```

## API 端点

### Hub → Node(节点本地)

| 方法 | 路径 | 说明 |
|------|------|------|
| `GET` | `/api/status` | 节点运行状态 |
| `GET` | `/api/agents` | 本地 Agent 列表 |
| `GET` | `/api/tasks` | 同步的任务列表 |
| `POST` | `/api/tasks/:id/start` | 标记任务开始 |
| `POST` | `/api/tasks/:id/complete` | 标记任务完成 |
| `POST` | `/api/tasks/:id/fail` | 标记任务失败 |

### Node → Hub(Hub 端点)

| 方法 | 路径 | 说明 |
|------|------|------|
| `POST` | `/api/nodes/register` | 注册到 Hub |
| `POST` | `/api/nodes/:id/heartbeat` | 心跳(30秒/次) |
| `GET` | `/api/nodes/:id/tasks` | 拉取分配的任务 |
| `POST` | `/api/nodes/:id/agents/register` | 注册 Agent |
| `POST` | `/node/api/tasks/:id/complete` | 上报任务完成 |
| `POST` | `/node/api/tasks/report` | 上报本地任务到 Hub |

## 任务执行流程

1. 节点每 30 秒向 Hub 拉取新任务(`fetchTasks`)
2. 任务进入执行队列,按优先级依次执行
3. 执行方式(按优先级):
   - **本地 OpenClaw Gateway**(`POST /tools/invoke`)
   - **Hub Execute API**(代理执行)
   - **OpenClaw CLI**(`openclaw agent`)
4. 完成后自动上报结果到 Hub

## 目录结构

```
node/
├── package.json           # 节点总包管理
├── install-node.sh        # 安装脚本
├── uninstall-node.sh      # 卸载脚本
├── README.md              # 英文说明
├── SKILL.md               # 本文档
├── server/
│   ├── src/
│   │   └── index.ts       # 节点服务端主程序
│   ├── package.json
│   └── tsconfig.json
└── frontend/
    ├── src/               # 节点前端页面源码
    ├── package.json
    └── tailwind.config.js
```

## 与 Hub 的连接架构

```
┌─────────────────────────────────────────────────┐
│  Hub (YOUR_HUB_IP:3100)                        │
│  • 任务调度与分发                                 │
│  • 节点管理                                       │
│  • Agent 同步                                    │
│  • 记忆汇聚                                       │
└──────────────┬──────────────────────────────────┘
               │  HTTP REST + WebSocket
               │  心跳 30s / 任务拉取 30s
┌──────────────▼──────────────────────────────────┐
│  Node (各服务器)                                 │
│  • 本地 OpenClaw Gateway (18789)                 │
│  • 任务执行(CLI / REST / Hub Execute)           │
│  • 凭证持久化 (~/.openclaw-node/node.json)        │
└─────────────────────────────────────────────────┘
```

## 升级

从 Hub 后台获取新的节点包,解压后:

```bash
# 备份旧配置(凭证已持久化,通常不需要)
cp ~/.openclaw-node/node.json ~/.openclaw-node/node.json.bak

# 替换代码
rm -rf openclaw-connect-enterprise
unzip new-package.zip
cd openclaw-connect-enterprise/node/server && npm install

# 重启(凭证自动恢复)
pkill -f "tsx src/index"
nohup npm start &
```

Related Skills

openclaw-youtube

3891
from openclaw/skills

YouTube SERP Scout for agents. Search top-ranking videos, channels, and trends for content research and competitor tracking.

Content & Documentation

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

openclaw-media-gen

3891
from openclaw/skills

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

Content & Documentation

OpenClaw Mastery — The Complete Agent Engineering & Operations System

3891
from openclaw/skills

> Built by AfrexAI — the team that runs 9+ production agents 24/7 on OpenClaw.

DevOps & Infrastructure

node-red-manager

3891
from openclaw/skills

Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".

DevOps & Infrastructure

openclaw-safe-change-flow

3891
from openclaw/skills

Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.

DevOps & Infrastructure

jqopenclaw-node-invoker

3891
from openclaw/skills

统一通过 Gateway 的 node.invoke 调用 JQOpenClawNode 能力(file.read、file.write、process.exec、process.manage、system.run、process.which、system.info、system.screenshot、system.notify、system.clipboard、system.input、node.selfUpdate)。当用户需要远程文件读写、文件移动/删除、目录创建/删除、进程管理(列表/搜索/终止)、远程进程执行、命令可执行性探测、系统信息采集、截图采集、系统弹窗、系统剪贴板读写、输入控制(鼠标/键盘)、节点自更新、节点命令可用性排查或修复 node.invoke 参数错误时使用。

DevOps & Infrastructure

linkedin-connect

3891
from openclaw/skills

Send LinkedIn connection requests to a list of people via browser automation and track status in a CSV/TSV file. Use when the user wants to bulk-connect with a list of people on LinkedIn (founders, speakers, leads, etc.) from a spreadsheet or list containing LinkedIn profile URLs. Handles Connect button, Follow-mode profiles, already-connected detection, stale URL fallback via LinkedIn search and Google search, and incremental status tracking.

Workflow & Productivity

openclaw-stock-skill

3891
from openclaw/skills

使用 data.diemeng.chat 提供的接口查询股票日线、分钟线、财务指标等数据,支持 A 股等市场。

Data & Research

openclaw-whatsapp

3891
from openclaw/skills

WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync

Workflow & Productivity

ClawAI.Town — World Connector Skill

3891
from openclaw/skills

Connect your OpenClaw agent to **ClawAI.Town**, a decentralized 3D world on Solana mainnet where autonomous AI agents live, trade, fight, and collaborate with real SOL.

Gaming & Simulation

polymarket-openclaw-trader

3891
from openclaw/skills

Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.

Trading Automation