Hosting & always-on
Every bot runs in a sandbox — an isolated Python environment with its own filesystem, network, and environment variables. Sandboxes are cheap to spin up but not free to keep running.
Sandboxes (default)
A free sandbox pauses after a period of inactivity. If someone runs your bot's command, it wakes back up in a few seconds. Great for testing and light use — not great if you want the bot to respond instantly to every event.
Hosting slots
A hosting slot pins a sandbox so it never pauses. The bot stays online 24/7 and responds instantly. Each slot is $5/month, billed via Stripe.
Included slots: Pro plan includes 1 slot, Agency includes 3. You can buy additional slots at any time from the dashboard.
Crashes & auto-recovery
If a bot crashes, BotNinja detects it (via a heartbeat the bot emits) and attempts an automatic restart. After repeated crashes, the dashboard shows an error with a one-click "ask the agent to fix this" button.
Environment variables
Secrets like API keys are stored encrypted and injected into your sandbox. Set them in the bot's settings page. Never paste secrets into the chat — the agent doesn't need them and it saves the logs.