# Run a bot 24/7 on a server, and automatic updates

> Official Voxnup Help Center documentation · Developers and Bots · Updated: 2026-11-15
> Source: https://voxnup.com/support/en/run-a-bot-on-a-server

Run Voxnup Bot Manager headless on a Windows or Linux server (--headless), the console commands, signed automatic updates and rolling back to the previous version.

**In short:** To keep a bot running on a server, start the app with `--headless`: `./Voxnup.BotManager --headless --bot mybot` on Linux, `Voxnup.BotManager.exe --headless --bot mybot` on Windows (several bots: `--bot a,b`). Bot Manager runs on Windows and Linux x64. It finds new versions by itself; every version is signed by Voxnup and an unsigned file is never installed. In `--headless` mode updates are installed at 04:00 at night and the bots restart automatically.

```sh
./Voxnup.BotManager --headless --bot mybot,secondbot      # Linux
Voxnup.BotManager.exe --headless --bot mybot,secondbot   # Windows
```

## Console commands

| Command | What it does |
| --- | --- |
| `bot list` | Lists bots |
| `bot new <name>` | Creates a new bot from the template |
| `bot start <name\|all>` | Starts the bot in the background (same as `bot activate`) |
| `bot stop <name\|all>` | Stops the bot |
| `bot reload <name>` | Reloads the bot without stopping it (storage is kept) |
| `bot watch <name>` | Reloads automatically whenever the file is saved |
| `bot status [name]` | Status, connection, error count |
| `bot commands <name>` | The bot's chat commands |
| `bot logs <name> [lines]` | Last log lines (under `logs/<name>/`, including WebSocket traffic) |
| `update [check\|status]` | Checks for updates; `update` installs a new version right away |
| `help`, `version`, `cclear`, `exit` | Help, version, clear the console, exit |

## Automatic updates

When running in the console, the app installs updates on exit; in `--headless` mode it installs them at 04:00 and restarts the bots (a few seconds of downtime). If a new version fails to start, it rolls back automatically. The setting is in `appsettings.json`:

```json
"Update": { "Mode": "auto", "ApplyAt": "04:00" }
```

`Mode`: `auto` (installs by itself), `notify` (only tells you), `off`. To go back to the previous version by hand, start the app with `--rollback`.

> **Warning:** On a server, only the user that runs the bot should be able to read `bots/<name>.json`; it contains the bot token and API key. You can pass them as environment variables instead: `VOXNUP_<NAME>_BOT_TOKEN`, `VOXNUP_<NAME>_API_KEY`.

## Frequently asked questions

**Q: What happens if the bot's connection drops?**

A: Bot Manager reconnects and signs in again by itself if needed; your bot receives `onDisconnected` and `onReconnected` events.

## Related guides

- [How to build a Voxnup bot (Voxnup Bot Manager v2)](https://voxnup.com/support/en/build-a-bot)
- [Bot commands, events and methods (Voxnup Bot Manager v2)](https://voxnup.com/support/en/bot-commands-and-events)

Support: support@voxnup.com
