← 返回 Skills 市场
rexlunae

Hostinger

作者 rexlunae · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
1322
总下载
2
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (SKILL.md)

Hostinger API Skill

Control Hostinger services programmatically: VPS instances, DNS records, domains, websites, hosting.

Authentication

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

Quick Reference

VPS Operations

# List all VPS instances
python3 scripts/hostinger.py vps list

# Get VPS details
python3 scripts/hostinger.py vps get \x3Cvm_id>

# Start/stop/restart VPS
python3 scripts/hostinger.py vps start \x3Cvm_id>
python3 scripts/hostinger.py vps stop \x3Cvm_id>
python3 scripts/hostinger.py vps restart \x3Cvm_id>

# Create/restore snapshots
python3 scripts/hostinger.py vps snapshot-create \x3Cvm_id>
python3 scripts/hostinger.py vps snapshot-restore \x3Cvm_id>

# View backups
python3 scripts/hostinger.py vps backups \x3Cvm_id>

DNS Management

# Get DNS records for domain
python3 scripts/hostinger.py dns get \x3Cdomain>

# Update DNS records (JSON file with records array)
python3 scripts/hostinger.py dns update \x3Cdomain> \x3Crecords.json>

# Reset DNS to defaults
python3 scripts/hostinger.py dns reset \x3Cdomain>

# DNS snapshots
python3 scripts/hostinger.py dns snapshots \x3Cdomain>
python3 scripts/hostinger.py dns snapshot-restore \x3Cdomain> \x3Csnapshot_id>

Domain Portfolio

# List all domains
python3 scripts/hostinger.py domains list

# Get domain details
python3 scripts/hostinger.py domains get \x3Cdomain>

# Update nameservers
python3 scripts/hostinger.py domains nameservers \x3Cdomain> ns1.example.com ns2.example.com

# Check availability
python3 scripts/hostinger.py domains check example.com example.org

Hosting/Websites

# List websites
python3 scripts/hostinger.py hosting websites

# List datacenters
python3 scripts/hostinger.py hosting datacenters

Billing

# 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

DNS Record Format

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}
  ]
}

VPS Docker Management

For VPS with Docker OS templates:

# List Docker projects
python3 scripts/hostinger.py docker list \x3Cvm_id>

# Deploy from docker-compose.yml URL
python3 scripts/hostinger.py docker deploy \x3Cvm_id> \x3Cproject_name> --url \x3Ccompose_url>

# Or from local file
python3 scripts/hostinger.py docker deploy \x3Cvm_id> \x3Cproject_name> --file \x3Ccompose.yml>

# Start/stop/restart project
python3 scripts/hostinger.py docker start \x3Cvm_id> \x3Cproject_name>
python3 scripts/hostinger.py docker stop \x3Cvm_id> \x3Cproject_name>
python3 scripts/hostinger.py docker restart \x3Cvm_id> \x3Cproject_name>

# View logs
python3 scripts/hostinger.py docker logs \x3Cvm_id> \x3Cproject_name>

# Delete project
python3 scripts/hostinger.py docker down \x3Cvm_id> \x3Cproject_name>

VPS Firewall

# List firewalls
python3 scripts/hostinger.py firewall list

# Create firewall
python3 scripts/hostinger.py firewall create \x3Cname>

# Add rule
python3 scripts/hostinger.py firewall add-rule \x3Cfirewall_id> --protocol tcp --port 443 --source 0.0.0.0/0

# Activate on VM
python3 scripts/hostinger.py firewall activate \x3Cfirewall_id> \x3Cvm_id>

Direct API Access

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

API Documentation

Common Workflows

Deploy a Website

  1. Get VPS ID: python3 scripts/hostinger.py vps list
  2. Update DNS to point to VPS: python3 scripts/hostinger.py dns update domain.com records.json
  3. SSH to VPS and deploy, OR use Docker: python3 scripts/hostinger.py docker deploy \x3Cvm_id> mysite --file docker-compose.yml

Secure a VPS

  1. Create firewall: python3 scripts/hostinger.py firewall create "web-server"
  2. Add rules for SSH, HTTP, HTTPS
  3. Activate: python3 scripts/hostinger.py firewall activate \x3Cfw_id> \x3Cvm_id>

Backup Before Changes

  1. Create snapshot: python3 scripts/hostinger.py vps snapshot-create \x3Cvm_id>
  2. Make changes
  3. If needed, restore: python3 scripts/hostinger.py vps snapshot-restore \x3Cvm_id>
安全使用建议
This skill appears to do what it claims: it reads a Hostinger API token from ~/.config/hostinger/token and issues API calls to developers.hostinger.com to manage VPS, DNS, domains, hosting, and billing. Before installing/use: 1) Create a dedicated API token with the minimum scope needed (if Hostinger supports scoped tokens) and store it at ~/.config/hostinger/token with restrictive permissions (chmod 600). 2) Understand the token allows powerful actions (change root password, create/delete VMs, modify DNS, cancel subscriptions); treat it like a secret and revoke it if compromised. 3) Ensure the runtime environment has Python 3 and the 'requests' library installed. 4) If you need stricter auditing, review the full script for any modifications (the provided file only calls Hostinger endpoints). If you don't use Hostinger or don't want remote management enabled, do not provide the token.
功能分析
Type: OpenClaw Skill Name: hostinger Version: 1.0.0 This skill is classified as suspicious due to the extensive and high-impact administrative capabilities it exposes, particularly the ability to deploy Docker projects from arbitrary URLs and manage SSH keys and root passwords on VPS instances. While these actions are legitimate for cloud management, they represent significant security risks if the AI agent were to be compromised or prompted maliciously. The `docker deploy --url` command in `scripts/hostinger.py` allows the Hostinger API to fetch and execute `docker-compose.yml` from any URL, which could lead to remote code execution on a VPS. The `SKILL.md` also explicitly details these powerful commands, increasing the attack surface for prompt injection against the agent.
能力评估
Purpose & Capability
Name/description, SKILL.md, reference doc, and the included Python CLI consistently implement Hostinger account management (VPS, DNS, domains, hosting, billing). The required capabilities (API token, HTTP calls) are proportionate to the stated purpose.
Instruction Scope
Runtime instructions and the Python script only read the token file in ~/.config/hostinger/token, local JSON/compose files supplied by the user, and call Hostinger API endpoints. The SKILL.md does not instruct reading unrelated system files or exfiltrating data to non-Hostinger endpoints.
Install Mechanism
There is no install spec (instruction-only skill with an included script). The script depends on Python and the 'requests' library but the registry metadata does not list dependencies; this is benign but the user or integrator should ensure the environment has Python and requests installed before use.
Credentials
The skill requires a Hostinger API token (documented in SKILL.md) stored as a file under ~/.config/hostinger/token. The registry metadata lists no required env vars or credentials — which is consistent because the token is read from disk rather than environment variables. The token grants broad control (VPS, DNS, billing), so users should ensure the token has appropriate scope and protection.
Persistence & Privilege
The skill does not request permanent/always-on inclusion and does not modify other skills or system-wide settings. It will run only when invoked and uses the user's Hostinger token file for API calls.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install hostinger
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /hostinger 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: VPS, DNS, domains, hosting, billing management
元数据
Slug hostinger
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1322 次。

如何安装 Hostinger?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install hostinger」即可一键安装,无需额外配置。

Hostinger 是免费的吗?

是的,Hostinger 完全免费(开源免费),可自由下载、安装和使用。

Hostinger 支持哪些平台?

Hostinger 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Hostinger?

由 rexlunae(@rexlunae)开发并维护,当前版本 v1.0.0。

💬 留言讨论