VPSmaxxing: Run Claude Code and Codex Agents 24/7 on a Cheap VPS
Deploy a dedicated, always-on Linux VPS workbench for your AI agents using a custom Claude Code skill. This setup migrates your credentials, keeps files synced with your laptop, and avoids costly hourly cloud bills.
Impact: High
Why it matters
You can run resource-intensive AI agents in persistent background sessions without draining your laptop's battery or paying hundreds for premium cloud instances.
TL;DR
- 01Offload heavy AI agent execution from your local laptop to an always-on VPS for under $20/month.
- 02Leverage Tailscale to create zero-public-port secure networks with bidirectional file syncing.
- 03Run persistent tmux sessions that continue executing Claude Code even if you close your laptop.
Key facts
- Contabo Cloud VPS 30 cost
- ~$16/mo flat (8 vCPU, 24 GB RAM)
- Hetzner CAX41 cost
- ≈$47/mo flat (16 vCPU, 32 GB RAM ARM64)
- AWS m6a.2xlarge cost
- ~$252/mo (always-on, 8 vCPU, 32 GB RAM)
Automating Remote Workspace Provisioning
The installation begins by cloning the repository and running an installation script to register the tool as a Claude Code skill inside ~/.claude/skills. Once installed, you can trigger the setup directly within Claude Code by typing /vpsmaxxing or commanding the agent to 'set up a VPS for my AI agents'. The script automates the installation of Node, pnpm, Docker, and tmux, and handles authentication migration to ensure your Claude Code and OpenAI Codex logins remain active on the remote host.
Defeating the 24/7 Cloud Billing Trap
While hourly instances on AWS or GCP are flexible, running an 8 vCPU / 32 GB instance round-the-clock can cost approximately $252 per month. VPSmaxxing shifts execution to flat-rate virtual private servers. Verified pricing options from June 2026 include:
- Contabo Cloud VPS 30: 8 vCPU, 24 GB RAM, 200 GB NVMe for ~$16/month.
- Hetzner CAX41 (ARM64): 16 vCPU, 32 GB RAM for €40.99 (~$47/month), ideal for ARM64-clean environments.
- Netcup VPS 2000 G12: High-quality x86 with DDR5 ECC RAM and 512 GB NVMe for ~$18/month.
Secure Persistent Connectivity
VPSmaxxing utilizes Tailscale to establish private network tunnels, completely eliminating the need to expose SSH or agent ports to the public internet. Bidirectional communication is established so that the remote VPS can securely access, read, and write back to files on your local laptop. The configuration includes a one-command kill switch to revoke remote VPS access instantly, providing peace of mind for corporate or managed hardware users.
Try it in 2 minutes
git clone https://github.com/Kuberwastaken/VPSmaxxing.git ~/Personal-Projects/VPSmaxxing
bash ~/Personal-Projects/VPSmaxxing/scripts/install-skill.shbash
✓ When to use
- You run heavy agentic workflows that drain battery or block terminal usage locally.
- You want an always-on, 24/7 background agent execution environment.
- You want to avoid expensive, unpredicted cloud billing spikes.
✕ When NOT to use
- Your software stack has strict local hardware/peripheral dependencies.
- You cannot use Tailscale or run third-party provisioning scripts due to corporate security policies.
What to do today
- Clone the VPSmaxxing repository to your local machine.
- Run the `install-skill.sh` script to register the skill inside your Claude Code configuration.
- Provision a budget flat-rate VPS (e.g., Contabo, Netcup, or Hetzner CAX41).
- Run `/vpsmaxxing` inside Claude Code to initiate the automated remote agent setup.
What the community says
“Not wanting to shell out $3000+ for a decent MacBook Pro, I wanted to set up my Agents on a VPS through Claude code so I can actually run it well. It's MIT licensed and open.”
Sources