A pre-configured agentic setup for building and deploying on Railway. This repository allows you to interact with Railway fully via the MCP, CLI, and Agent Skills.
This setup is designed to be used with OpenCode, an open-source and AI agent harness. OpenCode was chosen because it is fully open-source and very extensible, allowing it to adapt to various use-cases including background agents, TUI agent workflows, and fully programmatically controlled use-cases.
Before using this repository, ensure you have the following installed and configured:
- Railway CLI: Install the CLI by following the official instructions.
- Login: Run
railway loginin your terminal to authenticate your account.
This project uses skills from the railway-skills repository. These are stored in .opencode/skills/.
To update the skills to the latest version from upstream, run:
./scripts/setup.shYou should probably do this before using these skills to get the latest suggested workflows from Railway
While this repository can be used standalone to interface with Railway directly, it often makes more sense to drop into your existing projects.
To do this, you can copy the .opencode directory to your project root and use opencode as normal. That easy!