digitalocean

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

DigitalOcean Skill

DigitalOcean Skill

Overview

概述

Enables Claude to access DigitalOcean to manage Droplets, check App Platform deployments, monitor managed databases, and view billing and usage across cloud infrastructure.
让Claude能够访问DigitalOcean,以管理Droplets、查看App Platform部署、监控托管数据库,并查看整个云基础设施的账单和使用情况。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/digitalocean/install.sh | bash
Or manually:
bash
cp -r skills/digitalocean ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/digitalocean/install.sh | bash
或手动安装:
bash
cp -r skills/digitalocean ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set DIGITALOCEAN_EMAIL "your-email@example.com"
undefined
canifi-env set DIGITALOCEAN_EMAIL "your-email@example.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭据,由您掌控。Canifi LifeOS尊重您的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录服务
  3. Claude将使用您的已认证会话,且永远不会看到您的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在您的本地机器上访问,绝不会被传输。

Capabilities

功能

  • View Droplet status and metrics
  • Check App Platform deployments
  • Monitor managed databases
  • View Spaces (object storage)
  • Check Kubernetes clusters
  • View billing and usage
  • 查看Droplets状态和指标
  • 查看App Platform部署情况
  • 监控托管数据库
  • 查看Spaces(对象存储)
  • 查看Kubernetes集群
  • 查看账单和使用情况

Usage Examples

使用示例

Example 1: Check Droplets

示例1:检查Droplets

User: "What Droplets are running?"
Claude: I'll check your DigitalOcean Droplets.
- Opens cloud.digitalocean.com via Playwright MCP
- Logs into account
- Droplets:
  - web-server: s-2vcpu-4gb, NYC1, running
  - db-server: s-4vcpu-8gb, NYC1, running
  - staging: s-1vcpu-1gb, NYC1, off
- Total monthly: $45
- CPU usage: All normal
用户:"哪些Droplets正在运行?"
Claude:我将检查您的DigitalOcean Droplets。
- 通过Playwright MCP打开cloud.digitalocean.com
- 登录账户
- Droplets列表:
  - web-server: s-2vcpu-4gb,NYC1,运行中
  - db-server: s-4vcpu-8gb,NYC1,运行中
  - staging: s-1vcpu-1gb,NYC1,已关闭
- 月度总费用:$45
- CPU使用率:全部正常

Example 2: Check App Platform

示例2:检查App Platform

User: "How's my App Platform app?"
Claude: I'll check App Platform status.
- Views Apps section
- my-web-app:
  - Status: Active
  - Last deploy: 2 hours ago
  - Region: NYC
  - Components: Web (2), Worker (1)
- Auto-deploy: Enabled (main branch)
- Monthly cost: $12
用户:"我的App Platform应用状况如何?"
Claude:我将检查App Platform状态。
- 查看应用板块
- my-web-app:
  - 状态:活跃
  - 上次部署:2小时前
  - 区域:NYC
  - 组件:Web(2个)、Worker(1个)
- 自动部署:已启用(main分支)
- 月度费用:$12

Example 3: View Billing

示例3:查看账单

User: "What's my DigitalOcean bill?"
Claude: I'll check your billing.
- Views Billing section
- Current month: $67.50
- Breakdown:
  - Droplets: $45.00
  - App Platform: $12.00
  - Spaces: $5.00
  - Databases: $5.50
- Credits: $100 remaining
- Payment method: Active
用户:"我的DigitalOcean账单是多少?"
Claude:我将检查您的账单。
- 查看账单板块
- 当前月份:$67.50
- 明细:
  - Droplets:$45.00
  - App Platform:$12.00
  - Spaces:$5.00
  - 数据库:$5.50
- 剩余信用额度:$100
- 支付方式:有效

Authentication Flow

认证流程

  1. Navigate to cloud.digitalocean.com via Playwright MCP
  2. Enter email address
  3. Enter password
  4. Handle 2FA if enabled
  5. Maintain session for dashboard access
  1. 通过Playwright MCP导航至cloud.digitalocean.com
  2. 输入邮箱地址
  3. 输入密码
  4. 若启用则处理双因素认证(2FA)
  5. 维持会话以访问控制台

Error Handling

错误处理

  • Login Failed: Retry credentials
  • 2FA Required: Complete verification
  • Droplet Issue: Check console access
  • Session Expired: Re-authenticate
  • Rate Limited: Wait and retry
  • Billing Issue: Check payment method
  • 登录失败:重试凭据
  • 需要2FA:完成验证
  • Droplets问题:检查控制台访问权限
  • 会话过期:重新认证
  • 速率限制:等待后重试
  • 账单问题:检查支付方式

Self-Improvement Instructions

自我改进说明

After each interaction:
  • Track resource patterns
  • Note App Platform usage
  • Log billing trends
  • Document UI changes
Suggest updates when:
  • DigitalOcean updates console
  • New features added
  • Pricing changes
  • Products expand
每次交互后:
  • 跟踪资源使用模式
  • 记录App Platform使用情况
  • 记录账单趋势
  • 记录UI变更
在以下情况时建议更新:
  • DigitalOcean更新控制台
  • 添加新功能
  • 定价变更
  • 产品扩展

Notes

注意事项

  • Simple cloud platform
  • Droplets are VMs
  • App Platform for PaaS
  • Managed databases available
  • Spaces for object storage
  • Kubernetes managed
  • Good startup credits
  • 简洁的云平台
  • Droplets是虚拟机(VM)
  • App Platform为平台即服务(PaaS)
  • 提供托管数据库
  • Spaces用于对象存储
  • 托管Kubernetes
  • 为初创企业提供丰厚信用额度