Run Your Coding Agents in the Cloud with Herdr
Summary
This tutorial details how to establish a persistent, cloud-based workspace using a Virtual Private Server (VPS) to run advanced coding agents (Claude Code, Codex, Grok). The process involves setting up the VPS (recommended 8GB RAM) on Hostinger, securing it with SSH keys and firewalls, and installing Herdr—a terminal multiplexer designed for agents. The setup culminates in connecting development tools like VS Code or Cursor over SSH, allowing for a continuous, centralized AI development workflow regardless of the local device status.
Key takeaways
-
Persistent Agent Workflow
2:00
By running agents on a VPS, the coding sessions continue even if the local laptop is closed or shut down, ensuring continuous development work.
-
VPS Security Setup
21:47
The server must be secured by creating a root password, implementing SSH key authentication, and restricting access using a firewall to whitelist specific IP addresses.
-
Agent Installation and Authentication
Agents (Claude Code, Codex) and GitHub CLI are installed and authenticated on the server using specific CLI commands, requiring browser authorization for tokens.
-
Developer User Isolation
18:20
It is recommended to create a dedicated `developer` user account, rather than using root, for daily agent operations to maintain security best practices.
Technical details
-
VPS Setup
509s
Use a VPS (e.g., Hostinger) with at least 8GB of RAM. The setup process includes setting a root password and adding a dedicated SSH key for secure access.
-
SSH Key Management
600s
Generate an SSH key pair locally (`ssh-keygen`) and copy the public key to the server's authorized keys file for authentication.
-
User Management
1100s
Create a non-root `developer` user and grant it access to the necessary SSH keys and Herdr services.
-
Firewall Configuration
1300s
Implement a firewall rule (e.g., in the VPS portal) to restrict SSH access (Port 22) only to whitelisted, fixed IP addresses.
-
Agent Installation
Install and configure coding agents using CLI commands: `sudo ssh root @agentcloud` (for initial setup), followed by `clod code` and `codex` (as the developer user).
-
Agent Authentication
Authenticate services (GitHub, Claude Code, Codex) using their respective CLI tools (e.g., `gh auth login`, `cloud auth login`, `codex login device`).
-
Workflow Integration
Initialize the workspace by creating a `repositories` folder, cloning projects (`git clone`), and installing Herdr integrations (e.g., `Herdr integrations install claude`).
Mentioned resources
Channel & topics
Watch on YouTube · Back to latest
This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.