Install
Deploy Helpdear to your Cloudflare account with one click.
Helpdear runs on Cloudflare: one Worker, a D1 database and a Durable Object for live updates. The Deploy to Cloudflare button copies the code to your GitHub account, creates those resources, and deploys.
What you need
- A Cloudflare account. The free Workers plan runs a small install. Sending email through Cloudflare needs the Workers Paid plan; Resend works on any plan.
- A GitHub (or GitLab) account, for your copy of the code.
Deploy
- Click Deploy to Cloudflare on the Helpdear repository.
- Sign in to Cloudflare and connect GitHub when asked.
- Fill in the secrets:
| Secret | What it's for |
|---|---|
ENCRYPTION_KEY | Encrypts the AI provider key and other secrets in your database. Create one with openssl rand -base64 32 and keep it safe: changing it makes stored keys unreadable. |
ADMIN_PASSWORD | Optional. The owner's password. Leave it empty to choose a password on your first visit. |
RESEND_API_KEY | Optional. A Resend API key, so Helpdear can send email. See Email. |
- Click Deploy. When it finishes, open the Worker's address and go to
/admin.
First visit
Open https://<your worker>/admin. On a new install you create the owner account with your
name, email and password. Then add your website in Settings → Websites and paste the
embed code into your site.
The database schema is created on the first request, so there is nothing else to run.
Use your own domain
In the Cloudflare dashboard, open the Worker, then Settings → Domains & Routes → Add →
Custom domain, and enter something like help.example.com. Your help center is then at
https://help.example.com, the dashboard at /admin, and the widget script at /widget.js.
Update
Your install is your own repository, so updates don't arrive on their own. To update:
- In your repository on GitHub, open Actions → Update Helpdear → Run workflow.
- The workflow copies the latest code and pushes it; Cloudflare builds and deploys the push.
It keeps your wrangler.jsonc, so your database and settings stay the same. New migrations
run by themselves on the first request after the deploy. Read the
changelog before updating; any manual step is listed there.