Install in your Cloudflare
A guided wizard that creates the Worker and D1 database for you. Connect with one click (OAuth) or paste an API token โ everything else is automatic.
The installer lives on your machine and only talks to Cloudflare. Nothing else is involved.
No account, no email โ ready to connect your Cloudflare account.
Both methods need a one-time permission from you โ after that everything is automatic. Pick whichever you prefer.
Authorize in your browser with the minimal scopes (Workers deploy, D1, account read). The token is revoked right after the deploy.
How to enable this option (one-time setup)
- In the Cloudflare dashboard go to Manage Account โ OAuth clients โ Create client.
- Fill in: response type
code, grantauthorization_code, token authclient_secret_post, redirecthttp://localhost:8788/oauth/callback. - Scopes:
workers-platform.write,d1.write,account.read. - Put
CLIENT_IDandCLIENT_SECRETinapps/installer/.env.localand restart the installer. - From now on every install is one click: Connect โ Approve โ done.
Create a token with 3 permissions and paste it here. Open API tokens โ
How to create the token (about 1 minute)
- Open API tokens โ โ Create Token โ Custom token.
- Add these 3 account permissions:
- Workers Scripts โ Edit โ deploys the Worker.
- Cloudflare D1 โ Edit โ creates and manages the database.
- Account Settings โ Read โ lists your accounts.
- Create โ copy the token โ paste it above. It is validated instantly, kept only in memory, and cleared after the deploy.
The engine compares your account with the desired state and plans only the missing actions. Nothing happens until you confirm.
/admin.html with a Cloudflare Access app (Zero Trust) in your account, then add the team name here. Cloudflare verifies who you are โ StaticLayer never sees your Cloudflare password. The admin password is still shown once as a fallback.<your-worker>/api/admin/github/callback, then paste the Client ID / Secret and your numeric user id here. GitHub only ever sees your own login โ no visitor data ever leaves your Worker. The full step-by-step guide lives in the admin console โ Settings โ Admin access & sign-in.ALLOWED_ORIGINS (CORS) so the widget works out of the box. Multiple sites? Add them later in the Worker's Variables.Your Worker and database are live in your Cloudflare account.
This is the only time it is shown. Save it now โ you need it to open /admin.html and moderate your comments.
npx staticlayer init.