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

# Hetzner

> Connect your Hetzner account so Leanly can provision and manage infrastructure on your behalf.

Connect your Hetzner account by generating an API key and sharing it with Leanly. Leanly uses it to provision and manage resources in your account on your behalf.

## Connect using our agent skill

The fastest way to connect your Hetzner account. Our agent skill walks you through generating an API key and connecting your account automatically.

<Prompt description="Copy and run this prompt to connect your Hetzner account automatically." actions={["copy"]}>
  Connect my Hetzner account to Leanly.
</Prompt>

## Manual setup

If you prefer to set up the connection yourself, follow the steps below.

<Accordion title="Set up manually">
  ### Before you begin

  * **Hetzner project access** — make sure you have access to the Hetzner project you want to connect.

  ### 1. Create an API token

  <Steps>
    <Step title="Generate an API token">
      In your Hetzner project, generate a read and write API token. Follow [Hetzner's documentation](https://docs.hetzner.com/cloud/api/getting-started/generating-api-token) if you need guidance.
    </Step>

    <Step title="Copy the token">
      Copy the token — you'll need it in the next step. Hetzner only shows it once.
    </Step>
  </Steps>

  ### 2. Connect the project to Leanly

  <Steps>
    <Step title="Open integrations">
      In your Leanly dashboard, go to **Integrations**, select **Hetzner**, and click **Connect Project**.
    </Step>

    <Step title="Provide the API token">
      Paste the API token you copied.
    </Step>

    <Step title="Add a friendly name">
      Enter a name to help you identify this integration later (e.g. `Production` or `My Hetzner Project`).
    </Step>

    <Step title="Connect">
      Click **Connect Project** to complete the setup.
    </Step>
  </Steps>
</Accordion>

## Permissions

Leanly requires a read and write API token to provision and manage resources in your Hetzner project.

| Permission        | Access         | Why                                                  |
| ----------------- | -------------- | ---------------------------------------------------- |
| Project resources | Read and write | Create and manage servers and related infrastructure |
