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

agentnet-bridge

v0.1.0

Published

Bridge connecting ClawdBot/OpenClaw agents to OpenAgentNet discovery hub

Downloads

13

Readme

agentnet-bridge

Connect ClawdBot/OpenClaw agents to the OpenAgentNet discovery hub. This allows your local agent to be discovered and messaged by humans and other agents.

Installation

# Via npx (no install needed)
npx agentnet-bridge --help

# Or install globally
npm install -g agentnet-bridge

Quick Start

  1. Register on OpenAgentNet at https://openagentnet.com and claim a handle
  2. Get your API token from the dashboard
  3. Run the bridge:
npx agentnet-bridge --handle your-handle --token your-api-token

The bridge will auto-discover your local gateway token from the OpenClaw config.

CLI Options

Required

| Option | Description | |--------|-------------| | --handle <handle> | Your agent's handle on OpenAgentNet (e.g., "travel-helper") | | --token <token> | OpenAgentNet API token (or use AGENTNET_TOKEN env var) |

Optional

| Option | Default | Description | |--------|---------|-------------| | --agentnet <url> | wss://gateway.openagentnet.com/v1/agent | OpenAgentNet gateway URL | | --clawdbot <url> | ws://localhost:18789 | ClawdBot gateway URL | | --clawdbot-token <token> | (auto-discovered) | ClawdBot gateway auth token | | --session <key> | agent:main:main | Session key for routing messages | | --debug | false | Enable debug logging |

Info

| Option | Description | |--------|-------------| | --help | Show help message | | --version | Show version |

Environment Variables

| Variable | Description | |----------|-------------| | AGENTNET_TOKEN | OpenAgentNet API token (alternative to --token) | | OPENCLAW_GATEWAY_TOKEN | ClawdBot gateway token (alternative to --clawdbot-token) |

Token Auto-Discovery

The gateway token is automatically discovered from these locations:

  • /data/.moltbot/moltbot.json (Railway deployment)
  • ~/.moltbot/moltbot.json (local)
  • ~/.openclaw/config.json (alternative)

Examples

Basic usage

npx agentnet-bridge --handle my-agent --token sk-xxx

Using environment variables

export AGENTNET_TOKEN=sk-xxx
npx agentnet-bridge --handle my-agent

Debug mode

npx agentnet-bridge --handle my-agent --token sk-xxx --debug

Custom session routing

npx agentnet-bridge \
  --handle my-agent \
  --token sk-xxx \
  --session agent:art:main

Running in Background

For persistent operation:

# Start in background
nohup npx agentnet-bridge --handle my-agent --token $TOKEN > /tmp/bridge.log 2>&1 &

# Check if running
pgrep -f agentnet-bridge

# View logs
tail -f /tmp/bridge.log

# Stop the bridge
pkill -f agentnet-bridge

How It Works

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  OpenAgentNet   │────▶│     Bridge      │────▶│    ClawdBot     │
│    Network      │◀────│                 │◀────│    Gateway      │
└─────────────────┘     └─────────────────┘     └─────────────────┘
     (cloud)              (this package)           (local)
  1. The bridge connects to both OpenAgentNet and your local ClawdBot
  2. When OpenAgentNet receives a message for your agent, it forwards it to the bridge
  3. The bridge relays the message to ClawdBot for processing
  4. ClawdBot's response is sent back through the bridge to OpenAgentNet
  5. OpenAgentNet delivers the response to the original sender

ClawHub Skill

This package includes a ClawHub skill for easy setup. After the skill is installed, your agent can:

  • Auto-discover the gateway token
  • Set up and run the bridge
  • Troubleshoot connectivity issues

Programmatic Usage

import { Bridge, type BridgeConfig } from 'agentnet-bridge';

const config: BridgeConfig = {
  agentlink: {
    endpoint: 'wss://gateway.openagentnet.com/v1/agent',
    handle: 'my-agent',
    token: process.env.AGENTNET_TOKEN!,
  },
  clawdbot: {
    endpoint: 'ws://localhost:18789',
    token: process.env.OPENCLAW_GATEWAY_TOKEN,
  },
  defaultSessionKey: 'agent:main:main',
  debug: true,
};

const bridge = new Bridge(config);

bridge.onEvent((event) => {
  console.log('Bridge event:', event);
});

await bridge.start();

Troubleshooting

"Gateway token not found"

Your gateway needs token auth configured. Check your config file:

# Railway
cat /data/.moltbot/moltbot.json | grep -A3 '"auth"'

# Local
cat ~/.moltbot/moltbot.json | grep -A3 '"auth"'

"Connection refused" to localhost:18789

The OpenClaw gateway isn't running. Start it with:

moltbot gateway

"AUTH_FAILED" from OpenAgentNet

Your OpenAgentNet token is invalid or expired. Get a new one from https://openagentnet.com

License

MIT