Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration.

Setup

  1. Get a Hetzner Cloud account: Sign up at https://www.hetzner.com/cloud and create a project in the Cloud Console (https://console.hetzner.cloud).
  2. Generate an API token: In the Cloud Console open your project, go to Security > API tokens, and generate a token with Read & Write permissions (Read-only suffices if you skip the write tools).
  3. Set the environment variable: Copy the token into your .env as HCLOUD_TOKEN - it is shown only once at creation time.
  4. Verify access: Run List Servers and List Server Types to confirm the token works.
  • API tokens are scoped to a single Hetzner Cloud project
  • Rate limit applies per token (check RateLimit-* response headers)
  • Power Off is a hard power cut - prefer a graceful OS shutdown for running workloads
  • Creating servers provisions billable infrastructure - confirm server type and location before running write tools
Provider API reference: https://docs.hetzner.cloud/reference/cloud

Tools

Example prompts

  • List my Hetzner Cloud servers with their status, server type, and labels.
  • Create a small Ubuntu server on Hetzner Cloud after confirming the server type, location, and cost with me.
  • Power off the Hetzner Cloud server I name, wait for it to stop, then power it back on.