> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Provision and manage Hetzner Cloud servers from Guild agents

> Connect Guild agents to Hetzner Cloud to create servers, manage networks and firewalls, control load balancers, and retrieve metrics via the REST API.

Integrations · Hetzner Cloud

A Guild agent can provision servers, configure firewalls, manage load balancers, and retrieve live metrics in Hetzner Cloud without any manual steps. Guild stores the API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent can call, and every request passes through Guild's credential proxy before it reaches Hetzner Cloud.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Hetzner Cloud.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Hetzner Cloud to your first agent.

## What the Hetzner Cloud integration exposes

The tools cover servers, volumes, networks, load balancers, firewalls, floating and primary IPs, placement groups, certificates, SSH keys, images, ISOs, datacenters, locations, and pricing. Create, read, update, and delete operations are available for each resource type. Server-specific tools include power on, power off, reboot, shutdown, reset, rescue mode, backup management, type changes, snapshot creation, and console access. Load balancer tools cover services, targets, algorithms, network attachment, and public interface control.

## How it works

**1. Open credentials and connect**

In Guild, go to Access & setup > Credentials, click Connect, and select hetzner. Paste your Hetzner Cloud project API token into the API Key field.

**2. Scope the credential**

Choose whether the credential serves the whole account, one workspace, one member, or a single agent. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the full scoping options.

**3. Import tools into your agent**

Import HetznerTools from the integration package and spread it into your agent's tools object. Use pick() from the [SDK tools](https://docs.guild.ai/sdk/tools.md) to include only the operations your agent needs.

## Why Hetzner Cloud access needs governing

Hetzner Cloud tools can delete servers, rebuild disks, reset root passwords, and cut power to running machines. Without controls, any agent with the credential can perform destructive operations across your whole project. Guild's credential proxy enforces credential policies before any request leaves Guild, so you can write ALLOW and DENY rules that restrict agents to specific operations such as read-only metrics retrieval or firewall inspection, while blocking deletions and rebuilds entirely.

Policies can be scoped to individual agents or workspaces, so a monitoring agent can be limited to get and metrics operations while a provisioning agent gets broader access, all on the same connected credential. Guild injects the API key server-side only after the policy check passes, so agents never handle the token directly. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) and [Credentials](https://docs.guild.ai/platform/credentials.md) for setup details.

## About the Hetzner Cloud integration

Agents can provision and delete Hetzner Cloud resources such as servers, volumes, networks, and load balancers. They can configure firewalls, manage floating and primary IPs, and retrieve metrics and pricing. Full lifecycle management is available through the Hetzner Cloud REST API. The integration is `guildai~hetzner`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect Hetzner Cloud**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **hetzner**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { HetznerTools } from "@guildai-services/guildai~hetzner"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with Hetzner Cloud.",
  tools: { ...HetznerTools },
})
```

### Selecting specific tools

Tools are named with the `hetzner_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~hetzner`:

> [accordion] All 144 tools
>
> | Tool | What it does |
> | - | - |
> | `hetzner_delete_certificates_by_id` | Deletes a Certificate. |
> | `hetzner_delete_firewalls_by_id` | Deletes a Firewall. |
> | `hetzner_delete_floating_ips_by_id` | Deletes a Floating IP. |
> | `hetzner_delete_images_by_id` | Deletes an Image. |
> | `hetzner_delete_load_balancers_by_id` | Deletes a Load Balancer. |
> | `hetzner_delete_networks_by_id` | Deletes a network. |
> | `hetzner_delete_placement_groups_by_id` | Deletes a PlacementGroup. |
> | `hetzner_delete_primary_ips_by_id` | Deletes a Primary IP. |
> | `hetzner_delete_servers_by_id` | Deletes a Server. |
> | `hetzner_delete_ssh_keys_by_id` | Deletes an SSH key. |
> | `hetzner_delete_volumes_by_id` | Deletes a volume. |
> | `hetzner_get_actions` | Returns all Action objects. |
> | `hetzner_get_actions_by_id` | Returns a specific Action object. |
> | `hetzner_get_certificates` | Returns all Certificate objects. |
> | `hetzner_get_certificates_by_id` | Gets a specific Certificate object. |
> | `hetzner_get_certificates_by_id_actions` | Returns all Action objects for a Certificate. |
> | `hetzner_get_certificates_by_id_actions_by_action_id` | Returns a specific Action for a Certificate. |
> | `hetzner_get_datacenters` | Returns all Datacenter objects. |
> | `hetzner_get_datacenters_by_id` | Returns a specific Datacenter object. |
> | `hetzner_get_firewalls` | Returns all Firewall objects. |
> | `hetzner_get_firewalls_by_id` | Gets a specific Firewall object. |
> | `hetzner_get_firewalls_by_id_actions` | Returns all Action objects for a Firewall. |
> | `hetzner_get_firewalls_by_id_actions_by_action_id` | Returns a specific Action for a Firewall. |
> | `hetzner_get_floating_ips` | Returns all Floating IP objects. |
> | `hetzner_get_floating_ips_by_id` | Returns a specific Floating IP object. |
> | `hetzner_get_floating_ips_by_id_actions` | Returns all Action objects for a Floating IP. |
> | `hetzner_get_floating_ips_by_id_actions_by_action_id` | Returns a specific Action object for a Floating IP. |
> | `hetzner_get_images` | Returns all Image objects. |
> | `hetzner_get_images_by_id` | Returns a specific Image object. |
> | `hetzner_get_images_by_id_actions` | Returns all Action objects for an Image. |
> | `hetzner_get_images_by_id_actions_by_action_id` | Returns a specific Action for an Image. |
> | `hetzner_get_isos` | Returns all available ISO objects. |
> | `hetzner_get_isos_by_id` | Returns a specific ISO object. |
> | `hetzner_get_load_balancers` | Gets all existing Load Balancers that you have available. |
> | `hetzner_get_load_balancers_by_id` | Gets a specific Load Balancer object. |
> | `hetzner_get_load_balancers_by_id_actions` | Returns all Action objects for a Load Balancer. |
> | `hetzner_get_load_balancers_by_id_actions_by_action_id` | Returns a specific Action for a Load Balancer. |
> | `hetzner_get_load_balancers_by_id_metrics` | You must specify the type of metric to get: 'open\_connections', 'connections\_per\_second', 'requests\_per\_second' or 'bandwidth'. |
> | `hetzner_get_load_balancer_types` | Gets all Load Balancer type objects. |
> | `hetzner_get_load_balancer_types_by_id` | Gets a specific Load Balancer type object. |
> | `hetzner_get_locations` | Returns all Location objects. |
> | `hetzner_get_locations_by_id` | Returns a specific Location object. |
> | `hetzner_get_networks` | Gets all existing networks that you have available. |
> | `hetzner_get_networks_by_id` | Gets a specific network object. |
> | `hetzner_get_networks_by_id_actions` | Returns all Action objects for a Network. |
> | `hetzner_get_networks_by_id_actions_by_action_id` | Returns a specific Action for a Network. |
> | `hetzner_get_placement_groups` | Returns all PlacementGroup objects. |
> | `hetzner_get_placement_groups_by_id` | Gets a specific PlacementGroup object. |
> | `hetzner_get_pricing` | Returns prices for all resources available on the platform. |
> | `hetzner_get_primary_ips` | Returns all Primary IP objects. |
> | `hetzner_get_primary_ips_by_id` | Returns a specific Primary IP object. |
> | `hetzner_get_servers` | Returns all existing Server objects |
> | `hetzner_get_servers_by_id` | Returns a specific Server object. |
> | `hetzner_get_servers_by_id_actions` | Returns all Action objects for a Server. |
> | `hetzner_get_servers_by_id_actions_by_action_id` | Returns a specific Action object for a Server. |
> | `hetzner_get_servers_by_id_metrics` | Get Metrics for specified Server. |
> | `hetzner_get_server_types` | Gets all Server type objects. |
> | `hetzner_get_server_types_by_id` | Gets a specific Server type object. |
> | `hetzner_get_ssh_keys` | Returns all SSH key objects. |
> | `hetzner_get_ssh_keys_by_id` | Returns a specific SSH key object. |
> | `hetzner_get_volumes` | Gets all existing Volumes that you have available. |
> | `hetzner_get_volumes_by_id` | Gets a specific Volume object. |
> | `hetzner_get_volumes_by_id_actions` | Returns all Action objects for a Volume. |
> | `hetzner_get_volumes_by_id_actions_by_action_id` | Returns a specific Action for a Volume. |
> | `hetzner_post_certificates` | Creates a new Certificate. |
> | `hetzner_post_certificates_by_id_actions_retry` | Retry a failed Certificate issuance or renewal. |
> | `hetzner_post_firewalls` | Creates a new Firewall. |
> | `hetzner_post_firewalls_by_id_actions_apply_to_resources` | Applies one Firewall to multiple resources. |
> | `hetzner_post_firewalls_by_id_actions_remove_from_resources` | Removes one Firewall from multiple resources. |
> | `hetzner_post_firewalls_by_id_actions_set_rules` | Sets the rules of a Firewall. |
> | `hetzner_post_floating_ips` | Creates a new Floating IP assigned to a Server. |
> | `hetzner_post_floating_ips_by_id_actions_assign` | Assigns a Floating IP to a Server. |
> | `hetzner_post_floating_ips_by_id_actions_change_dns_ptr` | Changes the hostname that will appear when getting the hostname belonging to this Floating IP. |
> | `hetzner_post_floating_ips_by_id_actions_change_protection` | Changes the protection configuration of the Floating IP. |
> | `hetzner_post_floating_ips_by_id_actions_unassign` | Unassigns a Floating IP, resulting in it being unreachable. |
> | `hetzner_post_images_by_id_actions_change_protection` | Changes the protection configuration of the Image. |
> | `hetzner_post_load_balancers` | Creates a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_add_service` | Adds a service to a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_add_target` | Adds a target to a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_attach_to_network` | Attach a Load Balancer to a Network. |
> | `hetzner_post_load_balancers_by_id_actions_change_algorithm` | Change the algorithm that determines to which target new requests are sent. |
> | `hetzner_post_load_balancers_by_id_actions_change_dns_ptr` | Changes the hostname that will appear when getting the hostname belonging to the public IPs (IPv4 and IPv6) of this Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_change_protection` | Changes the protection configuration of a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_change_type` | Changes the type (Max Services, Max Targets and Max Connections) of a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_delete_service` | Delete a service of a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_detach_from_network` | Detaches a Load Balancer from a network. |
> | `hetzner_post_load_balancers_by_id_actions_disable_public_interface` | Disable the public interface of a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_enable_public_interface` | Enable the public interface of a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_remove_target` | Removes a target from a Load Balancer. |
> | `hetzner_post_load_balancers_by_id_actions_update_service` | Updates a Load Balancer Service. |
> | `hetzner_post_networks` | Creates a network with the specified 'ip\_range'. |
> | `hetzner_post_networks_by_id_actions_add_route` | Adds a route entry to a Network. |
> | `hetzner_post_networks_by_id_actions_add_subnet` | Adds a new subnet object to the Network. |
> | `hetzner_post_networks_by_id_actions_change_ip_range` | Changes the IP range of a Network. |
> | `hetzner_post_networks_by_id_actions_change_protection` | Changes the protection configuration of a Network. |
> | `hetzner_post_networks_by_id_actions_delete_route` | Delete a route entry from a Network. |
> | `hetzner_post_networks_by_id_actions_delete_subnet` | Deletes a single subnet entry from a Network. |
> | `hetzner_post_placement_groups` | Creates a new PlacementGroup. |
> | `hetzner_post_primary_ips` | Creates a new Primary IP, optionally assigned to a Server. |
> | `hetzner_post_primary_ips_by_id_actions_assign` | Assigns a Primary IP to a Server. |
> | `hetzner_post_primary_ips_by_id_actions_change_dns_ptr` | Changes the hostname that will appear when getting the hostname belonging to this Primary IP. |
> | `hetzner_post_primary_ips_by_id_actions_change_protection` | Changes the protection configuration of a Primary IP. |
> | `hetzner_post_primary_ips_by_id_actions_unassign` | Unassigns a Primary IP from a Server. |
> | `hetzner_post_servers` | Creates a new Server. |
> | `hetzner_post_servers_by_id_actions_add_to_placement_group` | Adds a Server to a Placement Group. |
> | `hetzner_post_servers_by_id_actions_attach_iso` | Attaches an ISO to a Server. |
> | `hetzner_post_servers_by_id_actions_attach_to_network` | Attaches a Server to a network. |
> | `hetzner_post_servers_by_id_actions_change_alias_ips` | Changes the alias IPs of an already attached Network. |
> | `hetzner_post_servers_by_id_actions_change_dns_ptr` | Changes the hostname that will appear when getting the hostname belonging to the primary IPs (IPv4 and IPv6) of this Server. |
> | `hetzner_post_servers_by_id_actions_change_protection` | Changes the protection configuration of the Server. |
> | `hetzner_post_servers_by_id_actions_change_type` | Changes the type (Cores, RAM and disk sizes) of a Server. |
> | `hetzner_post_servers_by_id_actions_create_image` | Creates an Image (snapshot) from a Server by copying the contents of its disks. |
> | `hetzner_post_servers_by_id_actions_detach_from_network` | Detaches a Server from a network. |
> | `hetzner_post_servers_by_id_actions_detach_iso` | Detaches an ISO from a Server. |
> | `hetzner_post_servers_by_id_actions_disable_backup` | Disables the automatic backup option and deletes all existing Backups for a Server. |
> | `hetzner_post_servers_by_id_actions_disable_rescue` | Disables the Hetzner Rescue System for a Server. |
> | `hetzner_post_servers_by_id_actions_enable_backup` | Enables and configures the automatic daily backup option for the Server. |
> | `hetzner_post_servers_by_id_actions_enable_rescue` | Enable the Hetzner Rescue System for this Server. |
> | `hetzner_post_servers_by_id_actions_poweroff` | Cuts power to the Server. |
> | `hetzner_post_servers_by_id_actions_poweron` | Starts a Server by turning its power on. |
> | `hetzner_post_servers_by_id_actions_reboot` | Reboots a Server gracefully by sending an ACPI request. |
> | `hetzner_post_servers_by_id_actions_rebuild` | Rebuilds a Server overwriting its disk with the content of an Image, thereby destroying all data on the target Server |
> | `hetzner_post_servers_by_id_actions_remove_from_placement_group` | Removes a Server from a Placement Group. |
> | `hetzner_post_servers_by_id_actions_request_console` | Requests credentials for remote access via VNC over websocket to keyboard, monitor, and mouse for a Server. |
> | `hetzner_post_servers_by_id_actions_reset` | Cuts power to a Server and starts it again. |
> | `hetzner_post_servers_by_id_actions_reset_password` | Resets the root password. |
> | `hetzner_post_servers_by_id_actions_shutdown` | Shuts down a Server gracefully by sending an ACPI shutdown request. |
> | `hetzner_post_ssh_keys` | Creates a new SSH key with the given 'name' and 'public\_key'. |
> | `hetzner_post_volumes` | Creates a new Volume attached to a Server. |
> | `hetzner_post_volumes_by_id_actions_attach` | Attaches a Volume to a Server. |
> | `hetzner_post_volumes_by_id_actions_change_protection` | Changes the protection configuration of a Volume. |
> | `hetzner_post_volumes_by_id_actions_detach` | Detaches a Volume from the Server it’s attached to. |
> | `hetzner_post_volumes_by_id_actions_resize` | Changes the size of a Volume. |
> | `hetzner_put_certificates_by_id` | Updates the Certificate properties. |
> | `hetzner_put_firewalls_by_id` | Updates the Firewall. |
> | `hetzner_put_floating_ips_by_id` | Updates the description or labels of a Floating IP. |
> | `hetzner_put_images_by_id` | Updates the Image. |
> | `hetzner_put_load_balancers_by_id` | Updates a Load Balancer. |
> | `hetzner_put_networks_by_id` | Updates the network properties. |
> | `hetzner_put_placement_groups_by_id` | Updates the PlacementGroup properties. |
> | `hetzner_put_primary_ips_by_id` | Updates the Primary IP. |
> | `hetzner_put_servers_by_id` | Updates a Server. |
> | `hetzner_put_ssh_keys_by_id` | Updates an SSH key. |
> | `hetzner_put_volumes_by_id` | Updates the Volume properties. |

## Frequently asked questions

> [accordion] Does the integration support webhook events from Hetzner Cloud?
>
> No. The catalog entry lists no webhook events for this integration, so event-driven triggers from Hetzner Cloud are not available.

> [accordion] Can I limit an agent to read-only Hetzner Cloud access?
>
> Yes. Write a credential policy with a DENY rule covering operations that use POST, PUT, and DELETE methods, or use the methods resource constraint to allow only GET. The credential proxy enforces the policy before any request reaches Hetzner Cloud. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md).

> [accordion] How does Guild authenticate with the Hetzner Cloud API?
>
> Guild sends the API key as a bearer token in the Authorization header. The key is stored server-side and injected by Guild's credential proxy; agent code never sees it.

> [accordion] Can different agents use different Hetzner Cloud credentials in the same workspace?
>
> Yes. You can connect a credential dedicated to a single agent, or grant an existing credential to one agent, so each agent resolves the token you intend. See [Credentials](https://docs.guild.ai/platform/credentials.md) for the full scoping and grant options.

## Put a governed agent on Hetzner Cloud this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use Hetzner Cloud.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect Hetzner Cloud to your first agent.

## Related

**Also runs on Guild:** [Airtable](https://docs.guild.ai/integrations/airtable.md) · [AssemblyAI](https://docs.guild.ai/integrations/assemblyai.md) · [BigQuery](https://docs.guild.ai/integrations/bigquery.md) · [Chroma](https://docs.guild.ai/integrations/chroma.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
