Claude Code 24/7 on a Hostinger VPS: from your PC and your phone
An always-on cloud machine with Claude Code, Codex, Cursor and Antigravity inside, which you open from your phone or PC. Step by step, no jargon, real costs.
In this article
- The short answer
- 1. What a VPS is, explained as an office
- 2. What you really gain
- 3. What it costs, with no made-up numbers
- 4. Step by step with the minimum of commands
- 5. How to open it from each device
- 6. Security in five sentences
- 7. The risks the twelve-step tutorial hides
- 8. When this serves your business, and when it is theater
- Frequently asked questions
- Conclusion
The short answer
An AI workspace is a cloud machine that stays on all day, with a working folder and a rules file that Claude Code, Codex, Cursor, Antigravity and OpenCode all read. You open that machine from your phone through the Claude app, from your PC through Cursor or VS Code, and from any browser through a terminal that does not die when you close the screen.
It is for people who already pay for Claude, ChatGPT or Cursor, use them on a laptop and keep running into "I closed the lid and it stopped", "I am out and wanted to keep going" or "my PC is weak".
What you gain: picking up where you left off, from any device, without leaving your home computer on.
What it costs: a small VPS (the Claude Code documentation asks for 4 GB of RAM for it alone) plus the subscriptions you already have.
What it is not: it is not AI working on its own, it is not a WhatsApp support agent and it is not your store. It is your AI work environment, switched on and reachable.
1. What a VPS is, explained as an office
Think of your laptop as a backpack. It goes with you, but when you close it, everything stops.
A VPS is a rented room in an office building. It has power, internet and air conditioning 24 hours a day. You pay monthly, get in with your key, and what you left on the desk is still there tomorrow. Technically it is a slice of a real server, with Linux installed, that you access over the internet.
"Always on" means this: whatever you left running keeps running. It does not mean the AI will work on its own in the middle of the night. It responds when someone gives it a task: you, from your phone, or a routine you scheduled.
2. What you really gain
Pick up where you left off, from any device
The conversation with Claude Code lives on the cloud machine, not on your computer. Start on the PC in the morning, check it on your phone in the bank queue, finish on the laptop at night. The Remote Control documentation describes exactly that: "Start a task at your desk, then pick it up from your phone on the couch or a browser on another computer".
Stop depending on your computer
If your PC is slow, overheats or is the same one the family uses, the VPS solves it. The heavy lifting runs there. Your device only holds the screen.
One place for all the agents
Each agent has its own way to install and log in, but they all understand the same thing: a project folder and a text file with rules. On the VPS you create a workspace folder, put in an AGENTS.md with five lines in plain English (what the project is, what is allowed, what is not) and every agent reads it before starting.
What you do not gain
It does not become a WhatsApp support agent just because the machine is on. That is another product, with queues, a phone number and Meta policies. It does not replace your store: the store stays on its platform. And it is not "unlimited AI": the bill is still the plan you subscribe to.
3. What it costs, with no made-up numbers
The machine
Hostinger's KVM line, on the official page on 2026-09-16, has four sizes:
| Plan | vCPU | RAM | NVMe disk |
|---|---|---|---|
| KVM 1 | 1 | 4 GB | 50 GB |
| KVM 2 | 2 | 8 GB | 100 GB |
| KVM 4 | 4 | 16 GB | 200 GB |
| KVM 8 | 8 | 32 GB | 400 GB |
The same page shows the promotional price and, separately, the renewal price every two years. They are different numbers and they change. That is why I do not put amounts here: the price that counts is the one on the hostinger.com/br/servidor-vps page on the day you click.
Rule of thumb: the Claude Code documentation asks for 4 GB of RAM for it alone. With three or four agents on the same machine, KVM 2 (8 GB) is the honest starting point. KVM 1 works for starting with Claude Code alone.
The subscriptions
Each agent uses the account you already have:
- Claude Code: Pro, Max, Team or Enterprise plan (the list is at
claude.com/pricing). - Codex: a ChatGPT account, with "Sign in with ChatGPT".
- Antigravity: a Google account.
- Cursor CLI: a Cursor account.
- OpenCode: it is open source and uses the API key of the provider you choose.
I do not list prices because each one changes them on its own page. Open each page before deciding.
What does not cost extra
Opening Claude Code from your phone does not require a special plan. The documentation says Remote Control is available on the Pro, Max, Team and Enterprise plans. A guide in Portuguese that circulates online claims you need Max. You do not.
4. Step by step with the minimum of commands
Turn the machine on
In the Hostinger panel, when creating the VPS, choose the "Ubuntu 24.04 with Claude Code" template. It comes with Claude Code already installed. If you prefer a clean Ubuntu, installation is one line:
curl -fsSL https://claude.ai/install.sh | bash
Get in without installing anything
The panel has a Web Console, a terminal inside the browser. It is fine for the first few minutes. Afterwards you will prefer SSH, which is the same terminal, only from your own device:
ssh root@SEU-IP
Wake Claude up
Inside the project folder, type claude. The first time, it asks you to log in and shows a link. Since the VPS has no browser, you open that link on your phone or PC, sign in to your account and the browser shows a code. Paste the code into the terminal. The documentation calls this "Paste code here if prompted" and explains that it is the normal path over SSH.
Run claude in the folder at least once and accept the folder trust prompt. Remote Control requires it.
Open it from your phone
This is the step that changes everything. With Claude Code logged in, run:
claude --rc
It opens a normal session in the terminal and, at the same time, makes it available in the Claude app (iOS and Android) and at claude.ai/code. Press the spacebar, a QR code appears, scan it with your phone and the conversation is in your hand. No open ports on the machine, no VPN: the documentation states that the VPS "makes outbound HTTPS requests only and never opens inbound ports".
If the internet drops or you close the app, it reconnects on its own when it comes back. That is how I have been getting into my own server from my phone since mid-September.
The folder and the rules
Create workspace/ and, inside it, an AGENTS.md. A five-line example:
Project: store website. Reply in English. Never delete a file without asking.
Do not touch passwords, keys or payments. Before changing anything, explain it in one sentence.
All the agents below read that file when they enter the folder.
The other agents
Each one installs with a single line and logs in with the same trick of the link in the browser:
- Codex (OpenAI):
npm i -g @openai/codex. Without a browser, the login iscodex login --device-auth. - Antigravity (Google):
curl -fsSL https://antigravity.google/cli/install.sh | bash. Over SSH it shows a URL, you open it on your device and paste the code back. The command isagy. - Cursor CLI:
curl https://cursor.com/install -fsS | bash. On a remote machine,NO_OPEN_BROWSER=1 agent loginprints the login URL for you to open wherever you like. The command isagent. - OpenCode:
curl -fsSL https://opencode.ai/install | bash. It connects to the provider with your key or through OpenCode Zen.
All four install commands are in the official documentation listed in this article's sources.
The terminal that does not die
Remote Control takes care of Claude Code. For the other agents you use tmux, which already ships with Ubuntu. It keeps the program running even after you close the terminal:
tmux new -s trabalho
Open Codex or Antigravity inside that session. You closed your phone, the session keeps going. To come back:
tmux attach -t trabalho
The tmux wiki sums it up: programs inside it "may be detached from the terminal where it is running and later reattached to the same or another terminal".
5. How to open it from each device
| Where you are | How you get in | What you see |
|---|---|---|
| Phone | Claude app, via Remote Control | The Claude Code conversation, with command approval on screen |
| Phone, other agents | An SSH app (Termius, Blink) and tmux attach |
The Codex, Antigravity or OpenCode terminal |
| PC | Cursor or VS Code with the Remote SSH extension | The VPS files as if they were local, with the editor's agent |
| Any browser | VS Code Remote Tunnel (code tunnel on the VPS) |
The full editor at vscode.dev, with nothing to install |
The VS Code tunnel requires the same GitHub or Microsoft account on both ends, and the documentation confirms access is via vscode.dev/tunnel/<nome>.
"Always-on remote desktop" here means a terminal and an editor in the browser or in the app. It is not a Windows screen with a mouse. For AI work, it is better: lighter, faster and it works over 4G.
Two honest limits: the cloud agents of Cursor and Codex run on their own infrastructure, not on your VPS. Here we are talking about the CLIs, which run on your machine.
6. Security in five sentences
Log in with an SSH key, not a password. Turn off password login once the key works. Create your own user and stop using root day to day. Close the firewall and leave only the SSH port open. Turn on Ubuntu's automatic updates.
Remote Control does not open a port on your machine, so it does not change that list. Never paste an API key into a file that goes into a backup, a screenshot or Discord. If you want to hide SSH from the whole internet, Tailscale does it in ten minutes, but it is optional.
7. The risks the twelve-step tutorial hides
Four bills. Claude, ChatGPT, Google and Cursor charge separately. The VPS is the fifth. Add them up before subscribing to everything.
Logins that expire. Claude Code warns you three days before the login expires. A session left running on its own that passes the date stops responding until you log in again. Watch for the warning.
The conversation goes through Anthropic. While Remote Control is connected, the session transcript is stored on Anthropic's servers to sync your devices. It is in the documentation. If you work with sensitive data, read that part first.
The machine is yours. Hostinger takes care of the hardware and the network. Backups, updates, weak passwords and open firewalls are your responsibility. A leaked key is a bill on your card.
24/7 is not AI on its own. The machine stays on. The AI works when it receives a task. Scheduled routines are another subject, and another article.
8. When this serves your business, and when it is theater
It serves when the work happens on the computer: writing, reviewing, working on the site, organizing spreadsheets, generating reports, looking after a project that already lives on the VPS. It serves anyone who wants to leave the house and keep the conversation with the agent going from their phone.
It does not serve as "AI selling on its own". The store stays on its platform: catalog, checkout and payment do not move to the VPS. If your problem is the AI work environment, this article is the path.
Frequently asked questions
Do I need to know how to code?
Not for the basics. You type ready-made commands, paste a login code and chat with the agent in plain English. Anyone who wants to go further will learn along the way, because the agent itself explains.
Do I need the Max plan to open it from my phone?
No. The Remote Control documentation lists Pro, Max, Team and Enterprise. What does not work is an API key: it has to be an account login.
How much memory does the VPS need?
The Claude Code documentation asks for 4 GB for it alone. With more agents on the same machine, start at 8 GB.
If I close my phone, does the AI stop?
What is in tmux keeps going. Remote Control reconnects when you open the app again. The AI does not keep "thinking" in the void: it finishes the task it received and waits for the next one.
Is it safe?
It is, with a key instead of a password, your own user, a closed firewall and no API key lying around in a file. Remote Control does not open a port. The rest is the care any computer on the internet requires.
Conclusion
Claude Code 24/7 on a VPS is a rented room in the cloud with your AI environment inside. You get in through the Claude app on your phone, through Cursor or VS Code on your PC, and the other agents live in a tmux session that does not die.
It costs a small VPS and the subscriptions you already pay for. It is not AI on its own, it is not a support agent and it is not the store.
If you want to talk about what you already pay for and what you plan to run, send it to oailton.dev/en/contato.