Skip to content

Admin guide

Open OG Keystone in the WordPress admin menu. Only a WordPress administrator (or an API key with the write scope) can change records; every change is written to the audit log with who did it.

Dashboard

The first screen. It reads the live records and never changes anything.

  • Period buttons: 7, 30 or 90 days (last N calendar days in UTC, today included). Figures that are not about a period are always "now". Refresh reads everything again.
  • Tiles: active licences, activations in use, licences expiring in 30 days, monthly recurring revenue (one line per currency; a yearly price counts as a twelfth), active subscriptions, active memberships, credits outstanding, downloads in the period. Each tile opens its screen.
  • Sections: revenue and growth (including churn, cancelled divided by active plus cancelled), licences, downloads (per day, top releases, recent refusals with the reason), memberships, credits, health (webhook success rate, release storage, versions) and recent activity.
  • A section that cannot be read shows its own error with Try again; the rest keeps working. The page shows no keys, secrets or webhook addresses.

Licences

Lists every key. Only the first and last four characters are shown; the full key is stored hashed.

  • Columns: key hint and product, tier, owner (email and order), status (Active, Sold, Inactive, Expired, Disabled), activations used / allowed, expiry or Lifetime.
  • Find: status tabs, search (masked key, owner, order), product filter.
  • Open a row for its details and activations.
  • Generate keys with the rules in Generator rules (key format).
  • Import CSV / Export CSV for bulk moves.
  • Disabling a licence stops activations and checks immediately. Deleting removes it permanently.

Products and tiers

A product is something you license; a tier sets its limits.

  1. New product: name, slug, whether it is licensed.
  2. Tiers: add or change each tier's activation limit, validity (days or lifetime), feature flags and a price note.
  3. Duplicate copies a product with its tiers. Archive hides one you no longer sell.
  4. A tier with allowances (below, Credits) cannot be removed without losing them.

The OG Nexus catalogue carries a Free tier (1 site, no expiry, not Pro) plus Starter, Standard, Professional, Standard Life, Professional Life, Developer Life and Agency Life for each licensed product.

Downloads

The library of files you hand out. Three views: Library, Access logs, Reports.

  • A download is a product; a version is a release. A product shows as Published when at least one version is published.
  • Add a version: pick a file already in the releases folder (or drop one on the page / Upload file), set minimum PHP and WordPress, write the changelog, tick Published. Size and checksum are worked out from the file. A version's number and date cannot change once it exists. New versions start as drafts; publishing needs a file.
  • Upload rules: allowed types are zip, gz, tgz, tar, bz2, xz, 7z, rar, pdf, dmg, pkg, exe, msi, apk, deb, rpm, iso, txt, json, csv, epub. A name with a script part (such as a.php.zip) is refused. An existing file is never overwritten (tool.zip becomes tool-2.zip). The size limit follows PHP, adjustable with the og_keystone_max_upload_bytes filter. Uploads are off while the releases folder can be fetched over the web.
  • Access: a customer needs a usable licence (and any membership the rules require) and gets a signed link that lasts five minutes. Only published versions are offered.
  • Access logs and Reports read the audit events: served downloads and refused links by licence. A window reads at most the newest 2,000 events and says so when it is cut.
  • Storage warning: a red banner means files can be fetched without a licence. Set OG_KEYSTONE_RELEASES_DIR outside the web root.

Storage (Settings > Storage)

  • WordPress server (default): files in a private folder; the plugin streams them to licensed customers.
  • Custom storage (S3-compatible): Amazon S3, Cloudflare R2, Backblaze B2, Wasabi, DigitalOcean Spaces, MinIO and similar. After the licence check the customer is redirected to a link that stops working after two minutes; the bucket address is never given out. Create a private bucket (block all public access) with an access key that can read, write, list and delete, then add OG_KEYSTONE_S3_KEY and OG_KEYSTONE_S3_SECRET to wp-config.php. Keys are never typed into the screen.
  • Google Drive and Dropbox are planned.

Memberships

Who has access, on which plan, for how long.

  • Figures: Active, Trial and comped, Paused, Ended. Tabs filter by status; search by account email. Sibling views: Plans and Restriction rules.
  • Grant a membership (any plan that is active), pause / resume, transfer to another account, edit, cancel.
  • Allowed moves (enforced on the server): pause only an active or trial membership; resume only a paused one (its end date moves on by the time spent paused); cancel anything not yet ended. Expired and cancelled are final; grant a new one instead.
  • One at a time: an account can hold only one non-ended membership per plan.
  • Expiry runs once a day: memberships whose end date has passed become expired.
  • Plans: slug, name, status, optional default length in days, and an optional product and tier. A plan that has ever had a membership can only be archived. An archived plan cannot be granted.

Restriction rules

A rule ties a target to a plan (optionally at a tier).

Type Matches Enforced by
download A release id (digits) Keystone: release links and downloads
product A product slug or id; covers all its releases Keystone: release links and downloads
feature Any key you choose, for example vault.sync Your code: ogk_user_can_access()
page Any key you choose, for example /members Your code or [ogk_restricted]
  • A target with no rule is open to everyone. With rules, an account passes only if it holds, right now, an active, trial or complimentary membership on at least one of the rules' plans. Paused, cancelled, expired, not-yet-started and past-end memberships never pass.
  • Tiers are not ranked: a Pro rule does not accept a Core plan. Add a rule for each plan you want to allow.
  • A denied download answers 403 membership_required and records release.download_denied.
  • A licence alone is not enough for a product with rules: the licence's owner email must also hold the membership.
  • [ogk_restricted] hides content in the page output; it does not protect files or REST data.

Subscriptions

Recurring billing for every subscriber. Keystone does not collect payments: the system that does records each renewal through the API.

  • Figures: MRR, Active, Past due, Churn (30 days). Tabs: All, Active, Trialing, Past due, Paused, Cancelled.
  • Pause works from Active or Trialing; Resume from Paused; Cancel from anything except Cancelled (final).
  • A paid renewal moves the next date on by a month or year; the same payment sent twice is recorded once. A subscription more than 24 hours late becomes Past due and returns to Active when the renewal is recorded.
  • No "skip a period", and no way to bring back a cancelled subscription.

Credits

One ledger for money (pence), points and ai (whole units).

  • Three totals, the ledger (when, customer, type, amount, balance after, reason, expiry) with filters and Export CSV, plus Balances and Tier allowances.
  • Adjust: add or remove credit with a reason (up to 200 characters). A removal larger than the balance is refused. Credit with an expiry is spent first; what remains is removed at that date with an expiry row.
  • Transfer: both ledger rows and one audit event are written in a single transaction. Transferred credit arrives without an expiry.
  • Tier allowances: each tier can give money, points and AI credits per calendar month or year. An hourly job removes expired credit then gives each owner of a current licence on the tier the allowance once per period (two licences on one tier still give it once). Allowance credit does not expire.
  • Each change locks the customer's balance first, so two changes at once cannot lose an update or go below zero.

Customers

A directory of people you sell to. Today it is limited: Keystone's customer is the email on a licence, membership or credit row, so deeper customer records and lifetime value depend on order data from the shop.

Webhooks

Send events to other systems. Each endpoint has its own signing secret and delivery history.

  1. New endpoint: name, URL (https only; private and loopback addresses are refused), events.
  2. Copy the signing secret when it is shown; it appears once. Rotate secret replaces it.
  3. Deliveries shows every attempt and its result. Finished deliveries are deleted after 30 days.

Events and signature checking are in the Reference.

Logs

The audit trail: licensing, billing, security and settings events with who did it and what changed. Filter by severity, section and date; search actions, actors and targets; Export CSV. Key material is removed from stored payloads. There is no retention limit yet; export and trim as needed.

Settings

Tab What it does
General Workspace name, support email, timezone, currency, alert switches.
Branding Name, tagline, accent colour, logo, footer.
Security Recovery encryption key status, trusted proxies (so the real visitor address is used), lockouts.
Storage Where release files live.
Customer portal What signed-in customers can see and do.
Connectors Run mode, connector credentials, ping, connector list.
Email templates The key email and other messages.
API keys Create, rotate and revoke. Scopes read and write. A token is shown once.

Trusted proxies matter: X-Forwarded-For is believed only from addresses you list. If a forwarding header arrives with no trusted proxy set, Settings shows a warning.