DigitalOcean CLI Setup DigitalOcean can be configured headlessly with `kosmokrator integrations:configure digitalocean`.
# 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 digitalocean --set access_token=" $DIGITALOCEAN_ACCESS_TOKEN " --enable --read allow --write ask --json
kosmokrator integrations:doctor digitalocean --json
kosmokrator integrations:status --json Credentials
Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call DigitalOcean Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call digitalocean.digitalocean_list_droplets '{
"page": 1,
"per_page": 1
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:digitalocean digitalocean_list_droplets '{
"page": 1,
"per_page": 1
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs digitalocean --json
kosmo integrations:docs digitalocean.digitalocean_list_droplets --json
kosmo integrations:schema digitalocean.digitalocean_list_droplets --json
kosmo integrations:search "DigitalOcean" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to DigitalOcean.
digitalocean.digitalocean_list_droplets Read read List all droplets (virtual machines) in the DigitalOcean account. Returns IDs, names, status, size, region, and IP addresses.
page, per_page kosmo integrations:call digitalocean.digitalocean_list_droplets '{"page":1,"per_page":1}' --json copy kosmo integrations:digitalocean digitalocean_list_droplets '{"page":1,"per_page":1}' --json copy
digitalocean.digitalocean_get_droplet Read read Get details for a specific DigitalOcean droplet by ID. Returns full droplet information including networks, image, and region.
id kosmo integrations:call digitalocean.digitalocean_get_droplet '{"id":1}' --json copy kosmo integrations:digitalocean digitalocean_get_droplet '{"id":1}' --json copy
digitalocean.digitalocean_create_droplet Write write Create a new DigitalOcean droplet (virtual machine). Requires a name, region, size, and image.
name, region, size, image, ssh_keys, backups, ipv6, user_data, tags kosmo integrations:call digitalocean.digitalocean_create_droplet '{"name":"example_name","region":"example_region","size":"example_size","image":"example_image","ssh_keys":"example_ssh_keys","backups":true,"ipv6":true,"user_data":"example_user_data"}' --json copy kosmo integrations:digitalocean digitalocean_create_droplet '{"name":"example_name","region":"example_region","size":"example_size","image":"example_image","ssh_keys":"example_ssh_keys","backups":true,"ipv6":true,"user_data":"example_user_data"}' --json copy
digitalocean.digitalocean_delete_droplet Write write Permanently delete a DigitalOcean droplet. This action is irreversible and will destroy all data on the droplet.
id kosmo integrations:call digitalocean.digitalocean_delete_droplet '{"id":1}' --json copy kosmo integrations:digitalocean digitalocean_delete_droplet '{"id":1}' --json copy
digitalocean.digitalocean_reboot_droplet Write write Reboot a DigitalOcean droplet. The droplet will be power-cycled and will be temporarily unavailable.
id kosmo integrations:call digitalocean.digitalocean_reboot_droplet '{"id":1}' --json copy kosmo integrations:digitalocean digitalocean_reboot_droplet '{"id":1}' --json copy
digitalocean.digitalocean_list_domains Read read List all DNS domains managed in the DigitalOcean account.
page, per_page kosmo integrations:call digitalocean.digitalocean_list_domains '{"page":1,"per_page":1}' --json copy kosmo integrations:digitalocean digitalocean_list_domains '{"page":1,"per_page":1}' --json copy
digitalocean.digitalocean_get_domain Read read Get details for a specific DNS domain in DigitalOcean, including zone file and TTL information.
name kosmo integrations:call digitalocean.digitalocean_get_domain '{"name":"example_name"}' --json copy kosmo integrations:digitalocean digitalocean_get_domain '{"name":"example_name"}' --json copy
digitalocean.digitalocean_list_spaces Read read List Spaces (S3-compatible object storage buckets) in the DigitalOcean account.
page, per_page kosmo integrations:call digitalocean.digitalocean_list_spaces '{"page":1,"per_page":1}' --json copy kosmo integrations:digitalocean digitalocean_list_spaces '{"page":1,"per_page":1}' --json copy
digitalocean.digitalocean_list_kubernetes Read read List Kubernetes (DOKS) clusters in the DigitalOcean account.
page, per_page kosmo integrations:call digitalocean.digitalocean_list_kubernetes '{"page":1,"per_page":1}' --json copy kosmo integrations:digitalocean digitalocean_list_kubernetes '{"page":1,"per_page":1}' --json copy
digitalocean.digitalocean_get_current_user Read read Get information about the current authenticated DigitalOcean account, including email, UUID, and status.
none kosmo integrations:call digitalocean.digitalocean_get_current_user '{}' --json copy kosmo integrations:digitalocean digitalocean_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_list_droplets --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_get_droplet --json
Operation Write write
Schema command kosmo integrations:schema digitalocean.digitalocean_create_droplet --json
Operation Write write
Schema command kosmo integrations:schema digitalocean.digitalocean_delete_droplet --json
Operation Write write
Schema command kosmo integrations:schema digitalocean.digitalocean_reboot_droplet --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_list_domains --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_get_domain --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_list_spaces --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_list_kubernetes --json
Operation Read read
Schema command kosmo integrations:schema digitalocean.digitalocean_get_current_user --json 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.