Manage Hostinger account via API — VPS administration (start/stop/restart, snapshots, backups, firewall, Docker), DNS zone management, domain portfolio, website hosting, and billing. Use when asked to deploy, publish, manage servers, configure DNS, or control any Hostinger service.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install hostinger或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install hostinger⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/hostinger/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: hostinger description: Manage Hostinger account via API — VPS administration (start/stop/restart, snapshots, backups, firewall, Docker), DNS zone management, domain portfolio, website hosting, and billing. Use when asked to deploy, publish, manage servers, configure DNS, or control any Hostinger service. ---
Control Hostinger services programmatically: VPS instances, DNS records, domains, websites, hosting.
API token required. Get one from: https://hpanel.hostinger.com/profile/api
Store in ~/.config/hostinger/token (just the token, no newline):
mkdir -p ~/.config/hostinger
echo -n "YOUR_API_TOKEN" > ~/.config/hostinger/token
chmod 600 ~/.config/hostinger/token
# List all VPS instances
python3 scripts/hostinger.py vps list
# Get VPS details
python3 scripts/hostinger.py vps get <vm_id>
# Start/stop/restart VPS
python3 scripts/hostinger.py vps start <vm_id>
python3 scripts/hostinger.py vps stop <vm_id>
python3 scripts/hostinger.py vps restart <vm_id>
# Create/restore snapshots
python3 scripts/hostinger.py vps snapshot-create <vm_id>
python3 scripts/hostinger.py vps snapshot-restore <vm_id>
# View backups
python3 scripts/hostinger.py vps backups <vm_id>
# Get DNS records for domain
python3 scripts/hostinger.py dns get <domain>
# Update DNS records (JSON file with records array)
python3 scripts/hostinger.py dns update <domain> <records.json>
# Reset DNS to defaults
python3 scripts/hostinger.py dns reset <domain>
# DNS snapshots
python3 scripts/hostinger.py dns snapshots <domain>
python3 scripts/hostinger.py dns snapshot-restore <domain> <snapshot_id>
# List all domains
python3 scripts/hostinger.py domains list
# Get domain details
python3 scripts/hostinger.py domains get <domain>
# Update nameservers
python3 scripts/hostinger.py domains nameservers <domain> ns1.example.com ns2.example.com
# Check availability
python3 scripts/hostinger.py domains check example.com example.org
# List websites
python3 scripts/hostinger.py hosting websites
# List datacenters
python3 scripts/hostinger.py hosting datacenters
# View subscriptions
python3 scripts/hostinger.py billing subscriptions
# View payment methods
python3 scripts/hostinger.py billing payment-methods
# View catalog
python3 scripts/hostinger.py billing catalog
When updating DNS records, provide a JSON file:
{
"records": [
{"type": "A", "name": "@", "value": "1.2.3.4", "ttl": 300},
{"type": "A", "name": "www", "value": "1.2.3.4", "ttl": 300},
{"type": "MX", "name": "@", "value": "mail.example.com", "priority": 10, "ttl": 300},
{"type": "TXT", "name": "@", "value": "v=spf1 include:_spf.google.com ~all", "ttl": 300}
]
}
For VPS with Docker OS templates:
# List Docker projects
python3 scripts/hostinger.py docker list <vm_id>
# Deploy from docker-compose.yml URL
python3 scripts/hostinger.py docker deploy <vm_id> <project_name> --url <compose_url>
# Or from local file
python3 scripts/hostinger.py docker deploy <vm_id> <project_name> --file <compose.yml>
# Start/stop/restart project
python3 scripts/hostinger.py docker start <vm_id> <project_name>
python3 scripts/hostinger.py docker stop <vm_id> <project_name>
python3 scripts/hostinger.py docker restart <vm_id> <project_name>
# View logs
python3 scripts/hostinger.py docker logs <vm_id> <project_name>
# Delete project
python3 scripts/hostinger.py docker down <vm_id> <project_name>
# List firewalls
python3 scripts/hostinger.py firewall list
# Create firewall
python3 scripts/hostinger.py firewall create <name>
# Add rule
python3 scripts/hostinger.py firewall add-rule <firewall_id> --protocol tcp --port 443 --source 0.0.0.0/0
# Activate on VM
python3 scripts/hostinger.py firewall activate <firewall_id> <vm_id>
For operations not covered by the script, use curl:
TOKEN=$(cat ~/.config/hostinger/token)
curl -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
https://developers.hostinger.com/api/vps/v1/virtual-machines
python3 scripts/hostinger.py vps listpython3 scripts/hostinger.py dns update domain.com records.jsonpython3 scripts/hostinger.py docker deploy mysite --file docker-compose.yml python3 scripts/hostinger.py firewall create "web-server"python3 scripts/hostinger.py firewall activate python3 scripts/hostinger.py vps snapshot-create python3 scripts/hostinger.py vps snapshot-restore 安装 Hostinger 后,可以对 AI 说这些话来触发它
Help me get started with Hostinger
Explains what Hostinger does, walks through the setup, and runs a quick demo based on your current project
Use Hostinger to manage Hostinger account via API — VPS administration (start/stop/r...
Invokes Hostinger with the right parameters and returns the result directly in the conversation
What can I do with Hostinger in my developer & devops workflow?
Lists the top use cases for Hostinger, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/hostinger/ 目录(个人级,所有项目可用),或 .claude/skills/hostinger/(项目级)。重启 AI 客户端后,用 /hostinger 主动调用,或让 AI 根据上下文自动发现并使用。
Hostinger 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Hostinger 可免费安装使用。请查阅仓库了解许可证信息。
Manage Hostinger account via API — VPS administration (start/stop/restart, snapshots, backups, firewall, Docker), DNS zone management, domain portfolio, website hosting, and billing. Use when asked to deploy, publish, manage servers, configure DNS, or control any Hostinger service.
Hostinger 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Hostinger
Identifies repetitive steps in your workflow and sets up Hostinger to handle them automatically