onebot-adapterConnect OpenClaw to OneBot protocol for QQ bot integration. Use when receiving or sending QQ messages via NapCat or other OneBot servers.
Install via ClawdBot CLI:
clawdbot install Gu-Heping/onebot-adapterConnect OpenClaw to OneBot protocol servers like NapCat for QQ bot functionality.
Set OneBot server URL in environment or config:
export ONEBOT_WS_URL="ws://127.0.0.1:3001"
export ONEBOT_HTTP_URL="http://127.0.0.1:3000"
export ONEBOT_TOKEN="your-token"
Use the WebSocket listener script to receive QQ messages:
python scripts/onebot_ws_listener.py
Use HTTP API to send messages:
from scripts.onebot_client import OneBotClient
client = OneBotClient()
client.send_private_msg(user_id=123456, message="Hello!")
client.send_group_msg(group_id=789012, message="Group message")
client.get_login_info()
client.get_friend_list()
client.get_group_list()
See references/message-handling.md for message parsing and response patterns.
NapCat is a OneBot11 implementation based on NTQQ.
Default ports:
Token authentication is optional but recommended for public deployments.
Connection refused: Check if OneBot server is running and ports are correct.
Authentication failed: Verify token matches OneBot server configuration.
Message not delivered: Check user_id/group_id exists and bot has permission.
Generated Feb 26, 2026
Automates moderation and engagement in QQ groups for gaming or hobby communities. The bot can send welcome messages, enforce rules, and answer FAQs, reducing manual workload for admins.
Integrates with QQ to provide automated responses and ticket handling for small businesses. It can route inquiries to human agents and send order updates, improving response times.
Sends reminders and announcements to students in QQ groups for online courses or schools. It can distribute assignments and answer common questions, enhancing communication efficiency.
Facilitates communication within company teams via QQ, sending alerts and updates. It can integrate with project management tools to notify members about deadlines or meetings.
Promotes events or products by broadcasting messages to QQ groups and users. It can manage registrations and provide details, helping organizers reach a wider audience.
Offers tiered monthly plans for access to advanced bot features like analytics or custom integrations. Revenue comes from businesses or community admins needing scalable automation.
Provides basic bot functionality for free, with premium features such as priority support or advanced APIs available for a fee. Attracts a large user base and converts some to paid plans.
Sells tailored bot solutions and integration services for specific client needs, such as unique message handling or data syncing. Targets enterprises with complex requirements.
๐ฌ Integration Tip
Ensure the OneBot server is running and ports are correctly configured before connecting; use WebSocket for real-time features and HTTP for simple tasks.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection