Porkbun Cli logo

Porkbun Cli

Community
exiao
porkbun-cli

Manage Porkbun domains, DNS records, SSL certificates, URL forwarding, and hosting blueprints via the Porkbun API. Use when the user asks about domain management, DNS, SSL certs, URL redirects, or connecting a domain to a hosting provider.

Overview

Publisherexiao
Repositoryskills
Skill nameporkbun-cli
Stars
40
Forks
12
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by exiao on GitHub. Read the source before you install it.

Installation

Install the Porkbun Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/exiao/skills/tree/main/external-services/porkbun-cli
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exiao/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/external-services/porkbun-cli .claude/skills/porkbun-cli
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Porkbun Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Porkbun Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Porkbun Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Porkbun CLI

Manage Porkbun domains, DNS, SSL, URL forwarding, and hosting blueprints via the Porkbun REST API.

Credentials

Stored at ~/.porkbun/credentials.json:

json
{"apikey": "pk1_...", "secretapikey": "sk1_..."}

If missing, direct user to https://porkbun.com/account/api to generate keys. Save with chmod 600.

Every API call requires both keys in the JSON body.

Setup & Test Connection

Run scripts/test-connection.sh to verify credentials work.

bash
curl -s -X POST https://api.porkbun.com/api/json/v3/ping \
  -H "Content-Type: application/json" \
  -d '{"apikey":"...","secretapikey":"..."}'

Domains

List All Domains

POST https://api.porkbun.com/api/json/v3/domain/listAll
Payload: {"start": "0", "includeLabels": "yes", ...auth}

Output as table: Domain, Status, Expiry Date, Auto-Renew. Highlight 🔴 expiring within 30 days, 🟢 active.

Check Nameservers

POST https://api.porkbun.com/api/json/v3/domain/getNs/DOMAIN

DNS Records

Safety First

Before any destructive action (delete/overwrite):

  1. Retrieve current records for the domain/subdomain
  2. Show them to the user
  3. Ask for explicit confirmation
  4. Ideally run scripts/dns-backup.sh first

Retrieve Records

POST https://api.porkbun.com/api/json/v3/dns/retrieve/DOMAIN

Output: Type, Host, Answer, TTL, Priority (if applicable).

Create Records

POST https://api.porkbun.com/api/json/v3/dns/create/DOMAIN
Payload: {"name": "SUBDOMAIN", "type": "TYPE", "content": "VALUE", "ttl": "600", ...auth}
  • Empty name = root domain (@)
  • Default TTL: 600 (10 min)
  • Check for existing records first; ask "add new or replace?"

Record Type Cheatsheet

  • "Point to IP" → A (IPv4) or AAAA (IPv6)
  • "Alias to domain" → CNAME (subdomains) or ALIAS (root)
  • "Mail server" → MX (needs priority)
  • "Verify ownership" → TXT

Delete Records

POST https://api.porkbun.com/api/json/v3/dns/delete/DOMAIN/ID

Requires id from Retrieve. Always show record details before deleting.

SSL Certificates

Retrieve SSL Bundle

POST https://api.porkbun.com/api/json/v3/ssl/retrieve/DOMAIN

Returns: privatekey, publickey, certificatechain, intermediatecertificate.

Save to ./ssl-DOMAIN/:

  • domain.key (Private Key)
  • domain.crt (Public Key)
  • intermediate.crt (Chain)
  • fullchain.crt (Public + Intermediate concatenated)

Server-specific:

  • Nginx: fullchain.crt + domain.key
  • Apache: domain.crt + domain.key + intermediate.crt

URL Forwarding

Check Existing Forwards

POST https://api.porkbun.com/api/json/v3/domain/getUrlForwarding/DOMAIN

Create Forward

POST https://api.porkbun.com/api/json/v3/domain/addUrlForward/DOMAIN
Payload: {"subdomain": "", "location": "https://dest.com", "type": "temporary", "includePath": "yes", "wildcard": "yes", ...auth}
  • 301 (permanent): SEO-friendly, use for permanent moves
  • 302 (temporary): For testing or temporary redirects
  • includePath: old.com/blog/post → new.com/blog/post (usually ON)
  • wildcard: Matches *.old.com (usually ON)

Hosting Blueprints

One-click DNS configs for popular platforms. Read the blueprint from references/blueprints/ then apply via DNS create.

PlatformBlueprint file
Vercelreferences/blueprints/vercel.md
Netlifyreferences/blueprints/netlify.md
GitHub Pagesreferences/blueprints/github-pages.md
Cloudflare Pagesreferences/blueprints/cloudflare-pages.md
Railwayreferences/blueprints/railway.md
Self-hosted / VPSreferences/blueprints/self-hosted.md

Execution Protocol

  1. Explain the plan: "To set up Vercel, I need A record → 76.76.21.21 and CNAME www → cname.vercel-dns.com"
  2. Check for conflicts (existing A/CNAME on root/www)
  3. Warn about records being replaced
  4. Execute after confirmation
  5. Verify with brief output

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Porkbun Cli AI skill do?

Manage Porkbun domains, DNS records, SSL certificates, URL forwarding, and hosting blueprints via the Porkbun API. Use when the user asks about domain management, DNS, SSL certs, URL redirects, or connecting a domain to a hosting provider.

Why use Porkbun Cli on TypingMind?

Because you install it once and use it with any model. Porkbun Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Porkbun Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/exiao/skills/tree/main/external-services/porkbun-cli. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Porkbun Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Porkbun Cli?

As many as you like. As long as a model supports skills, you can use Porkbun Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Porkbun Cli AI skill free?

It is published on GitHub by exiao. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇