seops licence: installation guide
This guide covers installing the seops panel on your own Cloudflare account or on your own machine, keeping it updated, backing it up and removing it.
What the licence covers
- Single licence: one organisation's own sites, in one workspace. There is no limit on the number of sites.
- Agency licence: the same, plus separate workspaces for client sites.
- Updates: the licence key carries an "updates until" date. Every version released on or before that date can be installed. After it, the installed panel keeps running; only versions released later cannot be installed until the update period is renewed.
- No credits: a licence install has no site credits, AI credits or payment pages. The limits are those of your own Cloudflare account and your own AI provider accounts.
- Your own keys: AI visibility and AI question generation run on your own AI provider keys. Sign-in runs on your own Google OAuth client.
- Offline key check: the panel verifies the licence key inside itself. It never contacts seops.app for it.
- Not included: the seops service's own tools (billing, waiting list, the admin screens that manage other customers, seops.app content), the public demo, and server-side code audit.
- Source code: you receive read access to the code for your own installation. Reselling or redistributing it is not allowed by the licence terms.
Requirements
For both paths
- Node.js 22.18 or newer, and pnpm 10.
- The seops panel code (the repository or release archive you were given access to) and your licence key (one line that starts with
seops-lic.v1). - A Google Cloud project for sign-in (free). See "Google OAuth client".
Cloudflare path, additionally
- A Cloudflare account on the Workers Paid plan. The panel uses 8 cron triggers; the free plan allows 5 per account and 10 ms of CPU time per request, which is not enough.
wranglersigned in to that account (pnpm exec wrangler login).- Optional: a domain whose zone is in the same account, for an address such as
seo.example.com. Without it the panel gets aworkers.devaddress.
Own machine path, additionally
- A 64-bit Linux machine (x64 or arm64). The scripts were tried on Linux. The open-source Workers runtime (
workerd) also runs on macOS and Windows; those were not tried. - A folder for the data, outside the code folder (default
~/seops-data). - If the panel must be reachable from other machines: your own reverse proxy or tunnel with HTTPS.
Getting the code
git clone <the repository address you were given> seops-panel
cd seops-panel
pnpm install With a release archive: unpack it into an empty folder and run pnpm install there. One folder holds one install; use a second copy of the code for a second install.
Google OAuth client
People sign in to your install with their Google account through an OAuth client that you own. Only the basic profile is requested (openid email profile); the panel does not ask Google for access to Search Console or Analytics here.
- In Google Cloud Console, create a project (or use an existing one).
- Open Google Auth Platform (formerly "OAuth consent screen") and fill in the app name and support e-mail. Audience: Internal if everyone who signs in is in your Google Workspace organisation, otherwise External.
- For External: set the publishing status to In production. The three basic scopes need no Google verification. In Testing status only the test users you list can sign in.
- Under Clients, create an OAuth client of type Web application.
- Add the authorised redirect URI: your panel's address followed by
/auth/google/callback. The install scripts print the exact line, for examplehttps://seo.example.com/auth/google/callbackorhttp://localhost:8787/auth/google/callback. - Keep the client ID and client secret; the install script asks for them. You can also enter them later with
pnpm run install:secret GOOGLE_CLIENT_IDandpnpm run install:secret GOOGLE_CLIENT_SECRET.
Until both values are set, the panel shows a setup page that repeats these steps with your redirect URI.
Path A: your own Cloudflare account
pnpm run install:cloudflare The script goes through these steps and stops with a clear message if one fails:
- Checks Node, the code folder and that wrangler is signed in.
- Asks for the licence key and verifies it. An invalid key, or a key that does not cover this version, stops the install before anything is created.
- Asks for the Worker name, the database name and, optionally, your own domain.
- Creates the D1 database and a KV namespace (used for AI agent connections), or finds them if they exist.
- Writes the configuration to
.seops/wrangler.licence.jsonc. This file is generated and git-ignored. - Asks for the secrets: session key and encryption key (press Enter to generate), Google OAuth client ID and secret, the owner's e-mail address, the Google service account file, and the AI provider keys. Everything except the licence key can be skipped and set later.
- Builds the panel, applies the database migrations and deploys the Worker with its secrets.
- Prints the panel's address, the redirect URI for your Google OAuth client and the next steps.
Notes
- The encryption key (
DATA_KEY) encrypts the site keys and AI keys you save in the panel. When the script generates it, it shows the value once. Store it in your password manager: Cloudflare never shows a secret again, and you need the key if you move the database. - Running the script again is safe. It reads
.seops/install.jsonand your account, keeps what exists and continues. Use it after a failed step, to add your own domain, or to enter secrets you skipped. pnpm run install:cloudflare -- --dry-runchanges nothing on Cloudflare: it builds, bundles the Worker, applies the migrations to a throwaway local database and lists what a real run would do.- Unattended runs:
--yestakes every default;--answers file.jsonreads answers by name (WORKER,DATABASE,DOMAIN,SEOPS_LICENCE_KEY,GOOGLE_CLIENT_ID, …). - Extra bindings (your own R2 bucket for site backups, Analytics Engine, e-mail sending) go in
.seops/wrangler.extra.json; the script merges it into the generated configuration.
Path B: your own machine
pnpm run install:local
pnpm run start:local How it runs: the same Worker running on the open-source Workers runtime (workerd, started through wrangler dev --local) as a single process on your machine. The database is a SQLite file in the data folder you choose. Nothing is sent to Cloudflare and no Cloudflare account is needed.
Limits: Cloudflare's network. There is no automatic restart, no replication and no backup unless you set them up. The runtime is the one Cloudflare publishes for local development; treat this install as a self-managed server.
pnpm run install:local asks for the licence key, the data folder, the local port (default 8787), the address people will open, and the same secrets as the Cloudflare path. It writes the secrets to .seops/.dev.vars (readable only by your user), builds the panel and creates the database. Running it again keeps what exists.
pnpm run start:local starts three things in one process tree:
- The panel on the runtime, listening on an inner port (your port + 1) on the loopback address only.
- A guard on your port that forwards requests to the panel and refuses the runtime's development endpoints (
/cdn-cgi/…,/__scheduled). Always expose the panel through this port, never the inner one. - A scheduler. The local runtime does not fire cron triggers by itself, so the scheduler calls the panel's scheduled jobs on the same cron expressions as on Cloudflare (UTC), minute by minute. Each run is one log line:
[scheduler] 2026-11-11T16:55:01Z fired "*/5 * * * *" → 200 (104 ms). Runs missed while the process was stopped are not repeated.
Keeping it running and reachable
- Run
pnpm run start:localunder your service manager (systemd, launchd, pm2) so it restarts after a reboot. Stop it with Ctrl+C or a TERM signal. - For access from outside, put a reverse proxy or tunnel with HTTPS in front of your port and give its address during install (for example
https://seo.example.com). The panel then builds sign-in redirects and cookies for that address, and must be opened at that address. - The runtime reloads the panel when files in the code folder change. Stop the panel before you change the code.
- Changing a secret takes effect after a restart.
First sign-in and your team
- The first Google account that signs in becomes the owner of the install. If you gave an owner e-mail address during install, only that address can take this step. Sign in right after installing.
- Everyone else needs an invitation: the owner adds their e-mail address on the Team page, and they sign in with that Google account. An account without an invitation is refused.
- A licence install does not send e-mail, so invitations are not mailed: tell the person they were invited.
- With an agency licence the owner can open further workspaces for client sites (
POST /api/licence/workspaces; the panel screen follows). A single licence refuses a second workspace.
Connections and keys
Set any of these during install or later with pnpm run install:secret NAME. On Cloudflare the value becomes a Worker secret; on your own machine it is written to .seops/.dev.vars and needs a restart.
| Name | What it enables |
|---|---|
GSC_SERVICE_ACCOUNT_JSON | Search Console and Google Analytics data. Create a service account in your Google Cloud project, enable the Search Console API, the Google Analytics Data API and the Google Analytics Admin API, download a JSON key and give its path. Then add the service account's e-mail address as a user on each Search Console property and each GA4 property. |
CLOUDFLARE_API_TOKEN | Cloudflare data for the sites in the owner's workspace (security events, AI crawlers, usage). Create a token from the "Read all resources" template. Sites in agency workspaces use the token saved for each site in the panel. |
OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, PERPLEXITY_API_KEY | AI visibility answers from ChatGPT, Claude, Gemini and Perplexity, and AI question generation. Each assistant needs its own provider key. When a key is missing, the feature names the missing key. |
AI_GATEWAY_ACCOUNT_ID, AI_GATEWAY_ID, AI_GATEWAY_TOKEN | Optional. Sends AI requests through your own Cloudflare AI Gateway. Without these, requests go straight to each provider. |
PAGESPEED_API_KEY | Optional. Your own PageSpeed Insights quota for page speed measurements. |
BING_WEBMASTER_API_KEY, YANDEX_WEBMASTER_TOKEN | Optional. Bing and Yandex webmaster data for the owner's workspace. |
ALLOWED_EMAILS | The owner's e-mail address: reserves the first sign-in for it. |
SEOPS_LICENCE_KEY | The licence key. A new key (after a renewal) is verified before it replaces the old one. |
The owner can also save AI provider keys in the database, encrypted with DATA_KEY (PUT /api/licence/ai-keys/<provider>; the panel screen follows). A saved key takes precedence over the secret of the same provider.
Licence key and update period
The licence key is one line that starts with seops-lic.v1. The panel verifies the licence key inside itself. It never contacts seops.app for it.
The licence key carries an "updates until" date. Every version released on or before that date can be installed. After it, the installed panel keeps running; only versions released later cannot be installed until the update period is renewed.
Renewing the update period gives you a new licence key with a later date. Enter it with pnpm run install:secret SEOPS_LICENCE_KEY, then run the update. A new key is verified before it replaces the old one.
An issued key cannot be switched off remotely: the check is offline by design, so your install does not depend on seops.app being reachable.
Update
pnpm run update The script works in this order, and changes nothing before the backup:
- Finds the new version. In a git checkout it fetches the remote and reads the new version's release date. Without git, replace the code in the folder with the new release (keep
.seops/) and run the script with--no-fetch; the code in the folder is then the new version. - Checks the licence. If the new version was released after the licence's "updates until" date, the script stops and says which date the licence covers and how to renew. Nothing is changed; the installed version keeps running.
- Backs up the database (see "Backup and restore"). On your own machine the panel must be stopped first; the script says so and stops if it is running.
- Takes the new code (git), installs dependencies if they changed, and builds the panel.
- Applies the database migrations.
- Deploys (Cloudflare), or tells you to start the panel (own machine).
pnpm run update -- --check does steps 1 and 2 only.
If a step after the backup fails, the script prints how to go back: the command that returns the code to the installed version and the restore command for the backup it just took.
Backup and restore
pnpm run backup - Own machine: writes a consistent snapshot of the database (
seops-db-<time>.sqlite) next to the data folder (<data folder>-backups) and checks its integrity. This is safe while the panel runs. When the panel is stopped, the whole data folder is copied as well. The newest 14 backups are kept (--keep <n>);--out <folder>writes elsewhere. - Cloudflare: writes an SQL export of the D1 database to
.seops/backups/. Cloudflare also keeps point-in-time history of the database (D1 Time Travel). - Schedule the command (cron, a systemd timer) and copy the files to another disk or machine. A backup next to the data does not survive a disk failure.
- Also keep safe:
.seops/.dev.vars(own machine) and theDATA_KEYvalue. WithoutDATA_KEY, saved site keys and AI keys cannot be read.
Restore on your own machine
Stop the panel, then:
pnpm run backup -- --restore <path to seops-db-….sqlite>
pnpm run start:local The current database is moved aside (<data folder>/v3/d1.before-restore-<time>), not deleted.
Restore on Cloudflare
Use D1 Time Travel to return the database to a moment before the problem:
pnpm exec wrangler d1 time-travel restore <database name> --timestamp <time> -c .seops/wrangler.licence.jsonc Or load the SQL export into a new database (wrangler d1 create, then wrangler d1 execute <new name> --remote --file <export>), put the new name and id in .seops/install.json (database, databaseId) and run pnpm run install:cloudflare.
Going back to the previous version
Return the code to the version that was installed (git reset --hard <commit the update printed>, or put the previous release's files back), restore the backup taken before the update, then deploy again with pnpm run install:cloudflare or start the panel with pnpm run start:local.
Single licence and agency licence
| Single licence | Agency licence | |
|---|---|---|
| Sites | One organisation's own sites. There is no limit on the number of sites. | The same, plus client sites. |
| Workspaces | One workspace. A second workspace is refused. | The owner can open separate workspaces for client sites. |
| Price | $749 | $1,499 |
Every new version for one year. Renewal for each following year is $499 for the licence and $1,499 for the agency licence; an installation that is not renewed keeps working without new versions.
The licence screen and its error codes
The panel shows only a licence screen, and its API answers 403 with a code, in three cases:
| Code | Meaning | What to do |
|---|---|---|
licence_missing | No licence key is set. | pnpm run install:secret SEOPS_LICENCE_KEY |
licence_invalid | The key is incomplete, or its signature cannot be verified by this version. | Enter the full key again (one line, starting with seops-lic.v1). |
licence_update_expired | This version was released after the licence's "updates until" date. | Go back to the previous version, or renew the update period. |
A related setup page (login_not_configured, 503) appears when the licence is valid but the Google OAuth client has not been entered.
Uninstall
Own machine
- Stop the panel.
- Take a last backup if you want to keep the data.
- Delete the data folder, its backups folder and the code folder.
Cloudflare
All commands run in the code folder:
pnpm run backup
pnpm exec wrangler delete -c .seops/wrangler.licence.jsonc
pnpm exec wrangler d1 delete <database name>
pnpm exec wrangler kv namespace delete --namespace-id <kvId from .seops/install.json> Then delete the OAuth client in Google Cloud and the provider keys you created for this install.
Support
Support is this guide and e-mail: contact@seops.app. seops does not perform the installation. When you write, include the script's output from the failing step and the code shown on the licence screen, and leave out keys and secrets.
Reference
Commands
| Command | What it does |
|---|---|
pnpm run install:cloudflare | Install on your Cloudflare account, or continue an install. --dry-run, --yes, --answers, --no-build. |
pnpm run install:local | Install on this machine, or continue an install. --yes, --answers, --no-build. |
pnpm run start:local | Start the panel, the guard and the scheduler. --no-scheduler, --scheduler-only, --once "<cron>". |
pnpm run install:secret NAME | Set one secret. --from-file <path>, --delete (own machine). |
pnpm run update | Update to a newer version. --check, --no-fetch, --no-build. |
pnpm run backup | Back up the database. --out, --keep, --restore <file> (own machine). |
Files in .seops/
These files are git-ignored. Back up the first three.
| File | Content |
|---|---|
install.json | What was installed: target, names, ids, address, data folder, installed release date. |
licence.key | A copy of the licence key, used by the update script. |
.dev.vars | Own machine only: the secrets. |
wrangler.licence.jsonc | The generated configuration. Rewritten on every run. |
wrangler.extra.json | Optional, yours: extra bindings merged into the configuration. |
backups/ | Cloudflare installs: SQL exports. |