Railway Deployment¶
Deploy LLM Council to Railway in under 5 minutes.
Why Railway?¶
- No Cold Starts: Unlike Render Free tier, Railway instances stay warm
- Webhook Reliable: Perfect for n8n and other automation platforms
- Auto-Deploy: Deploys automatically when you push to GitHub
Deploy from GitHub¶
Click the button above, then:
- Connect GitHub: Link your GitHub account if not already connected
- Select Repository: Search for
amiable-dev/llm-council(or fork it first) - Configure Variables: Add the required environment variables (see below)
- Deploy: Railway will build and deploy automatically
Manual Setup¶
1. Fork the Repository (Optional)¶
Fork amiable-dev/llm-council to your GitHub account for customization.
2. Create Railway Project¶
- Go to Railway Dashboard
- Click "New Project"
- Select "Deploy from GitHub repo"
- Choose your forked repository
3. Configure Build Settings¶
Railway will auto-detect the Dockerfile. Verify these settings in Project Settings:
| Setting | Value |
|---|---|
| Builder | Dockerfile |
| Dockerfile Path | deploy/railway/Dockerfile |
| Root Directory | / (repository root) |
4. Add Environment Variables¶
Go to Variables tab and add:
5. Deploy¶
Railway will automatically deploy when you push to the configured branch (usually main).
Check the deployment logs for any errors. A successful deployment shows:
Verify Deployment¶
Health Check¶
API Test¶
curl -X POST https://your-app.railway.app/v1/council/run \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "What is the meaning of life?"}'
Custom Domain¶
- Go to Settings > Domains
- Click "Generate Domain" or "Add Custom Domain"
- Configure DNS as instructed
Scaling¶
Railway automatically scales based on usage. For high-traffic deployments:
- Go to Settings > Resources
- Adjust CPU and Memory limits
- Enable horizontal scaling if needed
Troubleshooting¶
Build Fails¶
Check that your fork has the latest changes:
git remote add upstream https://github.com/amiable-dev/llm-council.git
git fetch upstream
git merge upstream/master
git push
Health Check Fails¶
- Verify
PORTenvironment variable is not manually set (Railway provides it) - Check deployment logs for startup errors
- Ensure
OPENROUTER_API_KEYis set correctly
API Returns 401¶
Verify your Authorization header:
Cost Estimate¶
| Usage Level | Monthly Cost |
|---|---|
| Light (< 100 queries/day) | ~$5 |
| Medium (100-500 queries/day) | ~$10-20 |
| Heavy (500+ queries/day) | $20+ |
Railway bills based on actual usage (CPU, memory, network).
Support¶
For Railway-specific issues with this template, visit the LLM Council Template Support page.
For general LLM Council issues, open an issue on GitHub.
Next Steps¶
- n8n Integration - Connect to workflow automation
- HTTP API Reference - Full API documentation