AI & Integration v1.0.0

clawnexus

Discover, name, and manage OpenClaw instances on your local network using the ClawNexus daemon. Use when: (1) user asks...

alan 更新于 2026-03-05 1 浏览
下载 SKILL

技能说明

Discover, name, and manage OpenClaw instances on your local network using the ClawNexus daemon. Use when: (1) user asks about other AI instances or agents on their network, (2) checking if a specific instance is online, (3) connecting to another OpenClaw instance by name, (4) scanning the LAN for OpenClaw gateways, (5) setting friendly names (aliases) for instances. NOT for: managing the OpenClaw instance the agent is currently running on, cross-internet connections without Registry setup, or tasks that don't involve multi-instance discovery.

使用场景

Discover and manage OpenClaw instances on your local network. The ClawNexus daemon (clawnexus) runs at http://localhost:17890 and maintains a registry of discovered instances.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/clawnexus
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 20 kB
SKILL.md text/markdown
---
name: clawnexus
description: "Discover, name, and manage OpenClaw instances on your local network using the ClawNexus daemon. Use when: (1) user asks about other AI instances or agents on their network, (2) checking if a specific instance is online, (3) connecting to another OpenClaw instance by name, (4) scanning the LAN for OpenClaw gateways, (5) setting friendly names (aliases) for instances. NOT for: managing the OpenClaw instance the agent is currently running on, cross-internet connections without Registry setup, or tasks that don't involve multi-instance discovery."
metadata: { "openclaw": { "emoji": "🦞" } }
---

# ClawNexus

Discover and manage OpenClaw instances on your local network. The ClawNexus daemon (`clawnexus`) runs at `http://localhost:17890` and maintains a registry of discovered instances.

## Prerequisites

```bash
# Install and start the daemon
npm install -g clawnexus
clawnexus start
```

## When NOT to Use

- Daemon not running → tell the user to run `clawnexus start` first
- User only has one OpenClaw instance and doesn't need discovery
- Cross-internet connections without a `.claw` name (use local LAN only)

## Commands

### List all known instances

```bash
curl -s http://localhost:17890/instances | jq '.instances[] | {name: (.alias // .auto_name), status, address}'
```

### Check a specific instance (by alias, auto_name, or address:port)

```bash
curl -s http://localhost:17890/instances/home
curl -s http://localhost:17890/instances/olivia
curl -s http://localhost:17890/instances/192.168.1.10:18789
```

### Scan the local network for OpenClaw instances

```bash
curl -s -X POST http://localhost:17890/scan
```

### Set a friendly alias for an instance

```bash
curl -s -X PUT http://localhost:17890/instances/olivia/alias \
  -H "Content-Type: application/json" \
  -d '{"alias": "home"}'
```

### Get the WebSocket URL to connect to an instance

```bash
# Get address and port, then build URL
curl -s http://localhost:17890/instances/home | jq '"ws://\(.address):\(.gateway_port)"'
```

### Check daemon health

```bash
curl -s http://localhost:17890/health
```

### Resolve a .claw name (Registry, requires internet + v0.2+)

```bash
curl -s http://localhost:17890/resolve/myagent.id.claw
```

## Workflow: "Is home online?"

1. Check instances: `curl -s http://localhost:17890/instances`
2. Look for alias "home" in the response
3. If `status: "online"` → confirm to user
4. If not found → suggest scanning: `curl -X POST http://localhost:17890/scan`

## Workflow: "Connect me to raspi"

1. Resolve: `curl -s http://localhost:17890/instances/raspi`
2. Build URL: `ws://<address>:<gateway_port>`
3. Report URL to user for use with OpenClaw's gateway connect

## Notes

- Instance identifiers accept: `alias`, `auto_name`, `display_name`, `agent_id`, IP address, or `address:port`
- `auto_name` is derived from the hostname (e.g., hostname "Olivia" → auto_name "olivia")
- `is_self: true` instances are the local machine (address `127.0.0.1`); useful for health checks
- The daemon persists registry to `~/.clawnexus/registry.json`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。