GenClass is open source.Star on GitHub

Security overview. What GenClass runs, sends and keeps.

A reference for a security or privacy review: where each part runs, every field the runtime sends by default, who receives data, how long it is kept, who can see it, and what is not available yet.

As of 5 December 2026. This page describes runtime 0.3.0 (@genclass/runtime) and the hosted collector at genclass.dev. It is a summary, not a contract: the terms and the privacy policy govern.

At a glance

The short answers.

Default mode
ObserveReports what it finds and changes nothing in the app. Guard is opt-in.
Where decisions run
In the visitor's browserA local model in a Web Worker. No inference server and no API key.
Sent by default
Decisions and countsNo page text, cookies, headers or bodies; no IP address or user agent is stored. Setup with npx genclass also turns on interaction analytics.
To send nothing
telemetry: falseNothing then reaches genclass.dev. The runtime works the same.
Hosting
CloudflareWorkers, D1 and R2. No storage region is configured or promised.
Retention
90 days for raw batchesDashboard data is kept up to 1 year on Solo Dev, Startup and Enterprise. Recordings 30 days.
Sign-in
Google, GitHub, password, passkeysSign-in through your company's identity provider (SAML or OIDC) is not available yet.
Model training
Diagnostics train GenClass's modelAnalytics, recordings and errors from Sentry SDKs never do.
License
Apache-2.0One runtime dependency: onnxruntime-web (MIT).
Certifications
None yetNo SOC 2 report, ISO 27001 certificate, DPA or SLA.
What runs where

Six parts, and who operates each.

What runs where
PartWhere it runsWhat it reachesOperated by
RuntimeIn your pages, in each visitor's browser. It observes fetch, XHR, WebSocket, EventSource, user actions, timers and app state.The collector at genclass.dev while diagnostics are on. By default, nothing from local or private hosts.You: it ships in your app.
ModelA module Web Worker in the same browser. Files from jsDelivr at a pinned version, or from your own origin.Nothing: the model graph has no network or DOM access. Each file is checked against its size and SHA-256 before use.You. jsDelivr serves the files unless you do.
Collector and dashboardCloudflare Workers, with D1 (accounts, apps, dashboard counts) and R2 (raw batches, export copies, recordings).Receives batches. Sends email through Cloudflare Email Sending, only from report@genclass.dev, and data to the services listed below.GenClass, Inc.
The genclass commandThe developer's machine.genclass.dev, with the developer's sign-in. Project files stay on the machine.The developer.
@genclass/mcpThe developer's machine, for their coding agent. It listens on 127.0.0.1 only.Nothing off the machine, unless the developer sets GENCLASS_DASHBOARD or GENCLASS_REPORT, or asks for the hosted page check.The developer.
GitHub AppThe collector, called by GitHub's webhooks (genclass-dev[bot]).Pull requests and their comments, the list of files and lines a pull request changes, workflow runs and their artifacts, and one settings file. No permission to read the rest of the repository.GenClass, Inc.

The collector and dashboards are open source and can run in your own Cloudflare account instead (your own collector).

What is sent by default

Decisions and counts, field by field.

Diagnostics are on by default in a browser on a public host. They are off on localhost, *.local, *.test, *.internal, private IP ranges and file: unless the app sets telemetry: true. While they are on, the console says so once per page.

Fields sent by default
FieldWhat it holds
Session idA random id of 24 hex characters, new on every page load and never stored.
Versions and settingsThe runtime and model versions, the mode and the runtime's own settings, such as sampling.
Device classWhether WebGPU is available, CPU cores, the browser's coarse device memory, connection type and Save-Data.
Host and pathThe app's hostname and the page path, with no query or fragment. Id-like segments and segments holding an @ become :id. Other words in a path, such as a username, are sent as they are.
DecisionsFor each decision: trigger, diagnosis, confidence, action, gate, outcome, latency and counts. Every detection is sent. Routine decisions are sampled, 1 in 4 and at most 200 per page load.
Model statusWhether the model loaded and how, and model errors: a code and a message of up to 200 characters, with addresses replaced.
App tokenThe app's public gc_ token, when the app set one.
Protected function namesWith a token, the name a developer gave a function wrapped in protect(). A name that looks like data (an email address, a URL, 4 or more digits in a row, a long hex id) is sent as [redacted].
Visual check countsWhere the measured visual checks run: counts per check and page. Never a selector, text, colour or address.
Added by the collectorThe time the batch arrived and a two-letter country code from Cloudflare.

Batches are sent as text/plain to genclass.dev/api/v1/events with no credentials and no referrer, about every 10 seconds while something happened. Every event and field: the telemetry reference.

Never sent, in any setting:

Secret inputs

Typed values of password, payment (cc-*), one-time-code and secret-named fields. The runtime never records them.

Cookies

The runtime never reads or writes document.cookie and sets no cookies.

Headers and bodies

No headers. No request or response bodies, except that with situation text on, a summary of up to 60 characters of a request body or of a WebSocket or SSE message is sent. The runtime never changes a request's URL, method, headers or body.

Storage

No contents of the browser's storage.

IP address and user agent

The collector stores neither. The IP address is used only as a hashed rate-limit key. Request logging (Logpush and Workers observability) is off.

Use: GenClass evaluates and trains its model on the diagnostics, and shows an app's diagnostics on that app's dashboard. They are not sold or used for advertising. For an app whose owner asked for a custom model trained by GenClass, that app's data trains a model that only its account receives.

Opt-in data

Four kinds of data beyond the default diagnostics.

Situation text

What it sendsThe text the model read, after redaction: request names with query strings, route changes and the page title, the start of error messages (100 characters), of text typed into ordinary inputs (40) and of store values (48), and a summary of request bodies and of WebSocket and SSE messages (60).

Control and limitsOff by default since 0.2.1. On only with telemetry: { include: { situation: true } }. Only values whose field or parameter name looks secret are redacted, so keep it off where pages show personal data.

Interaction analytics

What it sendsPer page view: route, engaged time, scroll milestones, and clicks, rage clicks and dead clicks per element, named from markup, never by its text. Per visit: a random visit id, the referring host, utm values, device, browser and OS family, and whether this browser visited before. The id and that flag are kept in localStorage: the id is replaced after 30 minutes without activity, and both are removed when analytics are stopped.

Control and limitsOff in the runtime. The setup of npx genclass turns them on unless run with --no-analytics, and the command's analytics off turns them off. runtime.analytics.start() starts them once a visitor consents. The collector keeps only a hash of the visit id and never trains on visits.

Live Watch (beta)

What it sendsWhat the screen shows, as structure: elements, text and styles, the address without its query, changes, the pointer, clicks, scrolling and window size; paint timings; each error's name, the start of its message, and its file and line. With each recording the collector keeps the visitor's country and city, from Cloudflare, never the IP address.

Control and limitsOff by default; needs watch: true and the app's token. Typed values, email addresses and runs of 9 or more digits become dots; password, card and one-time-code fields are never read. data-genclass-mask and data-genclass-block hide more. No visits from the EU, the EEA, the UK, Switzerland or Quebec, and no crawlers or automated browsers. Never forwarded or used for training.

Errors from a Sentry SDK

What it sendsFor apps with no web page: the error type, a message of up to 200 characters, function and file, up to 30 stack lines, level, and platform, SDK, release and environment names.

Control and limitsOnly when a developer points a Sentry SDK at genclass.dev. Variables, source lines, breadcrumbs, user and request data and tags are dropped; addresses, email addresses and secret-named settings are removed where recognised. Kept 90 days after that kind of error was last seen.

Review Live Watch as session replay. runtime.watch.start() and stop() let an app record only after consent.

Sending nothing

Every way to send nothing to GenClass or a CDN.

In the app's code

Howtelemetry: false, or the same through window.GENCLASS_CONFIG, <meta name="genclass" content="telemetry=off"> or data-telemetry="off" on the script tag. Nothing is sent and no console notice appears.

At install

How--no-telemetry on init, the runtime's or the genclass command's. It writes the opt-out, leaves out the app token and makes no request of its own.

For one page load

How?genclass=no-telemetry in the address. ?genclass=off installs nothing at all.

In one browser

HowlocalStorage genclass.telemetry=off, kept per origin.

Global Privacy Control

HowHonoured for every visitor, wherever they are: nothing from that browser reaches GenClass.

Your own collector

Howtelemetry: { endpoint } sends the same batches to the open-source collector deployed in your own Cloudflare account. Nothing reaches GenClass.

Your own model origin

HowServe the model files yourself (fetch-model, then model: { baseUrl }). With a bundler, nothing else loads from a CDN.

Each telemetry opt-out also stops interaction analytics and Live Watch. Sinks you configure, such as a webhook to your own endpoint, are not stopped by them. With telemetry off you give up the dashboard, export, forwarding, analytics and a custom model trained by GenClass.

Storage and retention

How long each kind of data is kept.

Retention
Data, and whereKeptRemoved earlier
Raw event batches (R2)90 days after arrival, by a lifecycle rule.Not by deleting an app or account. To ask for deletion sooner, write to mehar@genclass.dev with the hostname.
Dashboard data (D1)90 days on Free. Up to 1 year on Solo Dev, Startup and Enterprise. Hourly detail 48 hours.At once with the app or account. Data past 90 days goes 30 days after a paid period ends, or when an Enterprise agreement ends.
Export copy of each batch (R2)Up to 1 year, on plans with more than 90 days of history.As for dashboard data.
Visits, from analytics (D1)90 days after the visit started.With the app.
Live Watch recordings (R2)30 days, on every plan.The owner deletes any recording at once. Deleting the app or account deletes all of them.
Errors from Sentry SDKs (D1)90 days after that kind of error was last seen.With the app or account.
Accounts and app records (D1)Until deleted.Self-serve, below.
GitHub App pull request records (D1)30 days after the pull request closes, 180 days at most.At once when the app is uninstalled or a repository removed.
Usage counts for AI features (D1)3 days.Not applicable.

Retention is fixed per plan; it cannot be set per app. A plan decides what the dashboard shows, never what is collected.

Delete an app

What happensThe owner, in Project Settings. Its stats, visits, recordings, agent reports, integrations and export copies go at once, and its key stops counting. An app with no account: write to mehar@genclass.dev with its token.

Delete the account

What happensOn the account page. The account, password, passkeys and sessions; the apps created in it with their stats; forwarding settings, export keys and export copies; recordings of your own dashboard visits. A paid plan is cancelled at once. Apps that still have a private link leave the account and keep working through it.

What stays

What happensRaw batches until their 90-day expiry, including batches that keep arriving from an app still running the runtime with its token; and Stripe's own payment records.

Access

Who can sign in, and what each person can see.

Sign-in methods

How it works todayGoogle (OpenID Connect with PKCE), GitHub (no scope requested), an email and password, and passkeys (WebAuthn, user verification required). Google and GitHub tokens are used once and not kept.

Second step

How it works todayOnce an account has a passkey, every password, Google or GitHub sign-in also needs it. Each person turns it on by adding a passkey to their own account; it cannot be required for a team. There are no authenticator-app codes.

Passwords

How it works todayPBKDF2-HMAC-SHA256 with 600,000 iterations, run as six chained calls of 100,000 (the most one Cloudflare Workers call allows), and a random 16-byte salt per password. Rules follow NIST SP 800-63B. Wrong guesses slow down, up to 15 minutes, with no lockout.

Password reset

How it works todayNo emailed reset link. A person resets it after you write from your sign-in address. Typed email addresses are not verified.

Sessions

How it works todayA __Host- cookie (HttpOnly, Secure, SameSite=Lax), 30 days; a terminal token, 90 days. Stored as hashes, listed on the account page, revocable. State-changing requests must come from genclass.dev's origin.

Terminal sessions

How it works todayCan do what its approval page lists: list and create apps, read dashboards and recordings as text, change where alerts go and the private link, and make invite links. Cannot change how the account signs in, pay, remove people, or delete an app or the account. The token is saved with file mode 600 in ~/.config/genclass/; on Windows no file mode is set.

Team

How it works todayOne owner and read-only members. Members join by a single-use invite link, valid 7 days; no email is sent. A member reads the owner's dashboards and nothing else: no deleting or renaming apps, links, forwarding, export, billing or invites. Seats: 1 on Free and Solo Dev, 5 to 200 on Startup, any number on Enterprise.

Private dashboard links

How it works todayAbout 190 bits, shown once; only a hash is stored. A link can be locked with a password or a passkey. Dashboard pages send no-store, no-referrer and a strict nonce-based Content-Security-Policy.

App tokens

How it works todayPublic by design: a token ships in the app's pages and grants no read access. Anyone who reads one can post made-up data to that app's dashboard, so its numbers cannot serve as an audit record.

GenClass staff

How it works todayGenClass maintainers can access stored data. genclass.dev runs GenClass on its own pages, this one included, with Live Watch on, as the privacy policy describes. People at GenClass can open recordings of those visits for 30 days, and recordings of your dashboard visits are linked to your account. They show app names, page paths and problem lists; keys, agent links and setup commands are blanked. Sign-in, billing and private-link pages are not recorded.

Services that receive data

Who else receives data, what, and why.

Services that receive data
ServiceWhat it receivesWhyWhen
CloudflareEverything the collector receives and stores: batches, accounts, dashboard data, recordings, and the email it sends.Hosts the collector (Workers), its storage (R2, D1), Live Watch rooms (Durable Objects, which store nothing) and email. It processes the data on GenClass's behalf.Always, for the hosted service. genclass.dev also uses Cloudflare's cookieless Web Analytics.
StripeThe account's email, if it has one, and the GenClass account id. Card details are typed into Stripe's own checkout and never reach GenClass.Payments, invoices and receipts. GenClass keeps Stripe ids, status, dates, plan and seats, and for a Startup purchase a record with the buyer's email so a person can start work on the custom model.When you buy or manage a plan.
GoogleThe sign-in request, and your browser's requests for font files on genclass.dev and its dashboards.Sign-in with Google; Google Fonts.When you choose Google sign-in; when those pages load.
GitHubThe sign-in request; the checks and comments the GitHub App writes on your pull requests; one request from the genclass command for your repository's address.Sign-in with GitHub; pull request reviews.When you use them.
OpenAIgenclass ask: the question and the app's dashboard numbers. genclass suggest: the failed checks and six facts about the app. Cluks, the dashboard's helper: the conversation and an account summary with masked email addresses. The email report: dashboard numbers and problem titles. A Contact sales request: what you typed in the form, so a model can draft our reply, which a person reads before it is sent. In full.A language model writes the answer, the plan, the report's summary or a draft reply. For ask, suggest, Cluks and the email report, GenClass does not store or log what it sends; OpenAI processes it under its API terms. No source code.When asked; suggest --no-model sends no digest. The email report is daily by default for an account with an email address. For a Contact sales request, only when we have a model draft the reply.
jsDelivrRequests from each visitor's browser for the public model and ONNX Runtime files, and with the script tag the runtime's own files. No app data in the requests.Serves the files.Once per browser, then cached, unless you serve the files yourself.
Destinations you chooseSentry, PostHog, Datadog, Slack or your webhook: per new likely detection, the diagnosis, confidence, trigger, route, versions, time and a dashboard link. Never page text.Forwarding, under your own terms with them. Their keys are stored encrypted (AES-GCM).Only when the account turns it on; at most 60 records per app an hour.

There is no published subprocessor list or data processing agreement yet; this table and the privacy policy are what exists. The page check at genclass.dev/scan is a separate service, described in the privacy policy.

Open source and supply chain

Read the code, pin the version.

License

Apache-2.0: the runtime, the model package, the MCP server, and the collector and dashboards, with LICENSE and NOTICE at the repository root. The page check and the website itself are not open source.

Dependencies

The runtime has one: onnxruntime-web (Microsoft, MIT), bundled into the script-tag build. The MCP server has none.

Script tag

Pin the exact version and its SRI (integrity) hash; the runtime's init writes both for plain HTML pages. SRI covers that one file. The chunks, worker and wasm it loads later are pinned to the same version, but the browser does not check them by hash.

Model files

A pinned npm version, checked against the model card's size and SHA-256 before use. The wasm of onnxruntime-web is checked by version only. Serve both from your own origin to remove the CDN.

Releases

Versions published by the release workflow carry npm provenance. The security policy shows how to rebuild any published tarball and compare it.

Versions

GenClass is before 1.0. Security fixes go into the newest release (0.3.0) and the newest 0.2.x release (0.2.3).

Threat model

Public, with the residual risks and a recommended production setup: observe mode, protectPreset("payments", "auth") to keep payment and sign-in endpoints observe-only, an audit sink, a self-hosted model, and telemetry: false if your review requires it. Threat model, interception surface.

Reporting a vulnerability

Privately, by email or on GitHub.

Where

mehar@genclass.dev, or a private vulnerability report on the GitHub repository. Not in public issues.

Targets

Acknowledgement within 3 business days, a first assessment within 10, and a fix or mitigation for high and critical issues normally within 30 days. Disclosure is coordinated with the reporter.

Scope

The runtime, the command line, the model loader, the telemetry client, the collector and the GitHub App.

Bug bounty

None at this time.

Advisories

Published in the repository. The full policy is the security policy.

Documents

What to read with this page.

Privacy policy

What it coversgenclass.dev, accounts, payments, the page check and the runtime's diagnostics.

PRIVACY.md

What it coversThe runtime's privacy policy, with the collector, the GitHub App, the genclass command and the AI features in detail.

Terms

What it coversThe collector and the services on genclass.dev, retention, and no warranty.

Telemetry reference

What it coversEvery event and field the runtime sends, and every opt-out.

Interception surface

What it coversEvery browser API the runtime wraps, what each mode may change, and what it never does.

Open source

What it coversWhat leaves your network, how to verify it, and the collector in your own Cloudflare account.

Not available yet

What GenClass does not offer today.

Ask us about any of these.

SSO through your identity provider (SAML or OIDC)

What exists insteadGoogle, GitHub, an email and password, and passkeys. Tell us which identity provider you use.

SCIM or directory sync

What exists insteadSingle-use invite links. The owner removes members, and a member can leave.

Roles

What exists insteadOne owner per account, and members who read dashboards only.

MFA required for a team

What exists insteadEach person can add a passkey, which then guards every sign-in to their account.

Audit log of account actions

What exists insteadSessions and passkeys with their last use on the account page, new sign-ins in the email report, and rt.audit() in the browser for every runtime decision and action.

Data processing agreement

What exists insteadThe privacy policies. If you cannot name a third-party recipient, use telemetry: false or your own collector.

SOC 2 report or ISO 27001 certificate

What exists insteadThe source code, the threat model, this page, and answers to your questionnaire.

Data residency or a choice of region

What exists insteadNo region is configured. Your own collector in your own Cloudflare account.

SLA or support response times

What exists insteadNone; the terms provide the services without warranty. If the model or the collector cannot be reached, the runtime observes without deciding or stops sending.

Penetration test report

What exists insteadThe public threat model and the vulnerability policy above.

Published subprocessor list

What exists insteadThe table of services that receive data above.

Breach notice, backups, encryption at rest

What exists insteadNo written commitment is published. Forwarding settings are stored encrypted (AES-GCM). Passwords, session secrets, private links and export keys are stored only as hashes.

Liability, governing law and other contract terms

What exists insteadThe published terms. Enterprise is agreed in writing.

Talk to sales

Tell us about your team and what you need. A person writes back, usually within a day.