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 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.
| Key | Env var | Type | Required | Label |
|---|---|---|---|---|
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.
kosmo integrations:call hostinger.hostinger_list_servers '{}' --json 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.
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 - Parameters
- none
kosmo integrations:call hostinger.hostinger_list_servers '{}' --json 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 - Parameters
- server_id
kosmo integrations:call hostinger.hostinger_get_server '{"server_id":1}' --json 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 - Parameters
- none
kosmo integrations:call hostinger.hostinger_list_domains '{}' --json 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 - Parameters
- domain_id
kosmo integrations:call hostinger.hostinger_get_domain '{"domain_id":1}' --json 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 - Parameters
- domain_id
kosmo integrations:call hostinger.hostinger_list_dns_records '{"domain_id":1}' --json 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 - Parameters
- none
kosmo integrations:call hostinger.hostinger_list_ssl '{}' --json 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 - Parameters
- none
kosmo integrations:call hostinger.hostinger_get_current_user '{}' --json 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
kosmo integrations:schema hostinger.hostinger_list_servers --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
hostinger.hostinger_get_server 1 parameters
kosmo integrations:schema hostinger.hostinger_get_server --json | Parameter | Type | Required | Description |
|---|---|---|---|
server_id | integer | yes | The VPS server ID. |
hostinger.hostinger_list_domains 0 parameters
kosmo integrations:schema hostinger.hostinger_list_domains --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
hostinger.hostinger_get_domain 1 parameters
kosmo integrations:schema hostinger.hostinger_get_domain --json | Parameter | Type | Required | Description |
|---|---|---|---|
domain_id | integer | yes | The domain ID. |
hostinger.hostinger_list_dns_records 1 parameters
kosmo integrations:schema hostinger.hostinger_list_dns_records --json | Parameter | Type | Required | Description |
|---|---|---|---|
domain_id | integer | yes | The domain ID to list DNS records for. |
hostinger.hostinger_list_ssl 0 parameters
kosmo integrations:schema hostinger.hostinger_list_ssl --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
hostinger.hostinger_get_current_user 0 parameters
kosmo integrations:schema hostinger.hostinger_get_current_user --json | Parameter | Type | Required | Description |
|---|---|---|---|
| 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.