← 返回
AI智能 中文

Clawnexus

Discover, name, and manage OpenClaw instances on your LAN. Scan for AI agents, check status, set aliases, resolve .claw names, and get connection URLs via th...
在局域网中发现、命名和管理 OpenClaw 实例。扫描 AI 代理、检查状态、设置别名、解析 .claw 域名并获取连接 URL(通过 API)
alan-stratcraftsai
AI智能 clawhub v0.4.1 3 版本 99852.7 Key: 无需
★ 0
Stars
📥 678
下载
💾 2
安装
3
版本
#latest

概述

ClawNexus

Overview

ClawNexus is a naming and discovery layer for OpenClaw. It runs a local daemon that automatically discovers OpenClaw instances on your network and assigns them readable names, so you can refer to instances by alias (e.g., "home") instead of IP addresses.

Works across networks too — instances can register .claw names (like home.alan.id.claw) and connect via encrypted relay from anywhere.

Prerequisites

# 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

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)

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

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

Set a friendly alias for an instance

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

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

Check daemon health

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

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

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://
    :
  3. Report URL to user for use with OpenClaw's gateway connect

Troubleshooting

  • "Connection refused" on localhost:17890 → The ClawNexus daemon is not running. Tell the user to run clawnexus start.
  • No instances found → The daemon may have just started. Run curl -s -X POST http://localhost:17890/scan to trigger a network scan, then retry listing.
  • Instance shows status: "offline" → The OpenClaw gateway on that machine may be stopped. The instance was previously discovered but is not currently reachable.

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

版本历史

共 3 个版本

  • v0.4.1 当前
    2026-05-01 05:24 安全 安全
  • v0.4.0
    2026-03-29 14:11
  • v0.2.7
    2026-03-26 21:57

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,836

NexusFIX Development Expert

alan-stratcraftsai
用于构建、审查、调试或优化基于NexusFIX的C++ FIX协议代码,涵盖会话管理、订单录入及市场数据订阅等功能。
★ 0 📥 385
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,376