
Deploy Dinotty
Multi-device terminal server for AI coding agents, with login token
Just deployed
/home/dinotty
Deploy and Host Dinotty on Railway
Dinotty is an open-source (MIT) terminal server built for AI coding agents such as Claude Code, Codex and opencode. Terminals run on the server and keep running when you close the browser, so you can start a task on your desktop, check it from your phone and pick it up again later. It adds a file browser, git changes, web preview and an MCP server.
About Hosting Dinotty
This template builds Dinotty 0.31.1 from the official release package (checksum-verified) on a pinned Node 24 image, so npm-based agents install with one command. It runs as one service with a public HTTPS domain, a health check and a volume at /home/dinotty that keeps your projects, settings, sessions and installed tools across restarts and redeploys. A 32-character login token is generated for you; the service refuses to start without it, so Dinotty's open first-run setup page is never exposed. After deploy, open the URL, sign in with DINOTTY_TOKEN from the Variables tab, and install your agent in a terminal.
Common Use Cases
- Run Claude Code, Codex or opencode on an always-on server and follow or steer them from your phone, tablet or laptop
- Keep long agent sessions alive through disconnects, page reloads and device switches
- Review an agent's file changes and git diff, and preview the dev server it started, from any browser
Dependencies for Dinotty Hosting
- A Railway volume for the terminal user's home folder (included in the template)
- An account or API key for the coding agent you install (Anthropic, OpenAI or another provider)
Deployment Dependencies
- Dinotty source and releases: https://github.com/xichan96/dinotty (release v0.31.1)
- Dinotty deployment guide: https://github.com/xichan96/dinotty/blob/main/docs/en/getting-started/deployment.md
- Template repo (Dockerfile, start script, changelog): https://github.com/aalfath/dinotty-railway-template
Implementation Details
Services: one Dinotty service (built from the template repo, listens on PORT 8999, health check on /). Variables: DINOTTY_TOKEN (generated, the login token for the UI, API and MCP; change it and redeploy to rotate it and sign out every browser) and PORT.
Install an agent in a Dinotty terminal, for example:
npm install -g @anthropic-ai/claude-code
npm install -g @openai/codex
npm install -g opencode-ai
Global npm packages go to ~/.npm-global on the volume, so they survive redeploys; packages installed with sudo apt-get don't. You can also add provider keys such as ANTHROPIC_API_KEY or OPENAI_API_KEY as service variables: new terminals see them (DINOTTY_TOKEN and RAILWAY_* values are hidden from shells).
MCP: turn on Open API and MCP in Dinotty's settings, then point your client at https://YOUR-DOMAIN/mcp/message with the header Authorization: Bearer YOUR-DINOTTY-TOKEN.
Limits: anyone with the token gets a shell (with sudo inside the container), so keep it secret. Railway has no privileged containers, so Docker-in-Docker and Docker-based agent sandboxes don't work. Dinotty itself uses about 25 MB; one agent fits the 0.5 GB Free plan (Claude Code's TUI used about 160 MB in our test), while several agents or heavy builds need 1 GB or more. If the server stops, the container exits with an error so Railway restarts it.
Updates: when we bump the Dinotty version, Railway offers the update to your project; read the repo's CHANGELOG.md first. Your volume is kept.
Why Deploy Dinotty 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 Dinotty 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

