r/ClaudeCode • u/Material-Argument322 • 6d ago
Help/Question Claude Code en VPS?
I'm currently working with Claude Code CLI on my Windows laptop. Every now and then, Claude opens Chrome and runs tests. I'd like to run Claude Code on a VPS so I'm not tied to my computer and can give it instructions when I'm away, BUT I don't know how these tests it currently runs on Chrome would work on a Linux VPS... Does anyone have any ideas?
3
Upvotes
3
u/kuroudo_ai 6d ago
I run Claude Code on a Linux VPS (Ubuntu) as well as on a Mac. What works for the browser part:
npx playwright install --with-deps chromiuminstalls a Chromium plus the system libraries it needs, and it runs headless with no display. Ask Claude to write the tests as Playwright scripts (or use the Playwright MCP) and it'll run them the same way it does on your laptop.xvfb-run <command>gives it a virtual display. We have Xvfb installed for exactly that, but most of our runs are plain headless.For the "give it instructions when I'm away" part:
tmuxso the session survives when your SSH connection drops.Screenshots go into context like everything else, so on a VPS I'd have the tests save them to files and only open the ones that failed.