How to install Docker and Docker Compose on Linux/Ubuntu
Claude Code is a coding agent for the terminal, and the terminal is exactly where it feels at home on a server. Instead of running it on your laptop, you run it on a powerful, always-reachable machine that you log into from anywhere. Long tasks keep going even when you disconnect. This guide installs Claude Code on your ComputeBox server and sets up a clean remote workflow.
8 minBeginnerTested on Ubuntu 24.04Updated 2026-06-18
In short
Install Claude Code with the native installer, sign in with claude, start it in your project folder, and keep the session open with tmux.
A paid account is required
Claude Code needs a Pro, Max, Team, Enterprise, or Console account. The free Claude.ai plan does not include it.
A server as a development environment has real advantages: strong hardware independent of your laptop, access from any device, and tasks that keep running while you go offline. You connect over SSH, start Claude Code, and work as if you were sitting at the machine itself.
Secure your access
Since you log into this machine regularly, Tailscale is worth setting up. It lets you reach the server privately from anywhere, without exposing SSH to the public internet. See Secure your server with Tailscale.
On the first start, claude shows a sign-in link. Open it in your browser and approve access, which links the server to your account. If you use a Console account, you can instead set an API key through the ANTHROPIC_API_KEY environment variable.
If you drop the SSH connection, a normal process would end. With tmux your session keeps running on the server:
Start Claude Code inside this tmux session. With the key sequence Ctrl + B, then D, you detach without stopping anything. Later you reattach:
That way even long tasks survive a dropped connection or a switch of device.
Strong hardware as a dev box
Depending on your project, a larger plan pays off. For compute-heavy builds or ML work you can move to more cores and RAM, or use a GPU server as an always-on development machine.