> For the complete documentation index, see [llms.txt](https://guides.getalby.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.getalby.com/user-guide/alby-hub/alby-hub-flavors/other-cloud-options.md).

# Cloud Hosting

You can run Alby Hub on cloud service from almost any provider!

You can find all releases, script binaries and install scripts of Alby Hub on [GitHub](https://github.com/getAlby/hub?tab=readme-ov-file#deploy-it-yourself).\
\
To make the deployment of Alby Hub in the cloud as easy as possible, find guides and 1-click deploy options below 👇

{% hint style="warning" %}
Use the HTTPS endpoint provided by the deployment platform. Do not expose Alby Hub's raw HTTP port `8080` directly to the public internet. If you configure a cloud deployment manually, keep the HTTP service behind a restricted HTTPS reverse proxy or access it through a VPN.
{% endhint %}

## Protect initial setup

For a new self-hosted cloud deployment running Alby Hub v1.24.7 or later, we recommend setting a random `SETUP_CODE` environment variable **before the first start**, not after the public URL becomes available. This prevents someone without the code from completing the initial setup or importing a migration file before you do.

Generate a random code locally with `openssl rand -hex 16` and configure it as `SETUP_CODE` in your hosting platform's environment variables or secrets. For Docker deployments, follow the [setup-code instructions](https://guides.getalby.com/user-guide/alby-hub/alby-hub-flavors/docker.md#protect-initial-setup-with-a-setup-code), including passing the variable into the container. Do not assume a one-click deployment template enables it automatically.

Open your Hub using the platform's HTTPS URL and enter the code when prompted. Alternatively, append `?c=YOUR_RANDOM_CODE` to the URL, replacing the placeholder with your code. Keep the code and any link containing it private.

The official Linux and Raspberry Pi install scripts generate a setup code automatically and print it with a setup link. If you use one of these scripts on your cloud server, use the generated code with your secure access URL rather than exposing the raw HTTP port.

The setup code is not your unlock password or recovery phrase. It is no longer required once setup is complete and does not replace the network-access precautions above.

## Overview

### Deploy on Fly.io

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FHROXBPYD6snYBGdQNRTH%2Ffly.png?alt=media&amp;token=ea06ba06-e668-41d1-a534-b93466bc98bc" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/fly)

### Deploy on Render

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FD5n6JY8h5UrsuIWLGAWB%2Frender.png?alt=media&amp;token=f0fc146d-ec1c-4558-b19b-59ed193d12a8" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/render)

### Deploy on DigitalOcean

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FeuzUUVqeYlL5udKE9zub%2Fdigitalocean.png?alt=media&amp;token=534aa59a-3f04-404d-b73c-590d8d7e8e3f" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/digitalocean)

### Deploy on Railway

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FK2ZftO29kD6nJ2JqUCnx%2Frailway.png?alt=media&amp;token=bcd20e08-d13d-4efe-870d-df70fa9ae3b4" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/railway)

### Deploy on Google Cloud

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FCj0WnjckNJdn0DDQOLUo%2Fgoogle-cloud.png?alt=media&amp;token=f5a6134c-0b9a-4fec-8397-2e0076d8dabc" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/google-cloud)

### Deploy on AWS Lightsail

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FFBHG8SSdlu0skoTAJz7D%2Faws-lightsail.png?alt=media&amp;token=3de4b776-0159-4a11-b2f2-daf5d6e7bdf5" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/aws-lightsail)

### Deploy on AWS EC2

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FPxlP0UzjDVLii7y7haul%2Faws-ec2.png?alt=media&amp;token=8a912aed-a2fe-4e34-9441-e8595175ef0c" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/aws-ec2)

### Deploy on Linode

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FscTr7Dycluzlm79aSWFl%2Flinode.png?alt=media&amp;token=2682be9d-c3f4-42d0-9051-67e66a229bf2" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/linode)

### Deploy on Vultr

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2Fcm54AHUhcIMaXaUpZloA%2Fvultr.png?alt=media&amp;token=57eaaae4-1c65-45ef-9f27-2ee2865c337e" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/vultr)

### Deploy on Hetzner

[<img src="https://2706948649-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWIUBf3ZZaBGu2ee6Y8lU%2Fuploads%2FftYkrvQSUjqHvfaGV6UC%2Fhetzner.png?alt=media&amp;token=84104af4-c883-407e-9edf-8999fa5e499f" alt="Deploy to Hetzner" data-size="original">](https://getalby.com/alby-hub/cloud/hetzner)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guides.getalby.com/user-guide/alby-hub/alby-hub-flavors/other-cloud-options.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
