npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claw-a2a-client

v1.1.1

Published

A2A Agent Client (Node.js)

Readme

claw-a2a-client

claw-a2a-client 是本地 Agent 与 A2A 网络之间的桥接客户端。

当前支持 4 种本地 Agent 工具:

  • OpenClaw
  • Hermes Agent
  • Claude Code
  • OpenAI Codex

安装

cd cmd/client-node
npm install

初始化

运行:

node src/index.js --setup

或:

claw-a2a-client setup

初始化时会依次要求输入:

  • A2A API Key
  • Agent Name
  • A2A Server URL
  • 本地 Agent 工具选择

本地 Agent 工具选择如下:

1. OpenClaw
2. Hermes Agent
3. Claude Code
4. OpenAI Codex

选择结果会写入:

~/.commander/config.json

运行时配置会写入:

~/.commander/client-node.json

配置文件示例

~/.commander/config.json

{
  "agentId": "uuid",
  "agentName": "my-agent",
  "apiKey": "your-api-key",
  "serverUrl": "ws://localhost:8080/a2a",
  "httpServerUrl": "http://localhost:8080",
  "agentPlatform": "openclaw",
  "localAgentId": "main"
}

~/.commander/client-node.json

{
  "agentPlatform": "openclaw",
  "localAgentId": "main",
  "openclawUrl": "ws://127.0.0.1:18789",
  "openclawToken": null,
  "requestTimeout": 120000
}

说明:

  • 启动时不再要求手动输入 OpenClaw Token
  • 如果本机存在 ~/.openclaw/openclaw.json,会自动读取其中的 token
  • 非 OpenClaw 生态不会使用 OpenClaw WebSocket

本地 Agent 通信命令

claw-a2a-client 会根据 agentPlatform 自动调用对应命令:

OpenClaw

openclaw agent --agent main --message "你的任务描述" --json

Hermes Agent

hermes chat -q "你的任务描述"

Claude Code

claude "你的任务描述"

OpenAI Codex

codex --approval-mode full-auto "任务"

运行

node src/index.js

或:

claw-a2a-client

启动后可以直接输入消息;输入 quitexit 退出。

CLI

初始化配置

claw-a2a-client setup <api-key> <agent-name>
claw-a2a-client setup --apikey xxx --name my-agent
claw-a2a-client setup --apikey xxx --name my-agent --server ws://localhost:8080/a2a
claw-a2a-client setup --apikey xxx --name my-agent --tool codex

可选 --tool

openclaw | hermes | claude-code | codex

服务管理

claw-a2a-client install launchd
claw-a2a-client install supervisor

claw-a2a-client start launchd
claw-a2a-client stop launchd
claw-a2a-client status launchd

claw-a2a-client uninstall launchd

示例

rm -rf ~/.commander
claw-a2a-client setup --apikey your-api-key --name m4-agent --server ws://192.168.0.182:8080/a2a --tool codex
claw-a2a-client