To deploy voice AI on DigitalOcean, size a Droplet at 4 vCPUs and 8 GB or more, keep its own IPv4 for setup, and let a Cloud Firewall with outbound rules admit the web and call ports before running the setup on Docker. Teams self-hosting Dograh, the open-source AI voice agent platform, deploy it like this, or use Dograh Cloud.
Key Takeaways
- A Droplet's IPv4 stays the same for its life, so no address step is needed.
- Cloud Firewalls block outbound traffic too, so keep the outbound rules.
- Run Dograh on a dedicated CPU plan once real callers are on the line.
One Droplet can carry a whole voice platform once it is sized for live audio and its firewall lets call traffic through both ways. We size the plan and build the Droplet and its firewall, then run Dograh and test a call. Upkeep and the monthly bill come last.
What to have ready on DigitalOcean
Each step matches the published Dograh and DigitalOcean docs, and a trial Droplet is the safe place to run them before real callers arrive. Docker and Dograh's setup script install identically on any cloud, which is why the full commands live in our AWS deployment guide and this post sticks to what is specific to DigitalOcean.
- A DigitalOcean account with an SSH key added to it.
- doctl, DigitalOcean's command line tool, signed in to your account, or the control panel if you prefer clicking.
- The public IP you work from, which becomes the only source allowed on SSH.
- Keys for your chosen models and an account with a carrier such as Twilio, Telnyx or Plivo.
What a voice platform asks of a Droplet
A chat agent on a Droplet needs SSH, maybe ports 80 and 443, and a small plan. A voice agent asks for more, because audio travels differently from text. Browsers give the microphone only to pages served over HTTPS, carriers need a public address for their webhooks and audio, and browser calls send media over UDP through a TURN server.
Dograh's remote server setup puts all of that on one machine. Docker Compose starts the call flow and the phone connection alongside Postgres, file storage, nginx and the TURN server. The whole stack needs 8 GB RAM and 4 vCPUs at minimum, with root access and a public IP. That fits a CPU Droplet with hosted models. If you want to run open-weight models on the same box, our post on GPU servers for voice agents covers that route.
Step 1: Choose a plan with 4 vCPUs and 8 GB
Pick the plan first, because the size and the CPU type decide how the platform behaves under live calls. Three Droplet plans meet Dograh's minimum without moving up to the Memory-Optimized or Storage-Optimized lines.
| Plan | Slug | vCPUs and memory | Disk | Price |
|---|---|---|---|---|
| Basic (shared CPU) | s-4vcpu-8gb | 4 vCPUs, 8 GiB | 160 GiB SSD | $48.00 a month |
| CPU-Optimized (dedicated CPU) | c-4 | 4 vCPUs, 8 GiB | 50 GiB SSD | $84.00 a month |
| General Purpose (dedicated CPU) | g-4vcpu-16gb | 4 vCPUs, 16 GiB | 50 GiB SSD | $126.00 a month |
The real choice is shared or dedicated CPU. A Basic Droplet's hyper-thread may be shared with other Droplets, which suits apps that mostly run at low to medium load. Dedicated CPU plans get guaranteed access to the full hyper-thread at all times. Live calls do not tolerate stalls well, so our reading is simple. Use Basic for a trial and a dedicated CPU plan once real callers are on the line.

Check: the plan you picked shows 4 vCPUs and at least 8 GiB in the control panel for your region.
Step 2: Create the Droplet with a tag
Create the Droplet with your SSH key and a tag, so the firewall in Step 4 can find it by tag. Ubuntu image slugs change with each release, so list them first and copy the Ubuntu 24.04 slug from the output. The commands below use doctl droplet create flags.
doctl compute size list
doctl compute image list-distribution
doctl compute droplet create dograh --size s-4vcpu-8gb --image UBUNTU_IMAGE_SLUG --region nyc1 --ssh-keys SSH_KEY_ID --tag-names dograh
What this does: The first two commands list the plan slugs and the Linux images you can use. The third creates a Droplet named
dograhon the Basic plan innyc1, with your SSH key and the tagdograh. Swaps-4vcpu-8gbforc-4to start on dedicated CPU.
In the control panel the same choices sit on the Create Droplet page. Pick Ubuntu 24.04, the plan from Step 1, your region and your SSH key, and add dograh as a tag.
Check: doctl compute droplet list shows dograh as active with a public IPv4 address.
Open Source Alternative to Vapi / Retell
Self-hosted voice agent platform — no per-minute fees
dograh-hq/dograh
Star on GitHub
Step 3: Set up on the Droplet's own IPv4
On AWS you attach an Elastic IP before setup. On DigitalOcean that step is already done for you. The IPv4 and IPv6 addresses assigned to a Droplet remain static for the life of the Droplet. Dograh's setup issues the HTTPS certificate for the address you give it and configures the TURN server with it, so use the Droplet's own IPv4 in Step 5.
The address lasts as long as the Droplet does, not longer. Destroying the Droplet returns the address to DigitalOcean's pool, and a rebuilt one gets a new IP, which needs a new certificate and new carrier settings. Resize and reboot instead of destroying when you can.
A reserved IP is the tool for moving an address between Droplets later. A reserved IP is free while assigned to a Droplet, and a reserved IPv4 costs $5 a month while it sits unassigned. There is one catch for voice. Outbound traffic still leaves from the Droplet's own address unless you route it through the reserved IP's gateway, while Dograh's TURN settings use the address entered at setup. So set up on the Droplet's own IP, and if you ever move to a reserved IP, run a browser test call and a phone call straight after.
Check: doctl compute droplet get dograh shows the same public IPv4 after a reboot.
Step 4: Add a Cloud Firewall with outbound rules
DigitalOcean Cloud Firewalls block all traffic that is not expressly permitted by a rule, and that covers outbound traffic as well as inbound. A firewall with no outbound rules stops Docker pulls, the Let's Encrypt check and every call to a model API. The control panel route avoids that, because a new firewall starts with outbound rules that permit all traffic to any destination on any port.
Open the Networking page, go to the Firewalls tab and create a firewall. Add these inbound rules, one rule per port or range, since non-sequential ports each need their own rule.
| Protocol | Ports | Sources |
|---|---|---|
| TCP | 22 | your own IP only |
| TCP | 80, 443, 3478, 5349 | all IPv4 and IPv6 |
| UDP | 3478, 5349 | all IPv4 and IPv6 |
| UDP | 49152-49200 | all IPv4 and IPv6 |
The new firewall suggests SSH on port 22 from anywhere, so edit that rule down to your own address. Leave the outbound rules as they are. In Apply to Droplets, type the tag dograh, so any Droplet you later tag gets the same rules. Keep port 80 in the list for good, since Let's Encrypt uses it both to issue the certificate and to renew it.
Check: the firewall's Droplets tab lists dograh, and the inbound list shows every port above with SSH limited to your address.
Step 5: Put Docker on the Droplet and run setup
Nothing in this step is specific to DigitalOcean. Connect over SSH as root, add Docker Engine through Docker's own apt repository and start setup_remote.sh. Our AWS guide lists each command with its source in Steps 4 to 6, and a Droplet runs them as written.
Docker has to be in place first. setup_remote.sh looks for Docker without installing it, and when Docker is missing it settles for a self-signed certificate. At the prompt for the public IP, give it the Droplet's IPv4 from Step 3. With a public address it requests a Let's Encrypt certificate for a hostname like 203-0-113-10.sslip.io, then brings the stack up.
Its default answer for FastAPI workers is 2. A 4 vCPU Droplet can take 4, because Dograh's scaling guide suggests one worker per vCPU up to 8, each using roughly 300 to 500 MB of RAM. A failed Let's Encrypt step means port 80 is missing from the firewall or the firewall never reached the Droplet. Correct that and run the certbot retry command shown in the script's output.
Check: the https://...sslip.io address from the script loads the dashboard, and the browser shows no certificate warning.
Step 6: Pick models and place a test call
DigitalOcean has no model entry in Dograh, and it does not need one. The Droplet runs the call flow, tools and phone connection, while the speech and language models come from any provider you add with your own key under Providers, or from Dograh's own models. Save those choices as a named configuration under Models and select it in the agent's Model tab. The Providers and Models guide walks through both screens.
Next, describe the agent in plain language to the Agent Builder and fine-tune the flow on the canvas. The builder runs on Dograh's models, so this Droplet connects to a free Dograh account to use it.
Run two tests. The first is a Web Call from Test Agent, and it confirms the UDP rules, because a missing TURN range is what breaks browser audio. For the second, add your carrier under Telephony in the sidebar, assign a number to the agent and ring your own mobile with the Phone Call button. Expect the phone call to sound a little different, since phone audio usually comes in at 8 kHz against the browser's 16 kHz.
Check: both sides hear each other on the Web Call, and your mobile reaches the agent on a real number.
Join the Dograh Community
Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.
Before you ship it
An sslip.io name works for testing, but your team will want a real domain. Create an A record for the Droplet's IPv4, then run Dograh's custom domain script from your setup folder. The settings to change after that switch are listed in our guide to a self-hosted voice agent on your own domain. Once everyone has an account, set ENABLE_SIGNUP=false, and ENABLE_TELEMETRY=false turns telemetry off.
Postgres and the call recordings live on the Droplet's disk, so turn on DigitalOcean's backups or take snapshots before every upgrade. Dograh's update guide covers upgrades, and our post on how to update a self-hosted voice agent wraps update_remote.sh in a test-call routine. A self-hosted install runs 10 calls at once by default, raised with DEFAULT_ORG_CONCURRENCY_LIMIT, and the Droplet and your carrier set the real ceiling.
When you self-host Dograh, no platform fee is added per minute. You still pay for the Droplet, $48 a month on the Basic plan or $84 on CPU-Optimized, and for model keys and phone minutes. Upkeep of the database, the certificate and every upgrade falls to your team, backed by the open-source community or a custom SLA on an Enterprise plan. Dograh Cloud hosts the same platform for a 1¢-a-minute platform fee, and models and phone minutes are billed on top.
Glossary
- Shared CPU
- A Basic Droplet's vCPUs may share a hyper-thread with other Droplets. Fine for trials and light load, less steady under live calls.
- Reserved IP
- A static IPv4 or IPv6 address you can move between Droplets. Free while assigned, and $5 a month for an unassigned IPv4.
- Cloud Firewall
- DigitalOcean's network firewall for Droplets. It blocks all traffic no rule permits, outbound as well as inbound, and applies by Droplet or tag.
- TURN server
- A relay that carries browser call audio when a direct path fails. Dograh's stack runs one, which is why UDP 3478, 5349 and 49152 to 49200 stay open.

