Skip to main content
Connect DigitalOcean so CloudThinker can inventory your Droplets, App Platform apps, managed databases, Kubernetes clusters, and volumes, review firewalls and load balancers for exposure, and answer questions about your balance and invoices. The connection uses a DigitalOcean personal access token and is read-only, except that it can create or delete an empty VPC after you confirm. That’s the only write, kept because an empty VPC costs nothing and can be removed. Most teams can leave it out.

Prerequisites

  • A DigitalOcean account on the team that owns the resources you want to investigate.
  • Permission to generate personal access tokens for that team.
  • A CloudThinker workspace where you can add connections.

Setup

1

Generate a personal access token

Tokens belong to the team that’s selected when you create them. In the DigitalOcean Control Panel, switch to the team that owns the resources in the team switcher (top left) first.
Then open the Tokens page and click Generate New Token. Fill in:Copy the token right away. DigitalOcean shows it only once.
2

Add the connection in CloudThinker

In the sidebar, click More → Workspace settings → Connections. On the Builtin Connections tab, search for DigitalOcean, paste the token into API token, and click Connect. CloudThinker reads your account to check the token.Success state: the DigitalOcean card shows a Connected status.
3

Run the verify prompt

Run the verify prompt in a new chat.Success state: CloudThinker returns your account status and resource limits, such as how many Droplets the account can create.

Connection details


Required permissions

Read Only is the simplest choice. It covers every read this connection makes. To narrow access, pick Custom Scopes and choose from this table.
Leave out vpc:create and vpc:delete and the token can’t write anything. DigitalOcean doesn’t let you edit scopes later, so changing access means generating a new token and updating the connection.

Agent capabilities

What this connection doesn’t do: it never returns Kubernetes credentials (kubeconfig) or database connection strings, and it doesn’t cover Spaces, Functions, DNS records, or Container Registry. To work inside a cluster, add a Kubernetes connection. Every change an agent makes goes through your workspace’s Approvals first. On the default Auto · Rules + AI · Ask me mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on Rule enforcement for your workspace. Choose Manual to approve every change yourself. To be asked every time, choose Manual as your Approval mode so a person approves every change. Once CloudThinker turns on Rule enforcement for your workspace, an Ask first Rule can narrow that to this connection alone. Lists are read one page at a time. When CloudThinker says “20 Droplets”, it means 20 were read and tells you if more exist. Ask for the full list when you need a complete count.

Verify the connection

Example prompts


Troubleshooting

DigitalOcean rejected the token. Generate a new one on the Tokens page. Then open the connection, click the edit icon on the instance, click Replace… in Edit Instance, paste the token, and click Save and test.
The token works but lacks the scope CloudThinker uses to check it. Generate a new token that includes account:read, then update the connection.
The token’s scopes don’t cover that resource type, or the resources belong to another team. Generate the token from the owning team with the scopes you need.
DigitalOcean is throttling requests. Wait and retry, and ask about one resource type at a time so each run makes fewer calls.
DigitalOcean didn’t answer in time. Retry Connect. If it keeps failing, check DigitalOcean’s status page before generating a new token.
Each VPC create or delete goes through your Approvals on its own, and approving a create doesn’t cover a delete. If one is waiting on you, answer the request in chat. A “no” is final for that request.

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.
  • The token is the boundary: CloudThinker can’t do more than the token’s scopes allow, so a read-only token makes writes impossible at DigitalOcean.
  • Set an expiration: DigitalOcean tokens don’t rotate on their own. Pick a lifetime when you create the token and rotate on that schedule.

Kubernetes connection

Connect a DOKS cluster directly for workload-level investigation

Connections overview

See every platform you can connect and how connections work