> For the complete documentation index, see [llms.txt](https://docs.portainer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.portainer.io/sts/admin/settings/credentials/digitalocean.md).

# Add DigitalOcean credentials

Before you can add your DigitalOcean credentials to Portainer, you will need to create an API token in your DigitalOcean account.

## Creating your API token

Log into the DigitalOcean dashboard and select **API** at the bottom left. Click **Generate New Token**, enter a token name and an expiration time, and ensure that both **Read** and **Write** scopes are ticked.

## Adding your credentials

To add credentials for a DigitalOcean account, from the [Shared credentials](/sts/admin/settings/credentials.md) page click **Add credentials**, then select the **DigitalOcean** option. Give your credential set a **name** and paste your **API key** into the box.

<figure><img src="/files/m0bDj3NV1Alww0vxRzkj" alt=""><figcaption></figcaption></figure>

When you're ready, click **Add credentials**.
