Railway offers a simple way to deploy SAM with automatic builds from GitHub.
git clone https://github.com/SolaceDev/solace-agent-mesh-hackathon-quickstart.git
cd solace-agent-mesh-hackathon-quickstartCreate a new repository in your GitHub account, then push:
git remote set-url origin https://github.com/YOUR_USERNAME/your-repo-name.git
git push -u origin mainGo to railway.com and sign up (free tier available, no credit card required).
- In Railway, click New Project → Deploy from GitHub repo
- Connect your GitHub account if prompted
- Select your repository
- Railway will detect the Dockerfile and start building (expect 4-5 minutes)
Once the service is created, go to Variables tab and add the required variables:
See LLM Setup for free API options.
| Variable | Description | Example |
|---|---|---|
LLM_SERVICE_API_KEY |
Your LLM provider API key | your-api-key |
LLM_SERVICE_ENDPOINT |
LLM API endpoint URL | https://api.cerebras.ai/v1 |
LLM_SERVICE_PLANNING_MODEL_NAME |
Model for complex planning tasks | openai/zai-glm-4.7 |
LLM_SERVICE_GENERAL_MODEL_NAME |
Model for general tasks | openai/zai-glm-4.7 |
SOLACE_DEV_MODE |
Use in-memory broker (no external Solace needed) | true |
LLM_SERVICE_API_KEY=your-api-key
LLM_SERVICE_ENDPOINT=https://api.cerebras.ai/v1
LLM_SERVICE_PLANNING_MODEL_NAME=openai/zai-glm-4.7
LLM_SERVICE_GENERAL_MODEL_NAME=openai/zai-glm-4.7
SOLACE_DEV_MODE=trueTip: Go to Variables → Raw Editor, paste the above, replace
your-api-keywith your API key, and save.
After saving, redeploy the service to apply the new variables.
- Go to Settings tab → Networking
- Under Public Networking, click Generate Domain
- Enter port
8000when prompted - Railway will create a public URL (e.g.,
https://your-repo-name-xxxx.up.railway.app)
Open the generated URL in your browser. You should see the SAM Web UI with the example agents ready to use.
Security Note: The SAM Web UI has no authentication—anyone with your Railway URL can use your deployed instance. If you share the URL with teammates, be aware that all usage consumes your LLM API key quota. Monitor your API usage if sharing broadly.
After making changes to your agents:
git add .
git commit -m "Update agents"
git pushRailway will automatically redeploy with your changes.
By default, data is lost on Railway restarts. For persistence, see Persistent Storage with Supabase.