Back to browse
GitHub Repository

Claude Code in a sandboxed Docker container. Access from any browser — your AI sees only what you give it.

5 starsJavaScript

RAgent – Claude Code on a VPS So Remote Control Never Drops

by chris-bzst·Feb 25, 2026·2 points·0 comments

AI Analysis

●●SolidCozyShip It

Claude Code on a VPS via xterm.js, so sessions don't die when your laptop sleeps.

Strengths
  • Simple, elegant architecture (PTY + WebSocket + tmux) solves a real UX friction point.
  • One-click Railway deployment + Docker Compose makes self-hosting frictionless.
  • Mobile support with virtual keyboard + split pane dev preview is genuinely thoughtful.
Weaknesses
  • Only 2 stars and minimal traction; unclear if the Claude Code API even supports sustained remote sessions.
  • No isolation between workspace and host—security model needs clarification for multi-user scenarios.
Target Audience

Claude Code users, remote developers, developers needing persistent AI-assisted coding

Similar To

Cursor · SSH terminal sharing · VS Code Remote

Post Description

Anthropic shipped Remote Control for Claude Code yesterday. You type /rc in the terminal, scan a QR code, and pick up the session from the Claude app on your phone. Pretty slick.

One annoyance though – it runs on your local machine. If your laptop goes to sleep, the session dies.

So I tried pointing it at a VPS instead. I had this side project (RAgent) that wraps Claude Code in Docker and gives you a web terminal. Deployed it to Railway, ran claude login + claude remote-control inside the container, scanned the QR code from my phone – and it just worked. Session stays alive because the server doesn't sleep.

Now I can start a task from my desk, close the laptop, and keep going from my phone on the couch. The Claude app handles the UI so I don't have to deal with a terminal on a tiny screen.

It's pretty simple – Node.js + node-pty + xterm.js over WebSocket, with tmux for session persistence. Files live in a /workspace volume so nothing gets lost on restart. You can one-click deploy to Railway or throw it on any VPS with Docker.

GitHub: https://github.com/Chris-bzst/ragent

Remote Control needs a Pro or Max subscription. RAgent itself works with any API key.

Similar Projects

Developer Tools●●Solid

Claude Remote

E2E encrypted remote Claude Code access from phone; dogfooded via itself.

Niche GemBig Brain
jamiepond
324mo ago
Developer Tools●●Solid

Claude Remote – control Claude Code on your Mac from your phone

A pragmatic, privacy-minded shim: a ~5MB menu‑bar app that bridges a browser chat to Claude Code and streams results in real time via Firebase. The author implemented E2E crypto (ECDH P-256 + AES-256-GCM) so the server never sees plaintext — neat and useful — though installing a non‑App‑Store DMG and trusting the native binary is the main UX/security friction.

WizardrySolve My Problem
ChilinAI
214mo ago
Developer Tools●●Solid

Cc-connect – Remote control Claude Code from your favorite chat app

Multi-platform bridge for Claude Code via chat, but only Claude fully working.

Ship ItSolve My Problem
cg33
123mo ago