> For the complete documentation index, see [llms.txt](https://docs.edgetag.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgetag.io/hosting/self-hosting.md).

# Self-hosting

Choosing the self-hosting option requires some effort, but it provides you with direct access to your infrastructure, and your data will be stored in your own account.

We utilize Cloudflare and its products for hosting services. We continually strive to stay current with our offerings, providing you with the best solutions possible.

### Cloudflare services

Below you can see the services that we are using from the Cloudflare ecosystem:

* [Analytics Engine](https://developers.cloudflare.com/analytics/analytics-engine/) (analytics)
* [Custom hostnames ](https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/)(domain)
* [D1](https://developers.cloudflare.com/d1/) (database)
* [KV](https://developers.cloudflare.com/kv/) (key-value storage)
* [Queues](https://developers.cloudflare.com/queues/)
* [R2](https://developers.cloudflare.com/r2/) (file storage)
* [Workers](https://developers.cloudflare.com/workers/) (processing)
* [Workers for Platforms](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/) (OEM)
* [Workflows](https://developers.cloudflare.com/workflows/)

### Onboarding

To get started with self-hosting, follow these simple steps.&#x20;

First, we will check if your current Cloudflare account (or the new one you created) is set up correctly.&#x20;

Next, you'll need to generate a token that you will paste into the host form in the EdgeTag app.&#x20;

{% hint style="warning" %}
If you are setting up hosting as an OEM or are not using Cloudflare for name servers (NS), you will also need to enable [custom domain support](/hosting/self-hosting/custom-domains.md) to generate first-party subdomains.
{% endhint %}

Let's first check if the account is set up correctly.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.edgetag.io/hosting/self-hosting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
