Every host and framework

Set up Constile on Cloudflare

Constile's gate runs in front of your pages. An AI agent fetching a page for a person gets an offer; people, search engines, and subscribers get your site as they do today.
Before you start
Sign up and add your site. Its page shows the site ID and secret these steps use, checks the install, and has Test my site. Rather have our team set it up with you? Select Get help installing on that page.
  1. Add your siteSign up, then add your site's domain. Its DNS must be on Cloudflare.
  2. Create a Cloudflare API tokenOn your site's page, select Create the token in Cloudflare. Cloudflare opens with the permissions the install needs filled in: edit Workers scripts and routes, and read the zone. Then create the token and copy it.
  3. Paste the API token on your site's pageWe use the token once, to deploy the gate as a Worker on your domain and add its routes, and never store it. You can delete it in Cloudflare afterward. To deploy it yourself with Wrangler instead, your site's page gives the commands.
  4. Check the installSelect Check install on your site's page, then Test my site to see what a person, a search crawler, and an AI agent each get.

Turn it off

Fastest, from your dashboard: once the gate is installed, select Pause offers under Manage on your site's page. The network stops making offers, and the gate passes every request through within a minute. Nothing changes on your server.On your site: In Cloudflare, go to Workers & Pages, open the gate's Worker (its name starts with constile-gate-), and under Settings > Variables and Secrets add CONSTILE_DISABLED with the value 1, then deploy. It takes a few seconds.To take it out: Delete the Worker's routes under Settings > Domains & Routes, or delete the Worker.Off or paused, people, search crawlers, subscribers, and your other ads get your site exactly as before.