KosmoKrator

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, 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 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.

KeyEnv varTypeRequiredLabel
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.

Generic CLI call
kosmo integrations:call ionos.ionos_list_servers '{}' --json
Provider shortcut
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.

Discovery commands
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_list_servers '{}' --json
Shortcut
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 read
Parameters
server_id
Generic call
kosmo integrations:call ionos.ionos_get_server '{"server_id":"example_server_id"}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_list_volumes '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_list_lans '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_list_nics '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_list_images '{}' --json
Shortcut
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 read
Parameters
none
Generic call
kosmo integrations:call ionos.ionos_get_current_user '{}' --json
Shortcut
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
Schema command
kosmo integrations:schema ionos.ionos_list_servers --json
ParameterTypeRequiredDescription
No parameters.
ionos.ionos_get_server 1 parameters
Schema command
kosmo integrations:schema ionos.ionos_get_server --json
ParameterTypeRequiredDescription
server_id string yes The server ID.
ionos.ionos_list_volumes 0 parameters
Schema command
kosmo integrations:schema ionos.ionos_list_volumes --json
ParameterTypeRequiredDescription
No parameters.
ionos.ionos_list_lans 0 parameters
Schema command
kosmo integrations:schema ionos.ionos_list_lans --json
ParameterTypeRequiredDescription
No parameters.
ionos.ionos_list_nics 0 parameters
Schema command
kosmo integrations:schema ionos.ionos_list_nics --json
ParameterTypeRequiredDescription
No parameters.
ionos.ionos_list_images 0 parameters
Schema command
kosmo integrations:schema ionos.ionos_list_images --json
ParameterTypeRequiredDescription
No parameters.
ionos.ionos_get_current_user 0 parameters
Schema command
kosmo integrations:schema ionos.ionos_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.