KosmoKrator

productivity

Hostinger CLI for AI Agents

Use the Hostinger CLI from KosmoKrator to call Hostinger tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write Bearer token auth

Hostinger CLI Setup

Hostinger can be configured headlessly with `kosmokrator integrations:configure hostinger`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure hostinger --set access_token="$HOSTINGER_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor hostinger --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token HOSTINGER_ACCESS_TOKEN Secret secret yes Access Token
url HOSTINGER_URL URL url no API Base URL

Call Hostinger Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call hostinger.hostinger_list_servers '{}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:hostinger hostinger_list_servers '{}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs hostinger --json
kosmo integrations:docs hostinger.hostinger_list_servers --json
kosmo integrations:schema hostinger.hostinger_list_servers --json
kosmo integrations:search "Hostinger" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Hostinger.

hostinger.hostinger_list_servers

Read read

List all VPS servers in the Hostinger account. Returns server IDs, names, status, plan, and IP addresses.

Parameters
none

Generic CLI call

kosmo integrations:call hostinger.hostinger_list_servers '{}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_list_servers '{}' --json

hostinger.hostinger_get_server

Read read

Get details for a specific Hostinger VPS server by ID. Returns full server information including IP addresses, plan, and status.

Parameters
server_id

Generic CLI call

kosmo integrations:call hostinger.hostinger_get_server '{"server_id":1}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_get_server '{"server_id":1}' --json

hostinger.hostinger_list_domains

Read read

List all domains in the Hostinger account. Returns domain IDs, names, and status.

Parameters
none

Generic CLI call

kosmo integrations:call hostinger.hostinger_list_domains '{}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_list_domains '{}' --json

hostinger.hostinger_get_domain

Read read

Get details for a specific domain in Hostinger by domain ID. Returns full domain information.

Parameters
domain_id

Generic CLI call

kosmo integrations:call hostinger.hostinger_get_domain '{"domain_id":1}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_get_domain '{"domain_id":1}' --json

hostinger.hostinger_list_dns_records

Read read

List DNS records for a specific domain in Hostinger. Returns all record types (A, AAAA, CNAME, MX, TXT, etc.).

Parameters
domain_id

Generic CLI call

kosmo integrations:call hostinger.hostinger_list_dns_records '{"domain_id":1}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_list_dns_records '{"domain_id":1}' --json

hostinger.hostinger_list_ssl

Read read

List all SSL certificates in the Hostinger account. Returns certificate details including domain, status, and expiry.

Parameters
none

Generic CLI call

kosmo integrations:call hostinger.hostinger_list_ssl '{}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_list_ssl '{}' --json

hostinger.hostinger_get_current_user

Read read

Get information about the current authenticated Hostinger account, including email and user details.

Parameters
none

Generic CLI call

kosmo integrations:call hostinger.hostinger_get_current_user '{}' --json

Provider shortcut

kosmo integrations:hostinger hostinger_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

hostinger.hostinger_list_servers

List all VPS servers in the Hostinger account. Returns server IDs, names, status, plan, and IP addresses.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_list_servers --json
ParameterTypeRequiredDescription
No parameters.

hostinger.hostinger_get_server

Get details for a specific Hostinger VPS server by ID. Returns full server information including IP addresses, plan, and status.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_get_server --json
ParameterTypeRequiredDescription
server_id integer yes The VPS server ID.

hostinger.hostinger_list_domains

List all domains in the Hostinger account. Returns domain IDs, names, and status.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_list_domains --json
ParameterTypeRequiredDescription
No parameters.

hostinger.hostinger_get_domain

Get details for a specific domain in Hostinger by domain ID. Returns full domain information.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_get_domain --json
ParameterTypeRequiredDescription
domain_id integer yes The domain ID.

hostinger.hostinger_list_dns_records

List DNS records for a specific domain in Hostinger. Returns all record types (A, AAAA, CNAME, MX, TXT, etc.).

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_list_dns_records --json
ParameterTypeRequiredDescription
domain_id integer yes The domain ID to list DNS records for.

hostinger.hostinger_list_ssl

List all SSL certificates in the Hostinger account. Returns certificate details including domain, status, and expiry.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_list_ssl --json
ParameterTypeRequiredDescription
No parameters.

hostinger.hostinger_get_current_user

Get information about the current authenticated Hostinger account, including email and user details.

Operation
Read read
Schema command
kosmo integrations:schema hostinger.hostinger_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.