
Deploy KiroCrew AI Agent Gateway
Always-on AI agent gateway: dashboard, Slack/Discord bots, crons, webhooks
kirocrew
Just deployed
/home/kirocrew
Deploy and Host KiroCrew AI Agent Gateway on Railway
Kiro Crew is a persistent, self-improving workspace for development work that keeps going beyond a single session. Its gateway runs your AI crew 24/7: a web dashboard, channel bots (Slack, Discord, Telegram, WeCom, Weixin, Webex), scheduled jobs (crons), authenticated webhooks and the kiro-cli agent runtime — so your agents keep working, monitoring and reacting to events while your laptop is closed.
About Hosting KiroCrew
This template runs the official ghcr.io/kirodotdev/kirocrew:stable image (gateway on port 5476) with:
- a persistent volume at
/home/kirocrew(config, credentials, sessions and memory survive redeploys); the start command fixes volume ownership and then drops to the image's non-rootkirocrewuser KIROCREW_CORS_ORIGINSset to your Railway domain so the dashboard accepts your browserKIROCREW_ALLOW_UNSANDBOXED=1: Railway containers do not allow user namespaces, so agent commands run without Kiro Crew's inner sandbox — the container is the isolation boundary (only add credentials you are comfortable exposing to the agent)- a healthcheck on
/api/health; every other API route requires a dashboard token - an opt-in same-host relay (the
KIROCREW_LAUNCHERvariable, plain Python) that forwards Railway's public port to the gateway on 127.0.0.1, enabled withKIROCREW_RELAY_ENABLED=1. This is KiroCrew's documented reverse-proxy setup: the per-IP session pin is then shared, and the dashboard token is the access control.
After deploy (one-time, using the Railway CLI):
- In the
kirocrewservice's Variables, setKIROCREW_RELAY_ENABLED=1and redeploy. Railway's edge reaches the service from changing IPs, and KiroCrew pins each dashboard session to the client IP, so without this every dashboard call fails with "IP mismatch". With it on, a small same-host relay (theKIROCREW_LAUNCHERvariable, plain Python) forwards the public port to the gateway on 127.0.0.1. This is KiroCrew's documented reverse-proxy setup: the IP pin is then shared, and the dashboard token is the access control. - Install the Railway CLI, run
railway linkto this project, then mint a login link:railway ssh --service kirocrewand inside itsu -s /bin/sh kirocrew -c "kirocrew token --ttl 2h --port 5477"(use--port 5476if the relay is off). Open the printed link right away, replacinghttp://localhost:<port>with your Railway domain. - Log in the agent runtime:
su -s /bin/sh kirocrew -c "kiro-cli login"(or setKIRO_API_KEYon the service instead). - Optionally add channel credentials (
SLACK_BOT_TOKEN+SLACK_APP_TOKEN+KIROCREW_OWNER_ID,DISCORD_BOT_TOKEN,TELEGRAM_BOT_TOKEN, …) as service variables and redeploy.
Common Use Cases
- An always-on coding/ops agent you message from Slack, Discord or Telegram
- Scheduled agent jobs and deterministic scripts (crons) with monitoring until done
- Reacting to authenticated webhooks from CI, GitHub or other systems
- A shared, persistent agent workspace for a small team
Dependencies for KiroCrew Hosting
- Docker image
ghcr.io/kirodotdev/kirocrew - A Kiro account (interactive
kiro-cli login) orKIRO_API_KEY
Deployment Dependencies
- Source: https://github.com/kirodotdev/KiroCrew
- Docker guide: https://github.com/kirodotdev/KiroCrew/blob/main/docs/guides/docker.md
Implementation Details
Microsoft Teams, Feishu and WhatsApp channels need optional extras not included in the stock image; iMessage requires macOS. If you attach a custom domain, update KIROCREW_CORS_ORIGINS to match.
Why Deploy KiroCrew on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying KiroCrew on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content

