Herdr: set up Claude Code and Codex on a VPS

Learn to set up Herdr, Claude Code and Codex on a Hostinger VPS, with SSH access, a developer user and an IP-restricted firewall.

Player not loading? Watch on YouTube

This tutorial sets up Herdr on a rented Hostinger VPS and connects Claude Code and Codex. The presenter describes Herdr as a terminal multiplexer for agents and explains how moving it to a server lets sessions continue after you close your laptop. This is a self-hosted workspace for coding tools; the walkthrough uses account authentication and subscriptions.

The presenter recommends at least 8 GB of RAM and selects a Hostinger template with Herdr installed. Setup covers a root password, a dedicated SSH key and an optional SSH configuration shortcut. The accompanying instructions cover macOS, Linux and Windows, while the demonstration uses a Mac. A separate developer user runs the agents, with an extra step to give that user access to Herdr.

The firewall section restricts SSH on port 22 to an allowed IP address and drops other incoming traffic. The presenter recommends a fixed IP, such as one supplied through a VPN, and notes that changing residential addresses require updates to the rule.

Later steps install and authenticate GitHub CLI and both agents, then test their sessions in Herdr. Codex device authentication may require enabling an account security setting. The tutorial also covers repository folders, Herdr integrations and a skill the presenter says enables agents to spawn one another as sub-agents. It ends with remote SSH access through Cursor or Visual Studio Code for browsing files and working in the same server session.