Files
loveuer 31624a2a50 docs: align guides with the slimmed fork
Refresh setup, Docker, release, and contribution guidance.
Fix channel settings examples and credential documentation.
Remove Antigravity tutorials and redirect outdated translations.
Align platform, model routing, and troubleshooting instructions.
2026-11-17 16:00:25 +08:00
..

Back to README

OneBot

OneBot is an open protocol standard for QQ bots, providing a unified interface for various QQ bot implementations (e.g. go-cqhttp, Mirai). It uses WebSocket for communication.

Configuration

Configuration: common fields such as enabled, type, and allow_from belong on the channel entry; channel-specific fields belong under settings. Credentials saved under channel_list.<name>.settings in .security.yml override the main JSON configuration.

{
  "channel_list": {
    "onebot": {
      "enabled": true,
      "type": "onebot",
      "allow_from": [],
      "settings": {
        "ws_url": "ws://localhost:8080",
        "access_token": ""
      }
    }
  }
}
Field Type Required Description
enabled bool Yes Whether to enable the OneBot channel
ws_url string Yes WebSocket URL of the OneBot server
access_token string No Access token for connecting to the OneBot server
allow_from array No User ID whitelist; empty means all users are allowed

Setup

  1. Deploy a OneBot-compatible implementation (e.g. napcat)
  2. Configure the OneBot implementation to enable the WebSocket service and set an access token (if needed)
  3. Fill in the WebSocket URL and access token in the configuration file