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

@maxesisn-openclaw/onebot11

v0.1.2

Published

OpenClaw OneBot v11 channel plugin (Reverse WebSocket, DM-only)

Readme

@maxesisn-openclaw/onebot11

A minimal, DM-only OneBot v11 channel plugin for OpenClaw (Reverse WebSocket).

This project intentionally focuses on the “small & safe by default” subset:

  • Reverse WS (OneBot v11-compatible client connects as client)
  • Private messages only (no groups)
  • Token auth (Authorization: Bearer ...)
  • Quote/reply support (fetch original via get_msg and include in context)
  • Inbound images (attach up to N URLs to context)
  • Outbound: split long text + light markdown downgrade

If you need group chats / commands / triggers / broader QQ features, use a more feature-complete integration such as community projects like openclaw_qq.

Scope (by design)

  • ✅ OneBot v11 Reverse WebSocket

  • DM-only (private messages)

  • ✅ Token auth (Bearer)

  • ✅ Multi-account (configure multiple OpenClaw channel accounts; typically use different ports)

  • ✅ Inbound images (attach up to N URLs to context)

  • ✅ Reply/quote support (fetch original via get_msg and include in context)

  • ✅ Outbound: split long text + light markdown downgrade

  • ✅ Outbound images via base64:// (file:// gets converted)

  • ❌ Group chats / trigger modes / guilds / admin commands (intentionally out of scope)

Installation

Option A: install from npm (recommended)

openclaw plugins install @maxesisn-openclaw/onebot11
openclaw gateway restart

Option B: local development

Clone this repo on the OpenClaw host, then install it from the local path (or link it) while iterating.

Publishing (maintainers)

This package is published to npm as @maxesisn-openclaw/onebot11.

npm publish --access public

Configuration

Add to your OpenClaw config under channels.onebot11.

Example (single account):

{
  channels: {
    onebot11: {
      enabled: true,
      listenHost: "0.0.0.0",
      listenPort: 3002,
      wsPath: "/onebot/v11/ws",
      accessToken: "<YOUR_TOKEN>",


      includeReplyOriginal: true,
      replyMaxChars: 1200,

      maxMessageLength: 3500,
      rateLimitMs: 800,
      markdownToText: true,
      sendReplySegment: false,

      maxInboundImages: 3
    }
  }
}

Multi-account example (two ports):

{
  channels: {
    onebot11: {
      enabled: true,
      // default account
      listenPort: 3002,
      accessToken: "token-a",
      accounts: {
        work: {
          name: "Work QQ",
          listenPort: 3003,
          accessToken: "token-b"
        }
      }
    }
  }
}

Reverse WS client configuration

Configure your OneBot v11 client (Reverse WebSocket / Universal) to connect:

  • URL: ws://<openclaw-host>:3002/onebot/v11/ws
  • Headers/Auth: Authorization: Bearer <YOUR_TOKEN>

(Exact UI names vary by client implementation.)

Slash commands (/status, /model, ...)

Text slash commands are handled by the OpenClaw Gateway and require the sender to be authorized.

Make sure your channels.onebot11.allowFrom includes your user id (either plain or channel-prefixed):

{
  channels: {
    onebot11: {
      allowFrom: ["onebot11:1763471048", "1763471048"]
    }
  }
}

Debug logging

Set ONEBOT11_DEBUG=1 in the gateway environment to enable extra OneBot11 plugin logs.

Notes

  • This plugin expects OneBot messages preferably in array segment format.
  • If your OneBot implementation does not provide direct image URLs, you may need to enable that in the protocol-side settings.

License

MIT