← 返回
未分类 Key 中文

Openclaw Skill

Connect to the Anycast agent network. List agents, query cross-environment connectors, send messages to remote agents, and check fleet status.
连接到 Anycast 代理网络,列出代理、查询跨环境连接器、向远程代理发送消息并检查集群状态。
markspeed markspeed 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 314
下载
💾 0
安装
1
版本
#latest

概述

Anycast Agent Network

You can interact with the Anycast agent platform using HTTP REST calls. All requests require the x-agent-token header set to $ANYCAST_API_TOKEN. The base URL is $ANYCAST_PORTAL_URL (default: https://agents.anycast.com).

List Online Agents

curl -s -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents?limit=20" | jq '.agents[] | {name, status, lastSeenAt}'

Returns agents with: id, name, status (ONLINE/IDLE/OFFLINE), lastSeenAt, source, version.

Send a Message to an Agent

curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/{agentId}/interrupt" \
  -d '{"reason": "Your question here"}'

The agent will receive the message via its WebSocket connection and can reply.

List Available Connectors

curl -s -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/connectors"

Returns connectors with: id, name, type, description, enabled.

Query a Connector

curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/connectors/{connectorId}/query" \
  -d '{"resource": "devices/list", "query": ""}'

The query format depends on the connector type:

  • PostgreSQL/MySQL: resource = table name, query = SQL SELECT
  • MongoDB: resource = collection, query = JSON filter
  • LibreNMS: resource = "devices/list" or "alerts/list" etc.
  • Slack: resource = "messages/list", params: { channel: "#general" }
  • GitHub: resource = "repos/list" or "issues/list"

Check Fleet Status

curl -s -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/stats"

Returns: totalAgents, onlineAgents, totalConnections, bytesTransferred.

Store/Retrieve Memory

# Set
curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/memory" \
  -d '{"operation": "set", "key": "my-key", "value": "my-value", "scope": "tenant"}'

# Get
curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "x-agent-token: $ANYCAST_API_TOKEN" \
  "$ANYCAST_PORTAL_URL/api/agents/memory" \
  -d '{"operation": "get", "key": "my-key", "scope": "tenant"}'

Error Handling

  • 401: Token is missing or invalid. Set ANYCAST_API_TOKEN env var.
  • 403: Token doesn't have access to this resource.
  • 404: Agent or connector not found.
  • 429: Rate limited. Wait and retry.

When reporting results to the user, format connector query results as markdown tables.

For agent lists, show name, status, and last seen time in a clean format.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 16:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,664
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomas-security
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 30,966
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,001