2026-08-28

Running a trading bot 24/7 on a VPS

A laptop is a fine place to learn a system and a poor place to run one continuously. It sleeps, it reboots for updates, it moves between networks, and it is closed exactly when you least want it closed. Moving BearBreaker onto a small virtual private server turns it into a private trading node that keeps its cycles regardless of what you are doing.

The requirements are modest. Because the system is a rules engine rather than a heavy computation, a small instance with a couple of gigabytes of memory is usually plenty. What you are really buying is uptime, a stable data centre connection to the broker and a machine whose clock, network and power do not depend on your day.

The workflow is straightforward. Provision a server, install the runtime, copy the package across, put your configuration and keys in place with permissions locked to your user, and start the process under a supervisor so it restarts automatically after a reboot. Connect over SSH whenever you want to read the log or change a parameter. The code is identical to what you ran locally, so nothing about the behaviour changes.

A server also makes it easy to run paper and live side by side in separate directories with separate credentials. You can test a new threshold on the paper instance for a week while the live instance carries on with the settings you already trust, then promote the change once you have actually watched it work rather than assuming it will.

Hosting is entirely optional and adds a small monthly cost from whichever provider you pick. Keep backups of your configuration and ledger files, keep the operating system patched, and never leave keys in a shared location. The point of the setup is that the system keeps running and you keep the keys.