Run the bot and dashboard in one deployment
Choose the Node.js bot with dashboard or Python bot with dashboard profile where available. The Discord client stays connected to the gateway while your HTTP server serves the dashboard at the platform HTTPS address. Both share the deployment’s CPU and memory. The profile runs a dashboard from your own code or a starter you can edit.
When to use separate deployments
Use separate deployments if you need to release the dashboard without reconnecting the bot or give each process its own resource allocation. Both can use the same database for guild settings. Circuit has 4 slots, enough for the bot, dashboard and a database.
Set it up
- Upload your project or add the dashboard example from Overview. Make the HTTP listener bind to
0.0.0.0and the port inSERVER_PORT. - In Settings → HTTP domains, copy the HTTPS address and register the full callback URL in the Discord Developer Portal. The starter uses
/oauth/callback. Save that exact URL inDISCORD_REDIRECT_URI. - Save the bot and OAuth2 credentials in Variables. Open the dashboard on the hostname in the callback, sign in with Discord and test a command in your server. Follow the Discord dashboard setup guide for the exact fields.
Move sign-in to a custom domain
First verify the hostname with the CNAME and TXT records from HTTP domains. Register the new full callback URL in Discord, update DISCORD_REDIRECT_URI and restart. Start a fresh sign-in on the custom hostname so the browser returns the OAuth2 state cookie on that same hostname. Connect a custom hostname.
The starter uses two host-only cookies supported by the Bothosting gateway. Test sign-in and session handling before moving an existing dashboard with its own cookies. The starter authorizes one configured Discord user and checks that account’s server permissions before saving guild settings.
Keep the bot and dashboard in step
Store each server’s settings with its guild ID as the key. Have the bot read settings when it needs them, or cache them briefly, so a change in the dashboard applies without a restart. A short Redis expiry works well for that cache. See saving server settings in MySQL and expiring cache keys.