System Requirements
Before installing NapCat, ensure your system meets these requirements:Minimum Requirements
- Operating System: Windows 10+, macOS 10.15+, or Linux (Ubuntu 20.04+, Debian 11+, etc.)
- Node.js: Version 18.0.0 or higher
- Memory: 512MB RAM minimum, 1GB recommended
- Storage: 200MB available disk space
- QQ: Latest version of QQ installed (for Framework mode)
Recommended Requirements
- Memory: 2GB RAM or more for better performance
- Storage: 1GB available disk space for logs and cache
- Network: Stable internet connection
NapCat supports both Shell Mode (standalone) and Framework Mode (QQ plugin). Choose the mode that best fits your deployment needs.
Download NapCat
1
Visit GitHub Releases
Go to the NapCat GitHub Releases page to download the latest version.
2
Choose your platform
Download the appropriate package for your operating system:
- Windows
- macOS
- Linux
NapCat-win-x64.zipfor 64-bit Windows- Extract to a folder like
C:\NapCat
3
Verify the download
Check that you have the main executable:
- Windows:
napcat.exe - Linux/macOS:
napcat
Installation Methods
NapCat supports two deployment modes. Choose the one that fits your needs:- Framework Mode (Recommended)
- Shell Mode
- Docker
Framework Mode Installation
Framework Mode runs NapCat as a plugin injected into QQ, providing the best compatibility and features.Prerequisites
- QQ installed on your system
- QQ version must match NapCat compatibility (check release notes)
Installation Steps
1
Install QQ
Download and install the latest version of QQ from the official QQ website.
2
Extract NapCat
Extract the NapCat archive to a permanent location:
3
Create configuration
Create the configuration directory and files:Create Create
config/napcat.json:config/napcat.json
config/onebot11.json:config/onebot11.json
4
Launch NapCat
Run NapCat in Framework mode:
NapCat will automatically detect your QQ installation and inject itself as a plugin.
5
Access WebUI
After launch, NapCat will display the WebUI URL:Open this URL in your browser to access the management interface.
Framework Mode Features
✅ Multiple login methods (QR code, password, quick login)✅ Rich WebUI for management
✅ Access to all QQ features
✅ Best compatibility with QQ
✅ Suitable for desktop environments
Directory Structure
After installation, your NapCat directory should look like this:Configuration Files
napcat.json
Core NapCat configuration:config/napcat.json
onebot11.json
OneBot 11 protocol configuration:config/onebot11.json
Post-Installation
1
Verify installation
Check that NapCat is running:You should receive a JSON response with the bot status.
2
Set up authentication (recommended)
Add a secret token to your Restart NapCat for changes to take effect.
onebot11.json:3
Configure firewall
If deploying on a server, configure your firewall to allow:
- Port 3000 (HTTP API)
- Port 3001 (WebSocket)
- Port 6099 (WebUI)
Updating NapCat
To update NapCat to a new version:1
Stop NapCat
Stop the running NapCat process (Ctrl+C or stop the service).
2
Backup configuration
3
Download new version
Download the latest release from GitHub and extract it to the same directory (replace old files).
4
Restart NapCat
Launch NapCat again with your preferred mode.
5
Verify update
Check the version:
Troubleshooting
Permission denied on Linux/macOS
Permission denied on Linux/macOS
Make the executable file executable:
Port already in use
Port already in use
Change the port numbers in
config/onebot11.json to available ports.QQ not detected (Framework mode)
QQ not detected (Framework mode)
Ensure:
- QQ is installed in the default location
- You’re using a compatible QQ version
- QQ is not running when you start NapCat
Failed to start WebUI
Failed to start WebUI
Check:
- Port 6099 is not in use
- Firewall allows connections
- WebUI is not disabled in configuration
Next Steps
Quickstart
Follow the quickstart guide to send your first message
Configuration
Learn about all configuration options
Deployment
Deploy NapCat to production
Login Methods
Explore different ways to log in
