Wraps the response. A Cloudflare Worker sees the whole response, so this is the install that can do everything a coded site allows — and it works in front of any origin, including hosts that run no code of yours..
A Cloudflare Worker sees the whole response, so this is the install that can do everything a coded site allows — and it works in front of any origin, including hosts that run no code of yours.
worker.js — Your Worker, on a route covering the whole site.
import { reflexa } from './reflexa-agent.js'
const agent = reflexa({ token: REFLEXA_TOKEN })
export default {
fetch: (request, env, ctx) =>
agent.handle(request, ctx, () => fetch(request)).catch(() => fetch(request)),
}Get reflexa-agent.js and the site's token from the dashboard's Agent page, put the token in REFLEXA_TOKEN, deploy. Then press Check the connection in the dashboard: it fetches the domain proof from your real domain and the agent is live.
What it does not: an opening or FAQ in the page body and a new page live in your repository — connect it in the dashboard and the agent commits them, and any other change, as diffs you read first.
How installing the agent works, in general → · what the agent does and never does →
The product docs for this platform: Install Reflexa Agent on Cloudflare Workers · på svenska · plans and prices
No. Installing puts the agent in place and binds it to the site by its token; nothing is applied. Every switch is your click in the dashboard and every word it writes is shown to you first.
Remove the file and redeploy. Whatever was last switched on stops being served on the next request. Your checks and the agent's memory stay in your Reflexa account.
Counts every AI visit, page by page. Serves /llms.txt and the domain proof. Appends the AI-crawler groups to robots.txt. Puts the Organization JSON-LD into every page's head. Serves a title, description, canonical or robots meta you approve over the build. Answers a 301 you approve for a dead URL. Serves a stylesheet, a snippet, a replaced passage or response headers you approve — off again with undo. An opening or FAQ in the page body and a new page live in your repository — connect it in the dashboard and the agent commits them, and any other change, as diffs you read first.
Yes — it belongs to this one site and should live in an environment variable, never in a file you commit. It grants nothing beyond this site, and the domain proof refuses it from any other host.
The 23 checks run from outside before anything is installed — you see what the agent would do before it does it.