Adapter Overview
Adapters connect MaiBot to QQ, Telegram, WeChat, Discord, desktop pets, and other message platforms or clients. Different adapters support different platforms and operating modes, so first-time users should prefer adapters that are actively maintained and well documented.
Choose an Adapter
| Adapter | Platform | Status | Description |
|---|---|---|---|
| NapCat | Recommended | The officially maintained QQ adapter for MaiBot. It supports plugin mode and standalone mode; plugin mode is currently recommended. | |
| GoCQ | Available, older | QQ adapter based on go-cqhttp / AstralGocq, suitable for existing GoCQ setups or specific requirements. | |
| SnowLuma | Available, in development | A newer QQ adapter. It is already usable, but some features and documentation may still need improvement. | |
| Telegram | Telegram | Community adapter | Telegram platform adapter. |
| Discord | Discord | Community adapter | Discord platform adapter. |
| Desktop Pet Adapter | Desktop pet | Community adapter | Connects MaiBot to desktop pet interaction scenarios. |
| WeChat - wxauto Adapter | Community adapter | WeChat adapter based on wxauto. | |
| More adapters | - | Community adapter | Follow the MaiBot GitHub organization or community groups for more third-party adapters. |
For a first QQ deployment, NapCat plugin mode is recommended. It runs directly as a MaiBot plugin, requires less configuration, and avoids maintaining a separate adapter-to-MaiBot network connection.
Legacy / Community Adapters That May Not Be Maintained Promptly
These adapters are mostly older or community projects. Some may not be compatible with the current MaiBot version. Before using them, check the repository update time, README, and issues.
Compatibility
Some community adapters may be older projects and may not work with the current MaiBot version. Check the repository update time, README, and issues before installing.
Plugin Mode Adapters
If an adapter provides plugin mode, the usual installation flow is:
- Download or clone the adapter project.
- Switch to the plugin branch required by the adapter, if needed.
- Put the adapter directory into MaiBot's
plugins/directory. - Start MaiBot and let the plugin system load the adapter automatically.
Plugin mode adapters run inside MaiBot. Usually you only need to configure the connection from the message platform to the adapter.
Standalone Adapters
If an adapter is standalone, the usual installation flow is:
- Download or clone the adapter project.
- Install dependencies according to the adapter documentation.
- Fill in the adapter's own configuration file.
- Start the adapter as a separate process.
Standalone adapters need to connect both to the message platform and to MaiBot. When troubleshooting, check both sides of the connection.
Configure Connections
Adapters usually involve two connection directions:
| Direction | Description |
|---|---|
| Message platform -> adapter | For example, NapCat connects to QQ and pushes QQ messages to the adapter. |
| Adapter -> MaiBot | Standalone adapters need to connect to MaiBot; plugin adapters usually do not need extra configuration for this layer. |
When using a plugin adapter, mainly confirm that the adapter can connect to the message platform.
When using a standalone adapter, also confirm that the adapter can connect to MaiBot's message service address.
If you are not sure what address to use, first run the default local configuration from the adapter documentation, then adjust it for cross-machine or Docker network deployments.
Confirm the Connection
After configuration, send a test message on the target platform.
If MaiBot logs show the message and MaiBot replies normally, the adapter is connected successfully.
If no message is received, check in this order:
- Whether the message platform client has logged in successfully.
- Whether the adapter started normally.
- Whether the adapter connected to the message platform successfully.
- Whether the standalone adapter connected to MaiBot successfully.
- Whether MaiBot has finished initialization and is running normally.