KosmoKrator

productivity

OVHcloud CLI for AI Agents

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

OVHcloud CLI Setup

OVHcloud can be configured headlessly with `kosmokrator integrations:configure ovh`.

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 ovh --set access_token="$OVH_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor ovh --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 OVH_ACCESS_TOKEN Secret secret yes Access Token
url OVH_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 ovh.ovh_list_servers '{}' --json
Provider shortcut
kosmo integrations:ovh ovh_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 ovh --json
kosmo integrations:docs ovh.ovh_list_servers --json
kosmo integrations:schema ovh.ovh_list_servers --json
kosmo integrations:search "OVHcloud" --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.

ovh.ovh_list_servers

List all dedicated servers in the OVH account. Returns a list of server service names.

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

ovh.ovh_get_server

Get details for a specific OVH dedicated server by service name. Returns full server information including hardware, network, and OS details.

Read read
Parameters
service_name
Generic call
kosmo integrations:call ovh.ovh_get_server '{"service_name":"example_service_name"}' --json
Shortcut
kosmo integrations:ovh ovh_get_server '{"service_name":"example_service_name"}' --json

ovh.ovh_list_domains

List all domains in the OVH account. Returns a list of domain names.

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

ovh.ovh_list_vps

List all VPS instances in the OVH account. Returns a list of VPS service names.

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

ovh.ovh_list_ip

List all IP addresses in the OVH account. Returns a list of IP blocks and addresses.

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

ovh.ovh_list_projects

List all public cloud projects in the OVH account. Returns a list of project IDs.

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

ovh.ovh_get_current_user

Get information about the current authenticated OVH account, including nichandle, email, and account details.

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

Function Schemas

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

ovh.ovh_list_servers 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_list_servers --json
ParameterTypeRequiredDescription
No parameters.
ovh.ovh_get_server 1 parameters
Schema command
kosmo integrations:schema ovh.ovh_get_server --json
ParameterTypeRequiredDescription
service_name string yes The dedicated server service name (e.g., "ns123456.ip-1-2-3.eu").
ovh.ovh_list_domains 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_list_domains --json
ParameterTypeRequiredDescription
No parameters.
ovh.ovh_list_vps 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_list_vps --json
ParameterTypeRequiredDescription
No parameters.
ovh.ovh_list_ip 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_list_ip --json
ParameterTypeRequiredDescription
No parameters.
ovh.ovh_list_projects 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_list_projects --json
ParameterTypeRequiredDescription
No parameters.
ovh.ovh_get_current_user 0 parameters
Schema command
kosmo integrations:schema ovh.ovh_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.