aioflare

AI 操作指南

aioflare AI 让您用自然语言管理 Cloudflare。有两种模式:Global AI 用于从任意仪表板标签页执行多区域和全平台任务,Zone AI 用于在单个域名上进行专注工作并支持内联 DNS 预览。

Global AI

从仪表板页眉发起的多区域 AI 命令

Global AI 是仪表板右侧的 AI Command 面板(Beta 徽章)。每条消息发送一条自然语言命令 — AI 规划操作,在聊天中显示摘要,然后打开预览或上传区域供您在执行前确认。

如何访问

在任意仪表板标签页,点击页眉中的 AI 按钮(原子图标)。AI Command 面板在右侧打开。需要启用 AI 的付费计划(Solo、Agency 或 Beta)。

对于 DNS、缓存和重定向操作,如果您在其他页面,Global AI 可能会自动导航到 Zones 标签页。目标区域来自网格复选框和/或提示词中的域名。

Deploy Pages 使用聊天中的内联上传区域(ZIP 或 Paste HTML)— 切勿将源代码粘贴到消息字段。

支持的操作

编辑 IP

更改所选区域或提示词中指定域名的 A 或 AAAA DNS 记录的 IP 地址。

示例提示词(英文)

Disable proxy on all A records for shop.example.com and api.example.com
Change IP 1.1.1.1 to 2.2.2.2 on all selected zones

替换 DNS

批量替换 DNS 记录内容(例如,在匹配的记录上将旧 IP 或主机名替换为新值)。

示例提示词(英文)

Replace 203.0.113.9 with 203.0.113.6 on all A records for selected zones
Replace content old.example.com with new.example.com on CNAME records

切换代理

在匹配的 DNS 记录上启用或禁用 Cloudflare orange-cloud 代理。

示例提示词(英文)

Disable proxy on all A records for selected zones
Enable proxy on all A records across shop.example.com

删除 DNS 记录

删除与命令中描述的筛选条件匹配的 DNS 记录,执行前显示预览。

示例提示词(英文)

Delete all TXT records on example.com
Delete all records with content 203.0.113.9 on selected zones

添加 DNS 记录

向所选区域添加新的 DNS 记录。支持 {{zone}} 等动态占位符。

示例提示词(英文)

Add A record api pointing to 10.0.0.5 proxied on example.com
Add CNAME www pointing to {{zone}} on selected zones

应用 Redirect

使用 AI 生成的重定向计划,在所选区域应用 URL 重定向规则。

示例提示词(英文)

Redirect all paths to newdomain.com
Redirect all traffic to https://newsite.com on shop.example.com

清除缓存

为所选区域清除 Cloudflare 缓存 — 完全清除或按 URL 前缀。

示例提示词(英文)

Purge cache for selected zones
Purge everything on shop.example.com

同步 DNS

为所选区域同步 Cloudflare 与 aioflare 之间的 DNS 记录。

示例提示词(英文)

Sync DNS for all selected zones
Sync DNS records for example.com and api.example.com

Redirect 检查

验证所选区域的重定向配置状态。

示例提示词(英文)

Check redirect configuration for selected zones
Redirect check for shop.example.com

添加区域

向 Cloudflare 账户添加一个新区域。AI 可能会提出澄清问题(账户、DNS 模板、设置模式)。

示例提示词(英文)

Add zone newsite.io to account Production
Add zone portfolio.io without DNS setup

批量添加区域

通过队列系统一次向账户添加多个区域。

示例提示词(英文)

Add zones site1.io, site2.io, site3.io to account Agency
Bulk add zones from list to account Production

Deploy Pages

部署 Cloudflare Pages 项目。指定账户、项目名称、分支和可选自定义域名;在聊天中内联上传构建文件。

示例提示词(英文)

Deploy pages to account Production project my-site branch main
Deploy pages to account Kuy with domain shop.example.com

Zone AI

锁定上下文的单区域 AI,支持内联预览

Zone AI 为单个区域打开专用工作区。命令仅适用于该域名 — 无需提及区域名称。中央出现预览面板;聊天保持在右侧,带有显示区域名称的锁定徽章。

如何访问

前往 Zones 页面。在区域卡片或表格行上,打开菜单(⋯)并选择 Use AI(New 徽章)。需要启用 AI 的付费计划。

在中央预览面板中查看 DNS 和 redirect 更改,然后点击 Execute 或 Apply Rule。Purge cache 可用于锁定的 zone。

支持的操作

编辑 IP

仅更改此区域的 A 或 AAAA 记录 IP。预览显示更改前 → 更改后;在 DNS 标签页点击 Execute。

示例提示词(英文)

Enable proxy on all A records
Change IP 203.0.113.1 to 203.0.113.50 on @ and www

替换 DNS

在锁定区域内替换匹配 DNS 条目的记录内容。

示例提示词(英文)

Replace content old.com with new.com on A records
Replace 203.0.113.9 with 203.0.113.6 on all matching records

切换代理

在此区域的匹配记录上开启或关闭 Cloudflare 代理。

示例提示词(英文)

Enable proxy on all A records
Disable proxy on CNAME records

删除 DNS 记录

在预览确认后,从此区域删除匹配的 DNS 记录。

示例提示词(英文)

Delete all TXT records
Delete all A records pointing to 203.0.113.1

添加 DNS 记录

向此区域添加新记录。{{zone}} 自动解析为当前域名。

示例提示词(英文)

Add A record api pointing to 10.0.0.5 proxied
Add CNAME host pointing to {{zone}}

应用 Redirect

为此区域创建重定向规则。预览出现在 Rules 标签页,带有 Apply Rule 按钮。

示例提示词(英文)

Redirect all paths to https://newsite.com
Redirect www to https://shop.example.com/$1

清除缓存

确认后清除此区域的缓存。

示例提示词(英文)

Purge everything
Purge cache by prefix /assets/

重要限制

适用于 Global AI 和 Zone AI 的规则

  • 每条命令一个操作 — 组合请求(例如添加区域并清除缓存)会被拒绝。
  • 请勿在聊天中粘贴 HTML、CSS、JS 或 PHP。使用简洁的语言;在 Deploy Pages 区域上传文件。
  • 一般性问题会被拒绝 — 请编写可执行的命令。
  • 速率限制:每位用户每小时 25 个 AI 计划。每个计划最多 200 个区域。
  • 关闭 AI 面板会清除该会话的聊天历史。