Docs
Install with an AI agent
Last reviewed
Copy the install prompt from the domain's Setup page and paste it into your AI coding agent, such as Claude Code, Cursor or Copilot. Then add the token yourself as a secret named PREBAKED_TOKEN.
Steps
- Open the domain in the dashboard and go to Setup.
- Copy the prompt under Install with your AI agent.
- Paste it into your agent in the project that serves your site.
- The agent tells you what hosting it found before it changes anything. Check that it is the server that returns your HTML pages, not only your API.
- Add the token as a secret named
PREBAKED_TOKENin your hosting provider's settings when the agent asks. - Deploy, then check that it works.
What the prompt tells the agent
- Find the server that serves the site's HTML, and report it before changing anything.
- Pick the matching integration guide on prebaked.io and follow it exactly.
- Add the fallback hook and the extra AI crawler user agents for a Node server.
- Set
PREBAKED_SERVICE_URL=https://service.prebaked.io/and read the token fromPREBAKED_TOKEN. - Never write the token into code, committed files, logs or commit messages.
- Do not change any page content.
- Stop and recommend the Cloudflare install if the site is a static deployment with no server code.
FAQ
Does the prompt contain my token?
No. The prompt names the environment variable, and the agent asks you to add the token as a secret yourself.
Which agents can use the prompt?
Any coding agent that can read and change your project, such as Claude Code, Cursor or Copilot.
The agent says my site is a static deployment. What now?
A static deployment runs no server code. Put Cloudflare in front of it and use the Cloudflare one-click install.
Will the agent change my pages?
The prompt tells it not to change any page content. It only adds the integration in front of your site.