This guide will help you get started with NekoBot, from installation to running your first bot.
git clone https://github.com/NekoBotTeam/NekoBot.git
cd NekoBotNekoBot provides two ways to install dependencies: using uv (recommended) or using pip.
# Install uv (if not already installed)
pip install uv
# Install NekoBot and its dependencies
uv pip install -e .# Install NekoBot and its dependencies
pip install -e .On first run, NekoBot will automatically create a default configuration file. You can also manually create data/cmd_config.json:
{
"command_prefix": "/",
"server": {
"host": "0.0.0.0",
"port": 6285
},
"jwt": {
"secret_key": "your-secret-key-here",
"algorithm": "HS256",
"access_token_expire_minutes": 30
},
"webui_enabled": true,
"demo": false
}# Using uv
uv run main.py
# Or using python
python main.pyAfter successful startup, open your browser and visit:
http://localhost:6285NekoBot provides a default administrator account:
nekobotnekobotSecurity Note: On first login, the system will require you to change your password. Please change it to ensure security.
After starting NekoBot, you should see similar log output in the terminal:
2025-XX-XX XX:XX:XX.XXX [INFO] Starting NekoBot...
2025-XX-XX XX:XX:XX.XXX [INFO] Initializing NekoBot server...
2025-XX-XX XX:XX:XX.XXX [INFO] Platform adapter registered: aiocqhttp
2025-XX-XX XX:XX:XX.XXX [INFO] Loading plugins...
2025-XX-XX XX:XX:XX.XXX [INFO] Plugin loading complete, X plugins loaded
2025-XX-XX XX:XX:XX.XXX [INFO] Starting Quart application: http://0.0.0.0:6285Edit the data/cmd_config.json file and modify the server.port field:
{
"server": {
"host": "0.0.0.0",
"port": 8080
}
}Run the following command to reset your password:
# Using uv
uv run main.py reset-password
# Or using python
python main.py reset-passwordFollow the prompts to enter your new password twice.
Edit data/cmd_config.json and modify the webui_enabled field:
{
"webui_enabled": true
}NekoBot outputs logs to the terminal using loguru. You can also view logs in real-time through the "Logs" page of the Web dashboard.