---
title: "Deploy ragent"
description: "Claude Code in a Docker container. Access from any browser, anywhere."
category: "AI/ML"
url: https://railway.com/deploy/ragent
---

# Deploy ragent

Claude Code in a Docker container. Access from any browser, anywhere.

**[Deploy ragent on Railway](https://railway.com/template/ragent)**

- **Creator:** Chris's Projects
- **Category:** AI/ML
- **Total deploys:** 5

## Template content

### ragent

- **Source:** Chris-bzst/ragent

## Documentation

# Deploy and Host Ragent on Railway

Ragent gives you a full Claude Code CLI experience in your browser — no local setup needed. It runs Claude Code inside a Docker container with a web terminal (xterm.js) accessible from any device, including mobile. Authenticate via API key or OAuth login directly in the terminal.

## About Hosting Ragent

Hosting Ragent on Railway spins up a Docker container running a Node.js backend that creates a pseudo-terminal (PTY) connected to Claude Code CLI. The terminal is streamed to your browser via WebSocket. Railway handles the container lifecycle, persistent storage via a `/workspace` volume, and HTTPS automatically. You can optionally set HTTP Basic Auth credentials to protect your instance. The service starts in seconds and stays alive with Railway's restart-on-failure policy.

## Why Deploy

Stop being tied to your local machine. With Ragent on Railway, your Claude Code session is always on, accessible from any browser or mobile device, with persistent workspace storage across restarts. No VPN, no SSH, no local dependencies — just open your browser and start coding with Claude.

## Common Use Cases

- Access Claude Code from any browser or mobile device without local installation
- Share a single Claude Code session across multiple browser tabs using tmux
- Run Claude Code on a remote server with persistent workspace storage

## Dependencies for Ragent Hosting

- Docker (provided by Railway)
- `/workspace` volume for persistent file storage (recommended)
- `CLAUDE_API_KEY` (optional — can also log in via OAuth by
running `claude` in the terminal)

### Deployment Dependencies

- Docker (provided by Railway)
- `/workspace` volume for persistent file storage (recommended)
- `CLAUDE_API_KEY` (optional — can also log in via OAuth by running `claude` in the terminal)

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/ragent
