Manage Porkbun DNS records and domains via API v3. Use when Codex needs to create, read, update, or delete DNS records on Porkbun; list domains; configure API access; work with common record types (A, AAAA, CNAME, MX, TXT, etc.). The skill includes a CLI tool `scripts/porkbun-dns.js` for executing DNS operations reliably.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install porkbun-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install porkbun-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/porkbun-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: porkbun description: Manage Porkbun DNS records and domains via API v3. Use when Codex needs to create, read, update, or delete DNS records on Porkbun; list domains; configure API access; work with common record types (A, AAAA, CNAME, MX, TXT, etc.). The skill includes a CLI tool scripts/porkbun-dns.js for executing DNS operations reliably. ---
Manage DNS records and domains on Porkbun via their REST API v3.
~/.config/porkbun/config.json{
"apiKey": "your-api-key",
"secretApiKey": "your-secret-api-key"
}
Or set environment variables:
export PORKBUN_API_KEY="your-api-key"
export PORKBUN_SECRET_API_KEY="your-secret-api-key"
node ~/.openclaw/workspace/skills/public/porkbun/scripts/porkbun-dns.js ping
The scripts/porkbun-dns.js script provides a reliable, deterministic way to execute DNS operations. Use it directly for common tasks instead of writing custom code.
node scripts/porkbun-dns.js list
node scripts/porkbun-dns.js records example.com
# A record
node scripts/porkbun-dns.js create example.com type=A name=www content=1.1.1.1 ttl=600
# CNAME
node scripts/porkbun-dns.js create example.com type=CNAME name=docs content=example.com
# MX record
node scripts/porkbun-dns.js create example.com type=MX name= content="mail.example.com" prio=10
# TXT record ( SPF for email)
node scripts/porkbun-dns.js create example.com type=TXT name= content="v=spf1 include:_spf.google.com ~all"
# By ID (get ID from records command)
node scripts/porkbun-dns.js edit example.com 123456 content=2.2.2.2
# By type and subdomain (updates all matching records)
node scripts/porkbun-dns.js edit-by example.com A www content=2.2.2.2
# By ID
node scripts/porkbun-dns.js delete example.com 123456
# By type and subdomain
node scripts/porkbun-dns.js delete-by example.com A www
# All records
node scripts/porkbun-dns.js get example.com
# Filter by type
node scripts/porkbun-dns.js get example.com A
# Filter by type and subdomain
node scripts/porkbun-dns.js get example.com A www
Supported record types: A, AAAA, CNAME, ALIAS, TXT, NS, MX, SRV, TLSA, CAA, HTTPS, SVCB, SSHFP
For detailed field requirements and examples, see references/dns-record-types.md.
Create root A record and www CNAME:
node scripts/porkbun-dns.js create example.com type=A name= content=192.0.2.1
node scripts/porkbun-dns.js create example.com type=CNAME name=www content=example.com
Set up MX records for Google Workspace:
node scripts/porkbun-dns.js create example.com type=MX name= content="aspmx.l.google.com" prio=1
node scripts/porkbun-dns.js create example.com type=MX name= content="alt1.aspmx.l.google.com" prio=5
node scripts/porkbun-dns.js create example.com type=MX name= content="alt2.aspmx.l.google.com" prio=5
node scripts/porkbun-dns.js create example.com type=MX name= content="alt3.aspmx.l.google.com" prio=10
node scripts/porkbun-dns.js create example.com type=MX name= content="alt4.aspmx.l.google.com" prio=10
Add SPF record:
node scripts/porkbun-dns.js create example.com type=TXT name= content="v=spf1 include:_spf.google.com ~all"
Update home IP address (can be scripted/automated):
HOME_IP=$(curl -s ifconfig.me)
node scripts/porkbun-dns.js edit-by example.com A home content=$HOME_IP
Create a wildcard record pointing to root:
node scripts/porkbun-dns.js create example.com type=A name=* content=192.0.2.1
~/.config/porkbun/config.jsonecho $PORKBUN_API_KEYA, not a)api.porkbun.com (not porkbun.com)api.porkbun.com安装 Porkbun 后,可以对 AI 说这些话来触发它
Help me get started with Porkbun
Explains what Porkbun does, walks through the setup, and runs a quick demo based on your current project
Use Porkbun to manage Porkbun DNS records and domains via API v3
Invokes Porkbun with the right parameters and returns the result directly in the conversation
What can I do with Porkbun in my developer & devops workflow?
Lists the top use cases for Porkbun, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/porkbun-skill/ 目录(个人级,所有项目可用),或 .claude/skills/porkbun-skill/(项目级)。重启 AI 客户端后,用 /porkbun-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Porkbun 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Porkbun 可免费安装使用。请查阅仓库了解许可证信息。
Manage Porkbun DNS records and domains via API v3. Use when Codex needs to create, read, update, or delete DNS records on Porkbun; list domains; configure API access; work with common record types (A, AAAA, CNAME, MX, TXT, etc.). The skill includes a CLI tool `scripts/porkbun-dns.js` for executing DNS operations reliably.
Porkbun 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Porkbun
Identifies repetitive steps in your workflow and sets up Porkbun to handle them automatically