Skip to main content

Railway

Laserbeak can be deployed to Railway with automatic deploys from GitHub.

railway.toml

The repository includes a railway.toml that configures the build and deployment:

[build]
builder = "DOCKERFILE"
dockerfilePath = "Dockerfile"

[deploy]
startCommand = "laserbeak serve"
restartPolicyType = "ON_FAILURE"
restartPolicyMaxRetries = 5

Setup

  1. Create a new project on Railway
  2. Connect your GitHub repository
  3. Add environment variables in the Railway dashboard:
VariableRequiredDescription
LASERBEAK_DISCORD_TOKENYesDiscord bot token
LASERBEAK_LLM_APIKEYYesLLM API key
LASERBEAK_STT_APIKEYNoSTT API key (for voice)
LASERBEAK_DISCORD_GUILDIDNoGuild ID for auto-join
LASERBEAK_DISCORD_VOICECHANNELIDNoVoice channel to auto-join
LASERBEAK_DISCORD_TEXTCHANNELIDNoText channel for voice output
  1. Deploy — Railway will build using the Dockerfile and start the bot

Auto-deploy

Railway automatically redeploys when you push to the connected branch. No additional CI/CD configuration is needed.