Skip to content

ThankRain/openclaw-onebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneBot Plugin for OpenClaw

OneBot v11 MVP channel plugin.

Current scope

  • inbound via HTTP webhook or WebSocket
  • outbound text messages via OneBot HTTP API or active WebSocket session
  • private chat + group chat
  • multiple accounts
  • optional x-signature verification (sha1=)

Not implemented yet

  • media/file upload
  • reactions
  • recall/delete
  • rich CQ code round-trip
  • reverse websocket mode
  • full onboarding UI polish

Suggested config

{
  "plugins": {
    "load": {
      "paths": ["/home/xeu/.openclaw/workspace/onebot-plugin"]
    },
    "entries": {
      "onebot": { "enabled": true }
    }
  },
  "channels": {
    "onebot": {
      "enabled": true,
      "accounts": {
        "default": {
          "enabled": true,
          "name": "NapCat",
          "selfId": "123456789",
          "apiBaseUrl": "http://127.0.0.1:3000",
          "wsUrl": "ws://127.0.0.1:6700",
          "accessToken": "your-onebot-token",
          "webhookPath": "/onebot/default",
          "webhookSecret": "your-webhook-secret"
        }
      }
    }
  }
}

Routing

Send targets:

  • private chat: private:123456
  • group chat: group:123456
  • plain number defaults to private chat: 123456

OneBot side

You can use either:

  • HTTP webhook events -> OpenClaw webhook path
  • WebSocket client mode -> let OpenClaw connect to wsUrl

For HTTP events, configure your OneBot implementation to POST events to:

http://<openclaw-host>:<gateway-port>/onebot/default

If webhook signing is enabled, send header:

x-signature: sha1=<hex-hmac>

Where HMAC payload is the raw request body and key is webhookSecret.

About

OneBot v11 MVP plugin for OpenClaw

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors