[metadata]
color-scheme: light dark
description: Create Droplets and customize the image, plan, authentication method, and quantity of Droplets you want.
generator: Hugo 0.161.1
google-site-verification: CAYPZwe7daX8KlYYZfB4VMjfT4g8Tqrrc4Q3g_wMvI8
keywords: DigitalOcean, cloud computing
og:site_name: DigitalOcean
og:type: article
twitter:card: summary_large_image
twitter:creator: @DigitalOcean
twitter:site: DigitalOcean
twitter:url: https://docs.digitalocean.com/products/droplets/how-to/create/
viewport: width=device-width, initial-scale=1

[canonical-links]
https://docs.digitalocean.com/products/droplets/how-to/create/

[document-links]
/v2/images: /reference/api/reference/images/#images_list
/v2/regions: /reference/api/reference/regions/#regions_list
/v2/sizes: /reference/api/reference/sizes/#sizes_list
AI agent from the Marketplace: /products/marketplace/categories/ai-agents/
API Reference: /products/droplets/reference/api/
API Reference: https://docs.digitalocean.com/reference/api
About: https://www.digitalocean.com/about
Access Metadata: /products/droplets/how-to/access-metadata/
Add Keys to Existing Droplets: /products/droplets/how-to/add-ssh-keys/to-existing-droplet/
Add SSH Keys to Droplets: /products/droplets/how-to/add-ssh-keys/
Autoscale Pools: /products/droplets/concepts/autoscale-pools/
Availability: /products/droplets/details/availability/
Blog: https://www.digitalocean.com/blog
Boot from Recovery ISO: /products/droplets/how-to/recovery/recovery-iso/
Boot into a Specific Kernel: /products/droplets/how-to/kernel/use-non-default/
CLI Reference: /reference/doctl/reference/compute/droplet/
CLI Reference: https://docs.digitalocean.com/reference/doctl
CPU Droplet SLA: https://www.digitalocean.com/sla/cpu-droplets
Careers: https://www.digitalocean.com/careers
Choosing a Plan: /products/droplets/concepts/choosing-a-plan/
Code of Conduct: https://www.digitalocean.com/community/pages/code-of-conduct
Concepts: /products/droplets/concepts/
Configure Multi-Node Setups: /products/droplets/how-to/gpu/configure-multi-node/
Connect to a Private Droplet: /products/droplets/how-to/connect-private-droplet/
Connect with OpenSSH: /products/droplets/how-to/connect-with-ssh/openssh/
Connect with PuTTY: /products/droplets/how-to/connect-with-ssh/putty/
Connect with Recovery Console: /products/droplets/how-to/recovery/recovery-console/
Connect with SSH: /products/droplets/how-to/connect-with-ssh/
Connect with the Droplet Console: /products/droplets/how-to/connect-with-console/
Create Droplets: /products/droplets/how-to/create/
Create GPU Droplets: /products/droplets/how-to/gpu/create/
Create Keys with OpenSSH: /products/droplets/how-to/add-ssh-keys/create-with-openssh/
Create Keys with PuTTY: /products/droplets/how-to/add-ssh-keys/create-with-putty/
Create Private Droplets: /products/droplets/how-to/create-private-droplet/
Create a personal access token: https://docs.digitalocean.com/reference/api/create-personal-access-token/
Currents Research: https://www.digitalocean.com/currents
Destroy Droplets: /products/droplets/how-to/destroy/
Details: /products/droplets/details/
DigitalOcean API: /reference/api/reference/
DigitalOcean Monitoring: /products/monitoring/
DigitalOcean Volumes Block Storage: /products/volumes/
DigitalOcean metrics agent: /products/monitoring/#what-is-the-digitalocean-agent
DigitalOcean’s official CLI: /reference/doctl/
Docker: https://marketplace.digitalocean.com/apps/docker
Docs Home: https://docs.digitalocean.com
Docs: https://docs.digitalocean.com/
Droplet Actions: /products/droplets/reference/api/droplet-actions/
Droplet Autoscale Pools: /products/droplets/reference/api/droplet-autoscale-pools/
Droplet Policies: /products/droplets/details/policies/
Droplet and volume images: /products/snapshots/
DropletKit: https://github.com/digitalocean/droplet_kit
Droplets: /products/droplets/
Droplets: /products/droplets/reference/api/droplets/
Enable GPU Metrics: /products/droplets/how-to/gpu/enable-metrics/
Features: /products/droplets/details/features/
GPU Availability: /products/droplets/details/gpu-availability/
GPU Droplet SLA: https://www.digitalocean.com/sla/gpu-droplets
GPU Droplets: /products/gpu-droplets/
Getting Started: /products/droplets/getting-started/
Give Feedback: https://ideas.digitalocean.com/documentation
Glossary: /glossary/droplets/
Godo: https://github.com/digitalocean/godo
How To Choose a Droplet Plan: /products/droplets/concepts/choosing-a-plan/
How-Tos: /products/droplets/how-to/
Image Actions: /products/droplets/reference/api/image-actions/
Image Deprecation Policy: /products/droplets/details/image-deprecation/
Images: /products/droplets/details/images/
Images: /products/droplets/reference/api/images/
Install doctl: https://docs.digitalocean.com/reference/doctl/how-to/install/
LAMP: https://marketplace.digitalocean.com/apps/lamp
Legal: https://www.digitalocean.com/legal
Limits: /products/droplets/details/limits/
Live Migrations: /products/droplets/details/live-migration/
MCP Reference: /reference/mcp/
Manage SSH Keys on Teams: /platform/teams/how-to/upload-ssh-keys/
Manage the Droplet Agent: /products/droplets/how-to/manage-agent/
Manage the Kernel: /products/droplets/how-to/kernel/
Marketplace: /products/marketplace/
PTR records: /products/networking/dns/how-to/manage-records/#ptr-rdns-records
Package Mirrors: /products/droplets/details/mirrors/
Platform: https://docs.digitalocean.com/platform/
Pricing: /products/droplets/details/pricing/
Private Droplet: /products/droplets/details/private-droplets/
Private Droplets: /products/droplets/details/private-droplets/
Product Home: https://docs.digitalocean.com/products/
Products: https://docs.digitalocean.com/products/
Provide User Data: /products/droplets/how-to/provide-user-data/
PyDo: https://github.com/digitalocean/pydo
Q&A: https://www.digitalocean.com/community/questions
Quickstart: /products/droplets/getting-started/quickstart/
Rebuild Droplets: /products/droplets/how-to/rebuild/
Recommended Droplet Setup: /products/droplets/getting-started/recommended-droplet-setup/
Recommended GPU Setup: /products/droplets/getting-started/recommended-gpu-setup/
Recover Access or Data: /products/droplets/how-to/recovery/
Reference: /products/droplets/reference/
Reference: https://docs.digitalocean.com/reference/
Release Notes: https://docs.digitalocean.com/release-notes
Report Abuse: https://www.digitalocean.com/company/contact/abuse
Resize Droplets: /products/droplets/how-to/resize/
Sign Up: https://cloud.digitalocean.com/registrations/new
Support Center: /support
Support: /products/droplets/support/
Support: https://docs.digitalocean.com/support/
Switch to an Internal Kernel: /products/droplets/how-to/kernel/grubloader/
Tag Droplets: /products/droplets/how-to/tag/
Tips on Downsizing Droplets: /products/droplets/concepts/downsizing-considerations/
Track Performance: /products/droplets/how-to/track-performance/
Transfer Files with FileZilla: /products/droplets/how-to/transfer-files/
Trust Platform: https://www.digitalocean.com/trust
Tune Network Performance: /products/droplets/how-to/gpu/tune-networking/
Tutorials: https://www.digitalocean.com/community/tutorials
Upgrade to the Latest Kernel: /products/droplets/how-to/kernel/upgrade/
Use Autoscale Pools: /products/droplets/how-to/use-autoscale-pools/
Use Container Tools: https://www.digitalocean.com/community/tutorials/how-to-use-nvidia-container-tools-with-gpu-droplets
Use GPU Droplets: /products/droplets/how-to/gpu/
Use the Scratch Disk: /products/droplets/how-to/gpu/use-scratch-disk/
VPC network: /products/networking/vpc/
View page as Markdown: /products/droplets/how-to/create/index.html.md
WordPress: https://marketplace.digitalocean.com/apps/wordpress
Write for DOnations: https://www.digitalocean.com/community/pages/write-for-digitalocean
add tags to organize and relate Droplets: /products/droplets/how-to/tag/
alert policies: /products/monitoring/how-to/manage-alerts/#create-control
an FQDN (fully qualified domain name): /products/networking/dns/how-to/add-domains/
assign the Droplet to a project: /products/projects/
automatic system-level backups: /products/backups/
backups: /products/backups/
cloud-config file: https://www.digitalocean.com/community/tutorials/an-introduction-to-cloud-config-scripting
create and upload an SSH key: /products/droplets/how-to/add-ssh-keys/
create and upload: /products/custom-images/
doctl compute image list-distribution: /reference/doctl/reference/compute/image/list-distribution/
doctl compute region list: /reference/doctl/reference/compute/region/list/
doctl compute size list: /reference/doctl/reference/compute/size/list/
doctl: /reference/doctl/
https://api.digitalocean.com/v2/droplets: https://docs.digitalocean.com/reference/api/reference/droplets/#droplets_create
https://discord.gg/digitalocean
https://docs.digitalocean.com/llms.txt: https://docs.digitalocean.com/llms.txt
https://github.com/digitalocean
https://www.facebook.com/DigitalOceanCloudHosting
https://www.instagram.com/thedigitalocean
https://www.linkedin.com/company/digitalocean
https://www.youtube.com/DigitalOcean
https://x.com/digitalocean
in the Control Panel: /products/databases/postgresql/how-to/connect/#connection-details
llms.txt: https://docs.digitalocean.com/llms.txt
log in to the Control Panel: https://cloud.digitalocean.com/login
log in to your Droplet: /products/droplets/how-to/connect-with-ssh/
make backups: /products/backups/
managed database cluster: /products/databases/
read the usage docs: https://docs.digitalocean.com/reference/doctl/reference/compute/droplet/create/
take snapshots: /products/snapshots/
the DigitalOcean new account registration page: https://cloud.digitalocean.com/registrations/new
user data: /products/droplets/how-to/provide-user-data/
using the API to create a Droplet: /reference/api/reference/droplets/#droplets_create
which products and features are available in which regions: /platform/regional-availability/

[structured-data]
{"@context":"https://schema.org","@type":"TechArticle","about":{"@type":"Thing","name":"droplets"},"author":{"@type":"Organization","name":"DigitalOcean","url":"https://www.digitalocean.com"},"dateModified":"2026-07-30","datePublished":"2018-06-19","description":"Create Droplets and customize the image, plan, authentication method, and quantity of Droplets you want.","headline":"How to Create a Droplet","image":"https://www.digitalocean.com/_next/static/media/intro-to-cloud.d49bc5f7.jpeg","inLanguage":"en","keywords":"DigitalOcean, cloud computing","mainEntityOfPage":{"@id":"https://docs.digitalocean.com/products/droplets/how-to/create/","@type":"WebPage"},"publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://www.digitalocean.com/_next/static/media/logo.b31e883e.svg"},"name":"DigitalOcean"}}

[content]
How to Create a Droplet | DigitalOcean Documentation
Docs
Platform
Products
Reference
Support
Sign Up
Product Home
Droplets
Getting Started
Quickstart
Recommended Droplet Setup
Recommended GPU Setup
How-Tos
Create Droplets
Create Private Droplets
Use GPU Droplets
Create GPU Droplets
Use the Scratch Disk
Enable GPU Metrics
Tune Network Performance
Use Container Tools
Configure Multi-Node Setups
Provide User Data
Connect with SSH
Connect with OpenSSH
Connect with PuTTY
Add SSH Keys to Droplets
Create Keys with OpenSSH
Create Keys with PuTTY
Manage SSH Keys on Teams
Add Keys to Existing Droplets
Connect to a Private Droplet
Connect with the Droplet Console
Transfer Files with FileZilla
Tag Droplets
Track Performance
Resize Droplets
Use Autoscale Pools
Access Metadata
Rebuild Droplets
Manage the Droplet Agent
Manage the Kernel
Switch to an Internal Kernel
Upgrade to the Latest Kernel
Boot into a Specific Kernel
Recover Access or Data
Boot from Recovery ISO
Connect with Recovery Console
Destroy Droplets
Reference
API Reference
Droplets
Droplet Actions
Images
Image Actions
Droplet Autoscale Pools
CLI Reference
MCP Reference
Concepts
Choosing a Plan
Tips on Downsizing Droplets
Autoscale Pools
Glossary
Details
Features
Pricing
Availability
GPU Availability
Images
Limits
Private Droplets
Image Deprecation Policy
Package Mirrors
Droplet Policies
Live Migrations
CPU Droplet SLA
GPU Droplet SLA
GPU Droplets
Support
How-Tos
Create Droplets
Give Feedback
For AI agents:
The documentation index is at
https://docs.digitalocean.com/llms.txt
. Markdown versions of pages use the same URL with
index.html.md
in place of the HTML page (for example, append
index.html.md
to the directory path instead of opening the HTML document).
How to Create a Droplet
Last verified 30 Jul 2026
DigitalOcean Droplets are Linux-based virtual machines (VMs) that run on top of virtualized hardware. Each Droplet you create is a new server you can use, either standalone or as part of a larger, cloud-based infrastructure.
Copy page as Markdown
View page as Markdown
Create a Droplet in the Control Panel
The Droplet create page is where you choose your Droplet’s configuration, like its operating system, how much memory it has, and which features (like backups or monitoring) to enable. The most popular defaults are pre-selected, so you can scroll to the bottom of the page and create a Droplet immediately, or you can customize any of the options in each section.
To access the DigitalOcean Control Panel and create a Droplet, you need a DigitalOcean account. You can create one from
the DigitalOcean new account registration page
if you don’t already have one.
After you
log in to the Control Panel
, click the green
Create
button at the top to open the create menu. The menu lists many resource types, including
Droplet
and
GPU Droplet
under compute, plus Kubernetes, databases, storage, networking, AI products, and other options.
In the create menu, click
Droplet
to open the Droplet create page. If you don’t have any Droplets, the
Resources
tab displays a large, blue
Get Started with a Droplet
button, which takes you to the same Droplet create page.
Choose Region
In the
Choose Region
section, select the region where you want to create your Droplet.
A good default is selected for you, but for the best performance and minimal latency, choose the datacenter nearest to you and your users. You can also make a decision based on
which products and features are available in which regions
.
The region selector can hide or disable options that are incompatible with your selected configuration, often with a short explanation. For example, if you add a block storage volume to your configuration, you cannot create your Droplet in a datacenter that doesn’t support volumes.
This section also lists the default
VPC network
for the Droplet. The VPC network enables an additional networking interface that can only be accessed by other Droplets within the same datacenter. This keeps traffic between Droplets and other applicable resources from being routed outside the datacenter over the public internet.
Choose an Image
In the
Choose an image
section, you choose the image to use for your Droplet:
Initially, you can choose from four categories of images:
OS
includes basic Unix-like images with no additional software (like Ubuntu, Fedora, and Debian).
Solutions
images are pre-configured
Marketplace
applications, like
Docker
,
WordPress
, or
LAMP
, to help simplify getting started.
Some Marketplace images, like WordPress, let you add a
managed database cluster
during creation. Connection credentials for the database cluster are available
in the Control Panel
, in a file on the Droplet (
/root/.digitalocean_dbaas_credentials
, and MongoDB certificates at
/root/dbaas_ca_cert.crt
), and are exported as environment variables on the Droplet from
/etc/environment
.
Agents
images come with a pre-installed
AI agent from the Marketplace
that can automate complete workflows. Each agent image lists a minimum disk size, which the Droplet plan you choose must meet.
Custom Images
are Unix-like images that you
create and upload
to your DigitalOcean team.
Once you start using Droplets, you can
make backups
and
take snapshots
of them. On the Droplet creation page, tabs for
Backups
and
Snapshots
list the backups and snapshots you’ve taken, if any. You can choose those images as the foundation to create new Droplets.
Snapshots
are on-demand
Droplet and volume images
. They’re useful to manually back up or reproducibly create Droplets.
Backups
are
automatic system-level backups
taken weekly, daily, or multiple times a day. You can use backups to rebuild an existing Droplet. We retain weekly backups for four weeks, and daily backups for seven days. You can customize how long we retain usage-based backups for.
Choose Size
In the
Choose a Droplet Plan
section, you choose the amount of RAM, storage space, and CPU cores for your Droplet. Plans are grouped under
SHARED CPU
(including
Basic
) and
DEDICATED CPU
(General Purpose, CPU-Optimized, Memory-Optimized, and Storage-Optimized). For Basic plans you also pick
Regular
,
Premium Intel
, or
Premium AMD
disk and CPU options where available.
There are five types of plans:
Basic Droplets
, a flexible option best for most use cases, like website hosting, staging environments and low intensity compute needs.
General Purpose Performance Droplets
, a robust option suitable for a wide variety of mainstream, production applications that require a higher ratio of memory to CPU.
CPU-Optimized Performance Droplets
, best for CPU intensive tasks and projects that require predictable performance or rely on CPU more than RAM or I/O, like batch processing large data sets, large builds, and video encoding. You can also choose between Regular and Premium Intel CPUs. Premium CPU plans come with some of our most modern Intel CPUs, NVMe SSDs, and higher network throughput speeds.
Memory-Optimized Performance Droplets
, best for resource-intensive business applications, like high-performance SQL or NoSQL databases, large in-memory caches and indexes, real-time big data processing, and applications with large JVM requirements.
Storage-Optimized
, best for large NoSQL databases (like MongoDB and Elasticsearch), time series databases, and other data warehouses.
For each plan, you can choose Regular and Premium CPUs. Premium CPU plans come with some of our most modern Intel or AMD CPUs and NVMe SSDs, as well as higher bandwidth throughput.
See
How To Choose a Droplet Plan
for an in-depth guide to choosing a Droplet plan.
Note
For Droplets with less than 3 GB of RAM, we recommend using a 32-bit operating system. Processes require more memory on 64-bit architectures, and on servers with a limited quantity of RAM, any performance benefits from a 64-bit OS are offset by having less memory available for buffers and caching.
Additional Storage
In the
Additional Storage
section, you can create and attach additional
DigitalOcean Volumes Block Storage
volumes to your Droplet. When you click
Add Volume
, you can specify the details of the volume you want to create:
Volumes are independent resources that can be moved from one Droplet to another within the same datacenter. Attached volumes function like locally connected storage drives, meaning you can manage your storage with familiar tools and techniques.
Enable Backups
You can turn on automatic
backups
for the Droplet. This adds a cost to the Droplet’s price depending on the frequency of the backups.
In the recommended options section, check
Enable automated backups
.
Here, you can select between basic plans (
Plans
) and usage-based plans (
Usage-Based
):
Basic plans are divided into
Weekly Backups
and
Daily Backups
, and are billed as a percentage of the Droplet’s monthly cost.
Usage-based plans are customizable, and are billed at a flat rate per GiB of a backup’s restorable file size. You can configure the
Backup Frequency
, which refers to how often backups happen (from weekly to every six hours), and
Backup Retention
, which refers to how long you retain them.
The backup window is a 4-hour window of time during which the Droplet automatically initiates a new backup. In the
Backup Window
section, use the drop-down menus to customize your Droplet’s backup window by choosing a time of day and, for weekly backups, a day of the week.
If you’re
using the API to create a Droplet
, you can enable backups by adding
"backups": true
to the request body.
Choose Authentication Method
In the
Choose Authentication Method
section, you choose the method you want to use to log in to your Droplet.
There are two options:
SSH key
, which provides more security than a password.
Password
, which allows you to create your own password for the new Droplet.
If you choose
SSH key
, use
Add SSH Key
(or the team SSH key list when keys already exist) to attach at least one public key to the Droplet. You can add keys from this page or manage team SSH keys from
Settings
in the Control Panel.
Once you
create and upload an SSH key
to your DigitalOcean team, it remains available for you to add to any new Droplets you provision in the future.
Networking, Monitoring, and Additional Options
Above
Finalize Details
, the
Create Droplet
page groups
Networking
,
Monitoring
, and
Additional Options
. Expand
Additional Options
if it is collapsed.
Networking
includes the
Public IPv4 address
and
Public IPv6 address
options. By default,
Public IPv4 address
is selected and
Public IPv6 address
is cleared. A private IPv4 address is always assigned for traffic within the same VPC.
Note
To create a
Private Droplet
, a Droplet with no public IP address, clear both the
Public IPv4 address
and
Public IPv6 address
options. The Control Panel then shows a
This Droplet will be private
notice. A Private Droplet is reachable only through another resource with public access in the same VPC, such as a bastion host or load balancer, and you cannot add a public IP address to it later.
Monitoring
includes
Improved Metrics and monitoring
(free). When enabled, it installs the
DigitalOcean metrics agent
for
DigitalOcean Monitoring
, expanded system metrics in the Control Panel, performance tracking, and
alert policies
. An optional
AI Droplet troubleshooting agent
card may appear as a preview feature with its own terms.
Additional Options
includes
Startup scripts
(free), where you supply
user data
: a
cloud-config file
, a Bash script, or other data for
cloud-init
on first boot. Other cards can include paid add-ons such as
Managed Database
. Enable only what you need. Pricing appears on each card when applicable.
Finalize Details
In the
Finalize Details
section, you specify the quantity, name, tags, and project for the Droplet you’re creating.
There are four subsections for these options:
Quantity
, where you choose how many Droplets to create with this configuration. When the plan allows it, adjust the number with the plus (
+
) and minus (
-
) controls. Some configurations only allow creating one Droplet at a time; the Control Panel shows that limit in this section.
Hostname
, where you give each Droplet a name which is used in the Control Panel and as the server’s hostname. When quantity is greater than one, you get a field for each Droplet (for example
example
,
example-02
,
example-03
). Default names are provided based on the options you selected, but you can modify them to suit your needs.
Note
Using
an FQDN (fully qualified domain name)
(for example,
droplet1.example.com
) as the Droplet’s name automatically generates
PTR records
for your Droplet based on that name. This also applies if you rename a Droplet after creation.
Tags
, where you can
add tags to organize and relate Droplets
.
Project
, where you can
assign the Droplet to a project
.
Once you have selected your options, click
Create Droplet
. A progress bar displays how close your Droplet is to being ready.
You can also click
Create via command line
to get a command that you can copy and paste onto the command line to create Droplets with the configuration you selected. You can choose from two libraries:
cURL
and
doctl
, the official DigitalOcean command line utility.
Once the Droplet is fully set up, the Control Panel displays its IP address.
Once you see the IP address, you can
log in to your Droplet
.
To open a Droplet’s detail page, click its name in the
Droplets
list.
Create a Droplet Using Automation
You can also create Droplets using the
DigitalOcean API
or the
DigitalOcean’s official CLI
,
doctl
.
Create a Droplet Using the CLI
When creating a Droplet via CLI, you need to provide values for the
--region
,
--size
, and
--image
flags, which specify the desired datacenter, machine size, and operating system for your new Droplet. Use
doctl compute region list
,
doctl compute size list
, and
doctl compute image list-distribution
, respectively, to get a list of available values.
How to Create a New Droplet Using the DigitalOcean CLI
Install
doctl
, the official DigitalOcean CLI.
Create a personal access token
and save it for use with
doctl
.
Use the token to grant
doctl
access to your DigitalOcean account.
doctl auth init
Finally, run
doctl compute droplet create
. Basic usage looks like this, but you can
read the usage docs
for more details:
doctl compute droplet create <droplet-name>...
[
flags
]
The following example creates a Droplet named
example-droplet
with a two vCPUs, two GiB of RAM, and 20 GBs of disk space. The Droplet is created in the
nyc1
region and is based on the
ubuntu-20-04-x64
image. Additionally, the command uses the
--user-data
flag to run a Bash script the first time the Droplet boots up:
doctl compute droplet create example-droplet --size s-2vcpu-2gb --image ubuntu-20-04-x64 --region nyc1 --user-data
$'#!/bin/bash\n touch /root/example.txt; sudo apt update;sudo snap install doctl'
Please note: In Windows Powershell, the example command would be the following instead:
doctl compute droplet create example-droplet --size s-2vcpu-2gb --image ubuntu-20-04-x64 --region nyc1 --user-data
"#!/bin/bash`n touch /root/example.txt; sudo apt update;sudo snap install doctl"
Create a Droplet Using the API
When creating a Droplet via API you need to provide values for
region
,
size
, and
image
, which specify the desired datacenter, machine size, and operating system for your new Droplet. Use
/v2/regions
,
/v2/sizes
, and
/v2/images
, respectively, to get a list of available values.
How to Create a New Droplet Using the DigitalOcean API
Create a personal access token
and save it for use with the API.
cURL
Send a POST request to
https://api.digitalocean.com/v2/droplets
.
Using cURL:
curl -X POST
\
-H
"Content-Type: application/json"
\
-H
"Authorization: Bearer
$DIGITALOCEAN_TOKEN
"
\
-d
'{"name":"example.com","region":"nyc3","size":"s-1vcpu-1gb","image":"ubuntu-20-04-x64","ssh_keys":[289794,"3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45"],"backups":true,"ipv6":true,"monitoring":true,"tags":["env:prod","web"],"user_data":"#cloud-config\nruncmd:\n - touch /test.txt\n","vpc_uuid":"760e09ef-dc84-11e8-981e-3cfdfeaae000"}'
\
"https://api.digitalocean.com/v2/droplets"
Go
Using
Godo
, the official DigitalOcean API client for Go:
import
(
"context"
"os"
"github.com/digitalocean/godo"
)
func
main
()
{
token
:=
os
.
Getenv
(
"DIGITALOCEAN_TOKEN"
)
client
:=
godo
.
NewFromToken
(
token
)
ctx
:=
context
.
TODO
()
createRequest
:=
&
godo
.
DropletCreateRequest
{
Name
:
"example.com"
,
Region
:
"nyc3"
,
Size
:
"s-1vcpu-1gb"
,
Image
:
godo
.
DropletCreateImage
{
Slug
:
"ubuntu-20-04-x64"
,
},
SSHKeys
:
[]
godo
.
DropletCreateSSHKey
{
godo
.
DropletCreateSSHKey
{
ID
:
289794
},
godo
.
DropletCreateSSHKey
{
Fingerprint
:
"3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45"
}
},
Backups
:
true
,
IPv6
:
true
,
Monitoring
:
true
,
Tags
:
[]
string
{
"env:prod"
,
"web"
},
UserData
:
"#cloud-config\nruncmd:\n - touch /test.txt\n"
,
VPCUUID
:
"760e09ef-dc84-11e8-981e-3cfdfeaae000"
,
}
Ruby
Using
DropletKit
, the official DigitalOcean API client for Ruby:
require
'droplet_kit'
token
=
ENV
[
'DIGITALOCEAN_TOKEN'
]
client
=
DropletKit
::
Client
.
new
(
access_token
:
token
)
droplet
=
DropletKit
::
Droplet
.
new
(
name
:
'example.com'
,
region
:
'nyc3'
,
size
:
's-1vcpu-1gb'
,
image
:
'ubuntu-20-04-x64'
,
ssh_keys
:
[
289794
,
"3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45"
]
,
backups
:
true
,
ipv6
:
true
,
monitoring
:
true
,
tags
:
[
"env:prod"
,
"web"
]
,
user_data
:
"#cloud-config
\n
runcmd:
\n
- touch /test.txt
\n
"
,
vpc_uuid
:
"760e09ef-dc84-11e8-981e-3cfdfeaae000"
,
)
client
.
droplets
.
create
(
droplet
)
Python
Using
PyDo
, the official DigitalOcean API client for Python:
import
os
from
pydo
import
Client
client
=
Client
(
token
=
os
.
environ
.
get
(
"DIGITALOCEAN_TOKEN"
))
req
=
{
"name"
:
"example.com"
,
"region"
:
"nyc3"
,
"size"
:
"s-1vcpu-1gb"
,
"image"
:
"ubuntu-20-04-x64"
,
"ssh_keys"
:
[
289794
,
"3b:16:e4:bf:8b:00:8b:b8:59:8c:a9:d3:f0:19:fa:45"
],
"backups"
:
True
,
"ipv6"
:
True
,
"monitoring"
:
True
,
"tags"
:
[
"env:prod"
,
"web"
],
"user_data"
:
"#cloud-config
\n
runcmd:
\n
- touch /test.txt
\n
"
,
"vpc_uuid"
:
"760e09ef-dc84-11e8-981e-3cfdfeaae000"
}
resp
=
client
.
droplets
.
create
(
body
=
req
)
In this article...
Create a Droplet in the Control Panel
Choose Region
Choose an Image
Choose Size
Additional Storage
Enable Backups
Choose Authentication Method
Networking, Monitoring, and Additional Options
Finalize Details
Create a Droplet Using Automation
Create a Droplet Using the CLI
Create a Droplet Using the API
Company
About
Careers
Blog
Docs
Docs Home
API Reference
CLI Reference
Release Notes
llms.txt
Trust Platform
Community
Tutorials
Q&A
Write for DOnations
Currents Research
Legal
Code of Conduct
Support
Support Center
Report Abuse
© 2026 DigitalOcean, LLC. All rights reserved
We can't find any results for your search.
Try using different keywords or simplifying your search terms.
