Hetzner Cloud CLI (hcloud) for Openclaw

The official command-line interface for managing high-performance Hetzner Cloud resources including servers, networks, volumes, and load balancers.

jpj069
v1.0.0
Feb 20, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install hcloud

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install hcloud using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Hetzner Cloud CLI (hcloud)?

The hcloud skill provides a comprehensive interface for interacting with the Hetzner Cloud API, enabling developers to provision and manage cloud infrastructure directly from their terminal or automation scripts. By integrating with Openclaw Skills, this tool simplifies the lifecycle of virtual machines, storage, and networking, offering a fast and cost-effective alternative to larger cloud providers.

This skill is designed for performance-oriented teams who need a reliable way to manage cloud resources without the overhead of a web-based console. Whether you are spinning up a single development server or orchestrating a complex network of load-balanced applications, the hcloud skill within the Openclaw Skills ecosystem provides the precision and speed required for modern DevOps workflows.

Hetzner Cloud CLI (hcloud) Use Cases

  • Automating the deployment of Ubuntu or Debian servers for web hosting and development environments.
  • Configuring and applying granular firewall rules to secure cloud instances from unauthorized access.
  • Scaling storage on-the-fly by creating and attaching high-speed volumes to existing servers.
  • Setting up private networks and subnets to allow secure communication between backend services.
  • Provisioning and managing Load Balancers to handle high traffic volume across multiple compute nodes.

How Hetzner Cloud CLI (hcloud) Works

  1. The skill authenticates with the Hetzner Cloud API using a secure token provided in the configuration file.
  2. Users query available resources such as server types (cx/cpx series), system images, and geographic locations.
  3. Infrastructure commands are issued to create, modify, or delete resources like servers, firewalls, or networks.
  4. The skill provides real-time feedback on resource status, allowing for the monitoring of server power states or network attachment progress.
  5. Advanced Openclaw Skills logic can be applied to parse the JSON output for automated resource auditing and scaling operations.

Hetzner Cloud CLI (hcloud) Setup

First, install the hcloud binary based on your system architecture:

# Detect architecture and download
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
  URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-arm64.tar.gz"
else
  URL="https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz"
fi

# Extract and install
cd /tmp
wget -q "$URL"
tar xzf hcloud-linux-*.tar.gz
sudo mv hcloud /usr/local/bin/
chmod +x /usr/local/bin/hcloud

Next, configure your API credentials:

mkdir -p ~/.config/hcloud
cat > ~/.config/hcloud/cli.toml <<EOF
active_context = "default"

[[contexts]]
name = "default"
token = "YOUR_HETZNER_API_TOKEN"
EOF
chmod 600 ~/.config/hcloud/cli.toml

Hetzner Cloud CLI (hcloud) Data Schema & Taxonomy

The skill manages infrastructure data through structured identifiers and configuration files. Resource management is organized as follows:

Resource Type Key Attributes Configuration Scope
Servers Name, ID, IPv4/IPv6, Type, Image Instance-specific
Firewalls Name, Rules (JSON), Target Resources Account-wide
Networks Name, IP Range, Subnets, Gateway Regional
Volumes Name, Size (GB), Filesystem Path Datacenter-locked

All metadata is stored in ~/.config/hcloud/cli.toml, supporting multiple contexts for different Openclaw Skills environments.

Hetzner Cloud CLI (hcloud) Advanced Features

  • Context switching to manage multiple Hetzner accounts or projects seamlessly within the same environment.
  • Native JSON output support using --output json for integration with jq and other data processing tools.
  • Resource labeling to organize servers and networks by environment (e.g., production, staging) for bulk operations.
  • Integrated SSH command execution allowing you to run scripts on remote instances directly via the CLI.
  • Dry-run and validation flags to verify infrastructure changes before they are applied to your live environment.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*