Install: deploy an edge-response kit on your own Cloudflare account
Available at first release. The kits are in development. Nothing has been released or deployed, and no repository is published yet. The steps below describe the intended shape so that you can plan. Commands and links are added when the first release is published.
Each kit installs on its own, on your own Cloudflare account. Nothing is installed on anyone else's account, and the kits do not phone home.
What you will need
- A Cloudflare account, and a person with the right to create Workers, databases and API tokens on it.
- Node 24 or later, and the package manager the kit's README names.
- Cloudflare's command line tool,
cf, signed in to your account.
The steps
Every step is available at first release.
- Choose a kit. Ingest is the usual first kit.
- Install and test locally. The kit installs, type-checks, tests and builds with no account needed.
- Create the tokens it needs. Each README lists the least privilege. Secrets are supplied through your secrets manager, never typed into a command line.
- Deploy. Deploying changes your account, so a person runs it, on purpose. How depends on the kit, below.
- Protect the interface. The kit's interface must sit behind Cloudflare Access. This is a second step that you take after the Worker exists, because the Worker needs your Access team domain and application audience before it will accept any person.
- Join peers when you want to. A join is a binding, added one at a time.
Each kit
| Kit | How to deploy | Second step |
|---|---|---|
| Ingest | The kit's install script and Alchemy stack (see Ingest) | Access in front of /mcp; mint a source key and give it to the Logpush job. The Logpush entry is protected by that key. |
| Detect | The kit's install script and Alchemy stack (see Detect) | Access in front of /v1, then the roles in its configuration. |
| Asset map | The Deploy to Cloudflare button, or its Alchemy stack | Set a read-only token and the ceilings that decide what a caller may read; Access in front of /v1. |
| Enrichment | The Deploy to Cloudflare button, or its Alchemy stack | Access in front of /v1; create the AI Gateway if you want the agent; resume the agent switch. |
| Respond | The Deploy to Cloudflare button, or its Alchemy stack | Access in front of /v1 and /approvals, a WAF-only token, then release the switches. |
An Alchemy stack is a file in each kit that declares its Worker and resources in code, and a person runs it against the account. The Deploy to Cloudflare button is Cloudflare's way of creating a Worker from a ready-made configuration in one click. It is planned for the Asset map, Respond and Enrichment, and the export tool writes the generated configuration it needs, but nothing is published yet; each of those kits' README has a "Deploy to Cloudflare button" section with the second step. The repository address behind each button is a placeholder until the first release. Ingest and Detect install by script. Whichever way you choose, protecting the interface with Access is a separate step.
Install Ingest and Detect by script
Ingest and Detect each have an install planner, scripts/install.ts, in the kit folder. It is read-only: it checks Node 24 or later, pnpm and that your Cloudflare account id and API token look right, reads the kit's list of bindings and prints the exact steps, in order, for you to run. It deploys nothing, calls no Cloudflare API and writes no file. It exits with 0 when every prerequisite is met, 1 when one is missing (the plan is still printed) and 2 when an argument is refused. The workspace pins Cloudflare's cf tool at version 1.0.0-beta.28, so its commands are run as pnpm exec cf ....
The account id and token are read from the environment variables CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN. The script never prints the token and refuses one given as an argument, because an argument lands in shell history and in the process list. Secrets are entered at a prompt without echo (read -sx NAME in fish, read -rs NAME; export NAME in bash or zsh), never typed into a command.
Ingest
node scripts/install.ts --stage prod
The plan is: pnpm install; vp run ready; set the secrets (the stack requires the catalog token EDGE_RESPONSE_CATALOG_TOKEN, which the two storage sinks use; the rest are optional); deploy the stack with pnpm exec alchemy plan --stage prod and pnpm exec alchemy deploy --stage prod; mint a source key and store its digest with pnpm exec cf d1 query <database-id> --sql ...; create the Logpush job; put Access in front of /mcp (and /v1/batch if you turn on that entry) and deploy again; then check /health. The Logpush job uses the dataset firewall_events, sends to the Worker's /v1/logpush/firewall_events address, uploads at most 5,000,000 bytes a batch, and carries the source key as a header read from a file, never typed or shown. A Logpush job listing prints each job's destination, and the destination holds that header, so filter any listing before you show or keep it.
Detect
node scripts/install.ts --stage prod
The plan is: pnpm install; vp run ready; set the optional secret and setting for the hunts; deploy the stack; put Access in front of /v1; create the operator and administrator groups in your identity provider (the planner names the groups the configuration expects); set the Access team domain and application audience; deploy again; then check /health. The plan also prints which stack owns each queue, below.
Queues between kits
A queue between kits is created only by the stack of the kit that reads from it, because the Alchemy version in use cannot adopt a queue that already exists. Detect's stack creates edge-response-records-tap. Ingest only binds to it by name, when you set EDGE_RESPONSE_RECORDS_TAP=1, so install Detect first. Detect binds to Enrichment's edge-response-signals queue only when you set EDGE_RESPONSE_SIGNALS_QUEUE=1, so Enrichment goes before Detect in that case. Either kit installed alone declares no peer queue. Looking the queue up in the peer's stack (Queues.Queue.ref) when the peer was deployed by another stack is unproven on a real account; it is an owner step on the release checklist.
Before you rely on a kit
Check that its status on this site is no longer "in development", read its security policy, and leave Respond's approval step on. In the first release a person approves every block, and there is no setting that turns that off. Each kit's stop switch starts stopped, so nothing acts until an administrator has released it.