hetzner

Manage Hetzner Cloud servers, firewalls, networks, volumes, floating IPs, and DNS via REST API.

6|2|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/dandaka/skills --skill hetzner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hetzner
Source: https://github.com/dandaka/skills/tree/main/hetzner
Command: npx skills add https://github.com/dandaka/skills --skill hetzner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides concise operational guidance to manage Hetzner Cloud resources via the REST API, removing ambiguity when listing or changing servers, firewalls, networks, volumes, floating IPs, and DNS and reducing the risk of accidental misconfiguration.

Core Features & Use Cases

  • API Reference and Patterns: Quick examples for listing servers, networks, and firewalls and for creating firewalls and other resources using the Hetzner Cloud API.
  • Firewall Safety Guidance: Explicit instructions and warnings about the set_rules endpoint that performs full replacements, plus a recommended workflow for preserving existing rules and restricting ports to specific IPs.
  • Operational Checks: Practical checks for connectivity and step-by-step patterns for modifying configuration safely, useful for provisioning VPS, tightening access, or troubleshooting network connectivity.

Quick Start

Use the hetzner skill to list all servers, fetch the current firewall rules you plan to change, update the rules array to include the new rule while preserving existing rules, and then apply the replacement via the set_rules endpoint.

Frequently Asked Questions about hetzner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Hetzner Cloud servers and firewalls via the API?

Manage Hetzner Cloud servers and firewalls via the API by using REST calls to list, provision, and deprovision virtual machines. You can fetch current resources and update firewall rule sets safely by verifying the state before making changes.

How do I update Hetzner Cloud firewall rules without locking myself out?

To update Hetzner Cloud firewall rules safely, fetch the current rules first, append your new restrictions to the array, and apply the replacement via the set_rules endpoint. This prevents accidental lockouts because set_rules overwrites all existing rules.

Can I restrict specific ports to certain IPs on a Hetzner VPS?

You can restrict specific ports to certain IPs on a Hetzner VPS by modifying your firewall rule sets. Fetch the existing firewall configuration, add rules to restrict ports to specific IPs, and verify your current state before applying the replacement.

What do I need to provision a Hetzner Cloud server programmatically?

To provision a Hetzner Cloud server programmatically, you need authenticated API access via an HETZNER_API_KEY. Use the REST API to create virtual machines and manage related resources like networks, volumes, floating IPs, and DNS.

Why does updating my Hetzner firewall remove all existing rules?

Updating your Hetzner firewall removes all existing rules because the set_rules endpoint performs a full replacement of the rule set. To avoid losing rules, fetch the current configuration, merge your new rules into the array, and then apply the update.