Deployed: Mar 3, 2026 Status: Ready for Railway
Or deploy manually:
# Install Railway CLI
npm install -g @railway/cli
# Login
railway login
# Initialize project
cd /Users/asil/.openclaw/workspace/gork-protocol
railway init
# Deploy
railway upNo required environment variables. Optional:
RUST_LOG=info # Logging level
NEAR_ACCOUNT=relay.gork # Optional NEAR account- 4001 - P2P relay (TCP+UDP)
- 9090 - Metrics endpoint (HTTP)
Railway will automatically assign a public URL.
The relay starts with these defaults:
- Max circuits: 1000
- Metrics: enabled
- Port: 4001
-
Get your Railway URL:
railway domain # Output: gork-relay.up.railway.app -
Connect agents to relay:
gork-agent daemon --bootstrap-peers /dns4/gork-relay.up.railway.app/tcp/4001/p2p/<PEER_ID>
-
Check health:
curl https://gork-relay.up.railway.app:9090/health
View logs:
railway logsMetrics available at:
https://your-app.up.railway.app:9090/metrics
Railway pricing:
- Hobby plan: $5/month (includes 500 hours)
- Pro plan: $20/month
Expected usage: ~$3-5/month for relay
- Check if port 4001 is exposed:
railway port list - Verify domain:
railway domain
- Use
/dns4/instead of/ip4/for Railway domains - Check firewall rules
- Reduce
--max-circuitsin Dockerfile - Railway will auto-restart if OOM
Agent A (NAT) → Railway Relay → Agent B (NAT)
↓
Introduction
↓
Agent A ←→ Agent B (Direct P2P)
Railway provides:
- Public static IP
- Automatic HTTPS
- Auto-restart on failure
- Log aggregation
- Metrics
Dockerfile.railway- Optimized for Railwayrailway.json- Railway configurationRAILWAY_DEPLOY.md- This file
Next Steps:
- Deploy to Railway
- Get public URL
- Test with local agent
- Update bootstrap peers in production