Host OpenSEO on Cloudflare for internet-facing self-hosting across multiple devices or with your team. It works on Cloudflare's free plan.
This doc covers initial setup with the Deploy to Cloudflare button. Related guides:
- Manual deploy with Wrangler: use this if the deploy button fails or you want full control over resources.
- Operations: connect the MCP server, update to the latest version, add teammates, telemetry.
Click the deploy button, there are lots of fields on the deploy form, but you only need to do the below steps.
- Connect your Git provider (GitHub/GitLab).
- Leave the resource naming fields as default unless you have a reason to change them.
- Click
Create and Deploy. - Wait 1-2 minutes for deployment to finish.
If deploy fails with Cannot provision a KV Namespace with the title "open-seo" because it already exists, use the manual deploy with Wrangler flow instead.
In the Cloudflare dashboard:
- Go to
Compute->Workers & Pages-> your OpenSEO Worker. - Open
Settings. - In
Domains & Routes, enableCloudflare Accessfor theworkers.devroute. - Save the values shown by Cloudflare Access.
- In
Variables & Secrets, add:POLICY_AUD(from Access setup)TEAM_DOMAIN(domain fromJWKS_URL, for examplehttps://your-team.cloudflareaccess.com)DATAFORSEO_API_KEY(seeDATAFORSEO_API_KEY.mdfor how to get one)
DataForSEO API responses are cached in R2 under the dataforseo-cache/ prefix. This step is optional, but recommended to automatically clean up expired cache objects:
npx wrangler r2 bucket lifecycle add open-seo dataforseo-cache-expiry dataforseo-cache/ --expire-days 7If you changed the R2 bucket name during deploy, replace open-seo with your bucket name.
Without a lifecycle rule, cached objects under dataforseo-cache/ will accumulate indefinitely and increase storage costs over time.
- Open your Worker URL again.
- Sign in with Cloudflare Access.
- OpenSEO should load after login.
If login fails, re-check the three secrets and Access toggle.
See Operations for connecting MCP clients, updating to the latest OpenSEO version, and giving teammates access.