---
title: The license portal (Self-host)
description: Sign in to the SharpWrite license portal to download your Self-host bundle, see which sites use your license, replace your key and check your update period.
url: https://sharpwritecms.com/docs/license-portal
updated: 2026-11-22
site: SharpWrite (https://sharpwritecms.com)
---

# The license portal (Self-host)

> After you buy a Self-host license, the license portal is your control panel. It is a separate site from the SharpWrite app, and it only knows about your licenses.

## What the portal is for

The portal is where you:

- download the Self-host software, including newer versions during your update period
- see which of your sites (domains) are using your license
- replace your license key if it leaked or was lost
- check the plan, the date you bought it and how long updates are included
- see whether the license is active, paused or revoked

It lives at `selfhost.sharpwritecms.com`. Your content never goes there: a Self-host install stores everything in your own Cloudflare account. The portal only holds licensing information.

## Sign in

1. Open the portal and enter the **email address you bought with**.
2. We email you a link. There is no password to remember. Open the link to sign in.
3. You see every Self-host license bought with that address.

If the list says "No licenses for this email", you probably bought with another address. Sign out and sign in with that one. Still nothing? Write to hello@sharpwritecms.com with the details of the purchase.

Sign-in is rate limited to protect your account. If you request several links in a row you may be asked to wait a few minutes.

## Your license page

Open a license to see its page. The header shows the plan (Single or Agency) and a status badge. The side panel shows:

| Item | Meaning |
|---|---|
| Plan | Single or Agency, with unlimited domains |
| Updates included until | The end of your update year, counted from the purchase date |
| Bought | The purchase date |
| License ID | A short id to quote when you write to support |

### Status

| Status | What it means for you |
|---|---|
| Active | Everything works: downloads, key replacement and editing on your sites |
| Paused | A payment dispute is open. Your sites keep serving content. Editing pauses until the dispute is settled |
| Revoked | For example after a refund. Your sites keep serving content, but editing is turned off, and downloads and key replacement are unavailable |

In every status your public content API and your images keep working. A licensing decision never takes a live website down.

## Download the software

1. On your license page, find **Download** and choose **Create download link**.
2. The link works for **24 hours**. You can create a new one any time.
3. The portal gives you the newest release your license may have. A release newer than your update period is not offered, but the version you already have keeps working.
4. **Recent downloads** lists the versions you downloaded and when.

Downloads are only available while the license is active. The download is a zip with the project, the install guide, the database migrations and a setup script. Each bundle is stamped with your license, so do not share it.

To install it, follow the [Self-host guide](https://sharpwritecms.com/docs/self-host). In short: unzip, then run `npm install` and `npm run setup`, and enter your license key when asked.

## Sites using your license

The **Domains** panel lists every site that has checked in with your key: its domain, the version it runs, when it first appeared and when it last checked in.

- A domain is listed the first time a site checks in. A Self-host site checks its license about once a day.
- There is **no limit on domains**. Run as many sites as you like. A Single license is for your own sites; an Agency license is also for sites you build for clients.
- If a site changes address, open it on the new address. The next check lists the new domain.
- To tidy the list, choose **Remove from the list** next to a domain and confirm. This only removes the entry. If a site is still running with your key, it appears again at its next check.

## Replace your license key

Replace the key if it was shared by mistake, appeared in a public repository, or you lost it.

1. On your license page find the license key panel (it shows the start of your key) and choose to replace it.
2. **The current key stops working immediately.** Sites running with it will lose editing at their next license check until you update them.
3. The new key is shown **once**. Copy it before you close the window.
4. On each install, run the setup again with the new key. It stores the key and redeploys:

```
npm run setup -- --license-key SW-XXXXX-XXXXX-XXXXX-XXXXX
```

Only an active license can get a new key. To protect you, replacing is rate limited to a few times in ten minutes.

## Updates

Updates are included for one year from the purchase date. After that the software keeps working; you simply do not get newer releases. When a newer release inside your update period exists, your install shows "update available".

To update:

1. Download the newest bundle from your license page.
2. Copy your `wrangler.jsonc` over the new one. It holds your database id.
3. Run `npm install` and `npm run setup` again.

Your content stays in your own database. Running setup again is always safe.

## How the license check works

- On the first admin sign-in, and then about once a day, your install asks the license server whether the license is valid.
- The server answers with a signed token that is valid for 14 days. If the license server is unreachable, your install keeps using its saved token until it expires.
- A refunded, disputed or revoked license turns **editing** off at the next check. Reading, the public API and media keep working.
- The install sends the license key, its domain, a random install id and its version number to the license server. Your content is never sent.

## If something goes wrong

| What you see | What to do |
|---|---|
| "No licenses for this email" | Sign in with the address you bought with. |
| Editing is turned off but your content still loads | The license check failed. Open your license page: the status badge and message say why. |
| "Downloads are turned off for this license" | The license is not active. See the status on the page, or write to support. |
| "Only an active license can get a new key" | The license is paused or revoked. Contact support. |
| A domain you no longer use is listed | Remove it from the Domains list. |
| You replaced the key and a site lost editing | Run `npm run setup -- --license-key <new key>` on that install. |
| Too many attempts | Wait a few minutes and try again. |

Still stuck? Write to hello@sharpwritecms.com and include your License ID. See also [Troubleshooting](https://sharpwritecms.com/docs/troubleshooting) and the [license terms](https://sharpwritecms.com/terms).
