digital-ocean

Manage Digital Ocean droplets, domains, and infrastructure via DO API.

⭐2stars🔀0forks📁View on GitHub🕐Updated Jan 8, 2026

When & Why to Use This Skill

This Claude skill enables seamless management of Digital Ocean infrastructure directly through the AI interface. It allows users to provision droplets, manage domain records, and monitor account status using the Digital Ocean API, streamlining cloud operations and DevOps workflows for developers and system administrators.

Use Cases

  • Provisioning and Scaling: Quickly create and configure new Droplets (virtual machines) with specific regions, sizes, and images for development or production environments.
  • Infrastructure Maintenance: Perform essential server operations such as rebooting, powering off, or powering on Droplets without leaving the chat interface.
  • DNS Management: Efficiently manage domain names and DNS records to ensure web applications are correctly routed and accessible.
  • Resource Auditing: Retrieve real-time account information and list all active resources to monitor infrastructure status and maintain organizational oversight.
namedigital-ocean
descriptionManage Digital Ocean droplets, domains, and infrastructure via DO API.
homepagehttps://docs.digitalocean.com/reference/api/
metadata{"clawdis":{"emoji":"🌊","requires":{"bins":["uv","curl"],"env":["DO_API_TOKEN"]},"primaryEnv":"DO_API_TOKEN"}}

Digital Ocean Management

Control DO droplets, domains, and infrastructure.

Setup

Set environment variable:

  • DO_API_TOKEN: Your Digital Ocean API token (create at cloud.digitalocean.com/account/api/tokens)

CLI Commands

# Account info
uv run {baseDir}/scripts/do.py account

# List all droplets
uv run {baseDir}/scripts/do.py droplets

# Get droplet details
uv run {baseDir}/scripts/do.py droplet <droplet_id>

# List domains
uv run {baseDir}/scripts/do.py domains

# List domain records
uv run {baseDir}/scripts/do.py records <domain>

# Droplet actions
uv run {baseDir}/scripts/do.py power-off <droplet_id>
uv run {baseDir}/scripts/do.py power-on <droplet_id>
uv run {baseDir}/scripts/do.py reboot <droplet_id>

Direct API (curl)

List Droplets

curl -s -H "Authorization: Bearer $DO_API_TOKEN" \
  "https://api.digitalocean.com/v2/droplets" | jq '.droplets[] | {id, name, status, ip: .networks.v4[0].ip_address}'

Get Account Info

curl -s -H "Authorization: Bearer $DO_API_TOKEN" \
  "https://api.digitalocean.com/v2/account" | jq '.account'

List Domains

curl -s -H "Authorization: Bearer $DO_API_TOKEN" \
  "https://api.digitalocean.com/v2/domains" | jq '.domains[].name'

Create Droplet

curl -s -X POST -H "Authorization: Bearer $DO_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-droplet",
    "region": "nyc1",
    "size": "s-1vcpu-1gb",
    "image": "ubuntu-22-04-x64"
  }' \
  "https://api.digitalocean.com/v2/droplets"

Reboot Droplet

curl -s -X POST -H "Authorization: Bearer $DO_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"reboot"}' \
  "https://api.digitalocean.com/v2/droplets/<DROPLET_ID>/actions"

Add Domain

curl -s -X POST -H "Authorization: Bearer $DO_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "example.com"}' \
  "https://api.digitalocean.com/v2/domains"

Notes