productivity
IONOS Cloud CLI for AI Agents
Use the IONOS Cloud CLI from KosmoKrator to call IONOS Cloud tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.IONOS Cloud CLI Setup
IONOS Cloud can be configured headlessly with `kosmokrator integrations:configure ionos`.
# 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 ionos --set access_token="$IONOS_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor ionos --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 | IONOS_ACCESS_TOKEN | Secret secret | yes | Access Token |
url | IONOS_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 ionos.ionos_list_servers '{}' --json kosmo integrations:ionos ionos_list_servers '{}' --json Discovery
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs ionos --json
kosmo integrations:docs ionos.ionos_list_servers --json
kosmo integrations:schema ionos.ionos_list_servers --json
kosmo integrations:search "IONOS Cloud" --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.
ionos.ionos_list_servers
List all servers in the IONOS Cloud account. Returns IDs, names, cores, RAM, VM state, and boot volume information.
read - Parameters
- none
kosmo integrations:call ionos.ionos_list_servers '{}' --json kosmo integrations:ionos ionos_list_servers '{}' --json ionos.ionos_get_server
Get details for a specific IONOS Cloud server by ID. Returns full server information including cores, RAM, VM state, volumes, and NICs.
read - Parameters
- server_id
kosmo integrations:call ionos.ionos_get_server '{"server_id":"example_server_id"}' --json kosmo integrations:ionos ionos_get_server '{"server_id":"example_server_id"}' --json ionos.ionos_list_volumes
List all block storage volumes in the IONOS Cloud account. Returns IDs, names, size, type, zone, and state.
read - Parameters
- none
kosmo integrations:call ionos.ionos_list_volumes '{}' --json kosmo integrations:ionos ionos_list_volumes '{}' --json ionos.ionos_list_lans
List all local area networks (LANs) in the IONOS Cloud account. Returns IDs, names, public flag, and connected servers.
read - Parameters
- none
kosmo integrations:call ionos.ionos_list_lans '{}' --json kosmo integrations:ionos ionos_list_lans '{}' --json ionos.ionos_list_nics
List all network interface cards (NICs) in the IONOS Cloud account. Returns IDs, names, MAC addresses, IPs, and LAN associations.
read - Parameters
- none
kosmo integrations:call ionos.ionos_list_nics '{}' --json kosmo integrations:ionos ionos_list_nics '{}' --json ionos.ionos_list_images
List all available images in the IONOS Cloud account. Returns IDs, names, size, OS type, location, and public status.
read - Parameters
- none
kosmo integrations:call ionos.ionos_list_images '{}' --json kosmo integrations:ionos ionos_list_images '{}' --json ionos.ionos_get_current_user
Get information about the current authenticated IONOS Cloud user, including email, name, and account status.
read - Parameters
- none
kosmo integrations:call ionos.ionos_get_current_user '{}' --json kosmo integrations:ionos ionos_get_current_user '{}' --json Function Schemas
Use these parameter tables when building CLI payloads without calling integrations:schema first.
ionos.ionos_list_servers 0 parameters
kosmo integrations:schema ionos.ionos_list_servers --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
ionos.ionos_get_server 1 parameters
kosmo integrations:schema ionos.ionos_get_server --json | Parameter | Type | Required | Description |
|---|---|---|---|
server_id | string | yes | The server ID. |
ionos.ionos_list_volumes 0 parameters
kosmo integrations:schema ionos.ionos_list_volumes --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
ionos.ionos_list_lans 0 parameters
kosmo integrations:schema ionos.ionos_list_lans --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
ionos.ionos_list_nics 0 parameters
kosmo integrations:schema ionos.ionos_list_nics --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
ionos.ionos_list_images 0 parameters
kosmo integrations:schema ionos.ionos_list_images --json | Parameter | Type | Required | Description |
|---|---|---|---|
| No parameters. | |||
ionos.ionos_get_current_user 0 parameters
kosmo integrations:schema ionos.ionos_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.