/hostinger:deploy-to-vpsfrom hostinger
Deploys existing projects to a Hostinger VPS: sets up SSH keys, applies firewall groups, runs Docker Compose via Docker Manager or SSH, points domains, and takes snapshots before risky changes.
Ships in hostinger. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hostinger, vps-deployment, docker-compose, ssh-setup, domain-dns
npx claudepluginhub hostinger/claude-plugin --plugin hostingerShip a project that already exists — on disk or in a Git repository — to a Hostinger VPS in state running. Buying, setting up or reinstalling a server is the provision-vps skill; a server that is down or misbehaving is troubleshoot-vps.
The public API cannot run a command on the server. Packages, services, web servers, certificates and files are handled over SSH or in the hPanel browser terminal, so step 2 comes first whenever a shell is needed.
inputSchema that search returns before the first call of each operation. If a name below is rejected as unknown, search for what the step does (e.g. "add ssh key to virtual machine").search returns can be called. Hostinger Agent tools in hPanel (running commands, resetting SSH or the guest firewall, disk cleanup) are not available here; when a step needs them, send the user to hPanel.multi-execute; values pass between steps as $steps.<i>.<path>. A batch stops at its first failure. The Hostinger Connector runs vps and dns as separate servers, so a batch chains operations from one of them only.Too Many Attempts is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. [VPS:9999] Request failed (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or vps_actions_list first, and tell the user what you found.[VPS:2047] or [VPS:2048], poll vps_virtual-machines_get until actions_lock is unlocked, then send the call again only if state allows it. 2048 names the wrong state and is also the answer while another action runs. On [VPS:2049] or [VPS:2053], tell the user and retry once later.vps_actions_get with its id, waiting longer between checks, until state is success or error (created, sent, delayed, started are still running). These return no action: firewall sync and delete answer Request accepted, and vps_ssh-keys_add-virtual-machine returns the server's key list. Check those with the matching read operation. Do not send another change while vps_virtual-machines_get shows actions_lock: locked. An action that ends in error did not finish its change: read the server again, actions_lock included, and tell the user what failed before sending anything else.vps_firewall_activate (within seconds it closes every port without an accept rule), vps_firewall_deactivate (opens every port on that server) and vps_firewall_delete (opens every port on every server using the group), vps_snapshots_create (it replaces the existing snapshot), vps_docker_create on a project name that already exists (it replaces the project), vps_docker_stop, vps_docker_delete (removes containers, networks, volumes and images), and dns_records_update with overwrite: true. Reinstalling is never part of a deploy — hand over to provision-vps.vps_ssh-keys_*; the account-level vps_public-keys_* operations are deprecated..hostinger/vps.json in the project: reuse its virtual_machine_id, ipv4 and domain — without asking only when you or the user wrote it in an earlier deploy. If it came with a clone or download, name the server and confirm with the user first.vps_virtual-machines_list and let the user choose by hostname or IP. Keep id, ipv4[0].address, ipv4[0].id (for reverse DNS), template.name, firewall_group_id and state.state other than running: hand over to troubleshoot-vps. initial means bought but not set up yet — provision-vps.Fresh templates log in as root with the root password set at setup; keys are optional. Skip this step when ssh -o BatchMode=yes root@IP true already succeeds.
~/.ssh/id_ed25519.pub, else ssh-keygen -t ed25519 -N "" -f ~/.ssh/id_ed25519 -C hostinger-agent.vps_ssh-keys_add-virtual-machine with keys: ["<contents of the .pub file>"]. The key is written to root's authorized_keys by the guest agent; check it with vps_ssh-keys_list-virtual-machine.ssh -o StrictHostKeyChecking=accept-new root@IP 'uname -a'. If it is refused straight after adding the key, wait a minute and try again before changing anything else.Still refused: port 22 closed from outside (nc -zv -w 5 IP 22) points at the firewall (step 3) or the guest OS; anything beyond that is troubleshoot-vps. Never store the private key in the project, and never print it.
A Hostinger firewall group drops all inbound traffic that no accept rule matches, for IPv4 and IPv6. A group with no rules is accepted too, and it closes every port, SSH included, within seconds of being activated, so create every accept rule before activating. Each VPS has at most one active group; a group can be shared by several servers. Rule changes reach new connections within about two minutes after a sync; open connections are kept.
vps_firewall_list; reuse a group whose rules match, else vps_firewall_create with a name like web-<hostname>.vps_firewall_create-rule per port: protocol: "SSH" with port: "22", "HTTP"/"80", "HTTPS"/"443", source: "any", source_detail: "any", plus the app's own ports only if they must be reached directly (prefer a reverse proxy on 80/443).vps_firewall_get and check that the SSH rule is there. Show the user the rules and say that activating closes every other port, and wait for their "yes". Then vps_firewall_activate with the group and the server, then vps_firewall_sync-to-all-assigned-v-ms once it succeeds: a new group reads is_synced: false until synced, even though activation already applied its rules. Sync again after any later rule change. The sync answers Request accepted; vps_firewall_get shows is_synced: true when it is done.nc -zv -w 5 IP 22 (on macOS add -G 5), and curl -s -o /dev/null -w "%{http_code}\n" http://IP/ for port 80. Do not judge 80 or 443 by nc: some networks (VPNs, proxies) accept those ports for any address.The guest OS firewall (ufw, iptables) applies as well; a Hostinger drop wins over a guest accept. Change a shared group only after saying which other servers use it.
On a server that already serves something, offer a checkpoint. A VPS keeps one snapshot, a new one replaces it, and it expires after one day — it is a short undo for this deploy, not a backup. vps_snapshots_get answers 404 when there is none; when one exists, show its created_at and ask before replacing it. Creating it can take up to an hour; the VPS keeps running but is locked for other actions meanwhile.
| Project | Path |
|---|---|
Compose file, server where vps_docker_list answers | Docker Manager (5a), or SSH (5b) |
Compose file, server where vps_docker_list returns [VPS:2044] | SSH (5b) with Docker installed |
| Anything else (Node.js, Python, PHP, static) | SSH (5b) |
Docker Manager is available on some servers and not others, and availability does not follow the template name. Call vps_docker_list first: [VPS:2044] means this server has no Docker Manager, so use 5b.
vps_docker_list for existing projects. A project_name that already exists is replaced: read its current contents with vps_docker_get and keep a copy outside the server, so the old project can be put back, then confirm.vps_docker_create with project_name (letters, digits, dashes, underscores), content and optional environment (.env lines). content is the compose YAML itself, or a direct URL to the compose file; for GitHub pass the raw file URL with the branch named in it rather than the repository URL.build: — whether the Docker Manager builds from source is unresolved, so build and push the image to a registry first. Private registries need credentials added by the user in hPanel's Docker Manager.127.0.0.1, and add firewall rules (step 3) for any port that must be public.vps_docker_containers for each container's state, health and ports (state holds the fixed values such as running; status is free text like Up 18 seconds); vps_docker_logs (last 300 lines) on failure. Later: vps_docker_update pulls images and recreates containers, keeping volumes; vps_docker_restart and vps_docker_start keep everything.hostinger/deploy-on-vps@v2 GitHub Action, which deploys the compose project through the Docker Manager, so only on servers where vps_docker_list answers. The user sets it up in the repository with api-key (a Hostinger API key, kept as a repository secret) and virtual-machine (the VM id), plus optional project-name, docker-compose-path and environment-variables.This is ordinary Linux administration on the user's own server; say what will be installed before installing it.
/opt/<app> (git clone on the server, or rsync -az --exclude node_modules --exclude .git ./ root@IP:/opt/<app>/). Secrets go in a file with mode 600, never in the repository.docker compose up -d in the project directory.Restart=always, behind a reverse proxy (nginx) on 80/443, and a Let's Encrypt certificate (certbot --nginx -d <domain>) once the domain resolves to the server (step 6) and port 80 is open.dns_records_list first. Then dns_records_validate and dns_records_update with the same body: zone: [{ name: "@" or "sub", type: "A", ttl: 300, records: [{ content: "<ipv4>" }] }], with overwrite set explicitly — it defaults to true, which replaces records of the same name and type. Use overwrite: true only to replace an existing A record, after naming it to the user.vps_ptr_create with ipAddressId from ipv4[0].id and domain. vps_virtual-machines_set-hostname does not change the PTR.dig +short A <domain> must return the IP before requesting a certificate.curl -s -o /dev/null -w "%{http_code}\n" https://DOMAIN/
curl -s https://DOMAIN/ | grep -o "TEXT THE PROJECT RENDERS"
Containers with state: running (5a) or the service active (5b), plus the real page over HTTPS from outside. A container with no healthcheck returns health: "", which is not a failure; only unhealthy is. Write .hostinger/vps.json in the project: { "virtual_machine_id", "ipv4", "domain", "deploy": "docker-manager" | "ssh", "project_name" or "service" }, keeping fields already there.
vps_docker_logs is the exception, for Docker Manager projects).rsync or SFTP.14 skills in this plugin
/audit-hostingAudit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website, SSL problems, broken or vulnerable WordPress installs, failed Node.js builds and vulnerable npm packages, databases and Agency Plan orders near their limits, and hosting plans about to lapse. Read-only; produces a prioritised to-do list and names the skill that fixes each item. Triggers: what do I have on Hostinger, audit my hosting, check all my websites, what needs attention, health check my sites, are any of my sites broken, which of my sites are insecure./audit-vpsAudit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU, memory, disk and monthly traffic use, firewall missing or not synced, SSH keys, Monarx malware counts, backup age, Docker Manager projects that are not healthy, old OpenVZ servers, and VPS plans about to lapse. Read-only; produces a prioritised to-do list and names the skill or hPanel page that fixes each item. Triggers: what VPS do I have, audit my servers, check all my VPS, which servers need attention, health check my VPS, are my servers secure, is my VPS backed up, when does my VPS expire./connect-domainConnect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to the site, point DNS at Hostinger without breaking existing email or verification records, install SSL, turn on the HTTPS redirect, and verify it resolves. Handles domains registered at Hostinger or elsewhere, moving a site off its free *.hostingersite.com subdomain, subdomains and aliases. Triggers: connect my domain, point my domain to my site, use my own domain, move off the free subdomain, add a subdomain, park a domain, add a domain alias, my domain is not working./deploy-to-hostingDeploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the right deploy for static sites, Node.js apps (Next.js, Nuxt, Express, Vite and similar), PHP apps and WordPress plugins or themes, sets up auto-deploy from GitHub or GitLab, manages Node.js environment variables and MySQL databases, and verifies the live site. Triggers: deploy this project, deploy to Hostinger, push my app live, redeploy, set up auto-deploy, connect my GitHub repo, add environment variables, my app needs a database, deploy my WordPress plugin or theme./hostinger-connectConnect your coding agent to your Hostinger account: signs in, adds the Hostinger MCP server to Claude Code, Codex, Cursor or VS Code (or gives the remote server URL for any other tool), and tells the user when it's ready. Only sets up the connection; for building, deploying or changing a site use the other Hostinger skills. Triggers: connect my agent to Hostinger, set up the Hostinger MCP server, add Hostinger to my coding tool./hostinger-headlessOrchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a single prompt that names a domain. Holds the stage flow and the state contract, and drives each stage in sequence: connect, check state, refine, provision, content model, design, frontend, validate, deploy, done. Triggers: build a headless site for <domain>, build me a site, create a website, make me a website, deploy this to Hostinger, host this on Hostinger, connect this project to Hostinger.Other plugins' skills for the same job