Deploy OpenCode for Railway
Pre-configured OpenCode server template for Railway.
railway-opencode:latest
Just deployed
/var/lib/opencode
Deploy and Host OpenCode for Railway on Railway
OpenCode for Railway is a pre-configured OpenCode server with built-in skills for Railway
deployment, browser automation, and tool management via mise. Connect from your local terminal
with opencode attach and get a remote AI coding agent with persistent storage.
About Hosting OpenCode for Railway
Hosting OpenCode for Railway gives you a remote AI coding agent accessible from anywhere. The server comes pre-loaded with Node.js, Python, Bun, Go, and common developer tools managed by mise. Pre-installed skills let the agent deploy to Railway, browse the web, and discover new capabilities. A persistent volume preserves all sessions, installed tools, and project files across redeploys. Authentication is handled via a server password, and you connect using the OpenCode TUI from your local machine.
Common Use Cases
- Run a remote AI coding agent you can connect to from any machine
- Build and deploy applications to Railway using natural language
- Automate browser-based tasks like testing, scraping, and form filling
Dependencies for OpenCode for Railway Hosting
- An LLM provider API key (configured via OpenCode after connecting)
- OpenCode CLI installed locally (
curl -fsSL https://opencode.ai/install | bash)
Deployment Dependencies
Why Deploy OpenCode for Railway 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 OpenCode for Railway 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
railway-opencode:latest
ghcr.io/joeychilson/railway-opencode:latest