Skip to main content
Connect your DigitalOcean account to enable CloudThinker agents to inventory Droplets, apps, databases, Kubernetes clusters, and volumes, review firewalls and load balancers for exposure, check uptime and alert policies, and answer questions about your balance and invoices. DigitalOcean authenticates with a personal access token. The connection is read-only apart from creating and deleting an empty VPC, and the agent confirms each of those with you before it runs.

Prerequisites

  • A DigitalOcean account with access to the resources you want to investigate.
  • A personal access token with read access to those resources, including account:read.
  • Permission to create tokens for the team that owns them.
Issue a read-only token unless you want the agent to manage VPCs. The token’s scope is the durable boundary — CloudThinker cannot exceed what the token allows.

Setup

1

Create a personal access token

Go to Applications & API → Tokens in the DigitalOcean Control Panel and click Generate New Token under Personal access tokens:
  • Token name: cloudthinker
  • Expiration: choose a lifetime and plan to rotate
  • Scopes: pick Read Only for the full read surface, or Custom Scopes to narrow it
Copy the token immediately — DigitalOcean shows the secret only once.
2

Add the connection in CloudThinker

Navigate to Connections → DigitalOcean and enter:
  • API token: the token you just created
Click Connect. CloudThinker reads your account to verify the token, then shows a Connected status with your account state and resource limits.
Copy the personal access token immediately after creation. You’ll need to create a new token if it’s lost.

Connection details


Required permissions

Read Only is the simplest choice: it grants api:read, which covers every read the connection makes and keeps covering new endpoints as DigitalOcean adds them. To narrow further, use Custom Scopes and pick from: Add vpc:create and vpc:delete only if you want the agent to manage VPCs. Without them the token cannot write at all, whatever else is configured.
Scopes cannot be edited after a token is created — narrowing or widening access means generating a new token and reconnecting. Set an expiration and rotate on the same schedule as your other credentials.

Agent capabilities

Once connected, agents have read access to your DigitalOcean account and infrastructure.
Creating and deleting a VPC each need their own confirmation: approving a create is not approval for a delete, and a rejection is final. Some read operations also ask for approval — DigitalOcean marks several database, Kubernetes, firewall, load balancer, and VPC reads as potentially destructive, and CloudThinker honors that label rather than overriding it.
Agents report what a bounded page returned plus whether more exists, never a total — a “10 Droplets” answer means ten were read, not that you own ten. Ask for a wider window when you need the full picture. Kubernetes credentials and database connection strings are never retrievable through this connection.

Verify the connection

Example prompts


Troubleshooting

DigitalOcean rejected the token with a 401. Generate a fresh token in the DigitalOcean control panel and reconnect.
The token is valid but lacks the account scope CloudThinker verifies at connect time. Reissue it with account:read included, then reconnect.
The token’s scopes don’t cover those resource types, or they belong to another team. Reissue the token from the owning team with read access to the resource types you want, and reconnect.
The ID is stale or belongs to another team. Ask the agent to list the resources again and work from the IDs it returns.
DigitalOcean answered 429. Wait and retry, and scope requests to one resource type or a smaller window so the agent makes fewer calls per run.
DigitalOcean did not answer in time, or its API is temporarily down. Retry the connection; if it persists, check DigitalOcean’s status page before reissuing the token.
VPC creates and deletes need explicit approval in the same turn. Approve the action when prompted — a rejected call is final and the agent will not retry it.

Security

  • Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
  • Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
  • Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
  • Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
  • Read-only by default — issue a token without write scope unless you want VPC management; the token, not a setting, is what makes writes impossible.
  • Set token expiration — choose an expiration when creating the token and plan to rotate it; DigitalOcean tokens do not auto-rotate.

Kubernetes Connection

Connect a cluster directly for workload-level operations

Approval

How approval-gated actions work