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.

Hostinger CLI Setup

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

Install, configure, and verify
# 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 reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

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

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call hostinger.hostinger_list_servers '{}' --json
Provider shortcut
kosmo integrations:hostinger hostinger_list_servers '{}' --json

Discovery

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

Discovery commands
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

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

hostinger.hostinger_list_servers

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

Read read
Parameters
none
Generic call
kosmo integrations:call hostinger.hostinger_list_servers '{}' --json
Shortcut
kosmo integrations:hostinger hostinger_list_servers '{}' --json

hostinger.hostinger_get_server

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

Read read
Parameters
server_id
Generic call
kosmo integrations:call hostinger.hostinger_get_server '{"server_id":1}' --json
Shortcut
kosmo integrations:hostinger hostinger_get_server '{"server_id":1}' --json

hostinger.hostinger_list_domains

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

Read read
Parameters
none
Generic call
kosmo integrations:call hostinger.hostinger_list_domains '{}' --json
Shortcut
kosmo integrations:hostinger hostinger_list_domains '{}' --json

hostinger.hostinger_get_domain

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

Read read
Parameters
domain_id
Generic call
kosmo integrations:call hostinger.hostinger_get_domain '{"domain_id":1}' --json
Shortcut
kosmo integrations:hostinger hostinger_get_domain '{"domain_id":1}' --json

hostinger.hostinger_list_dns_records

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

Read read
Parameters
domain_id
Generic call
kosmo integrations:call hostinger.hostinger_list_dns_records '{"domain_id":1}' --json
Shortcut
kosmo integrations:hostinger hostinger_list_dns_records '{"domain_id":1}' --json

hostinger.hostinger_list_ssl

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

Read read
Parameters
none
Generic call
kosmo integrations:call hostinger.hostinger_list_ssl '{}' --json
Shortcut
kosmo integrations:hostinger hostinger_list_ssl '{}' --json

hostinger.hostinger_get_current_user

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

Read read
Parameters
none
Generic call
kosmo integrations:call hostinger.hostinger_get_current_user '{}' --json
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 0 parameters
Schema command
kosmo integrations:schema hostinger.hostinger_list_servers --json
ParameterTypeRequiredDescription
No parameters.
hostinger.hostinger_get_server 1 parameters
Schema command
kosmo integrations:schema hostinger.hostinger_get_server --json
ParameterTypeRequiredDescription
server_id integer yes The VPS server ID.
hostinger.hostinger_list_domains 0 parameters
Schema command
kosmo integrations:schema hostinger.hostinger_list_domains --json
ParameterTypeRequiredDescription
No parameters.
hostinger.hostinger_get_domain 1 parameters
Schema command
kosmo integrations:schema hostinger.hostinger_get_domain --json
ParameterTypeRequiredDescription
domain_id integer yes The domain ID.
hostinger.hostinger_list_dns_records 1 parameters
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 0 parameters
Schema command
kosmo integrations:schema hostinger.hostinger_list_ssl --json
ParameterTypeRequiredDescription
No parameters.
hostinger.hostinger_get_current_user 0 parameters
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.