Skip to content
sandboxrouting

DigitalOcean Harness Runtime

digitalocean, paid only, microVM isolation.

$0.0644/h

No free usage the router counts. At 2 vCPU and 4 GiB the router ranks it at $0.0644/h (active CPU only; up to $0.126/h with every vCPU busy). It is used only with allowPaid on.

Terms

Price
$0.044/vCPU-h (active CPU only) + $0.0095/GB-h
Notes
prepaid; 4 min per command; files only under /workspace
Free concurrency
100 at once
Card
required
Adapter's note
Needs a positive Harness Runtime prepayment. The $5 promotional credit is for new customers on the Agent Droplets Pro plan ($50 a month, 15% off). Up to 100 sessions at once, by resource tier.

The adapter

DigitalOcean Harness Runtime (Managed Agents): hardware-isolated microVM sandboxes. A sandbox with no agent in it is a session whose environment spec says `harness: none`; it runs commands as root in /workspace (Ubuntu 24.04). Billed per second of active compute: $0.044 per vCPU-hour of CPU actually used and $0.0095 per GB-hour of memory allocated; a paused session pays no compute. Needs a positive Harness Runtime prepayment. No free tier: the $5 promotional credit comes with the $50-a-month Agent Droplets Pro plan. A session has no time limit (it pauses after 15 minutes idle), so the router deletes it at the deadline (enforcesTimeout: false). One exec runs at most 240 s. REST: https://api.digitalocean.com/v2/harness-runtime (Bearer DigitalOcean API token); docs docs.digitalocean.com/reference/api/reference/harness-runtime/, docs.digitalocean.com/products/managed-agents/agent-harness-runtime/how-to/run-sandbox/, …/reference/environment-spec/, …/details/pricing/, …/details/limits/. CLI `doctl harness-runtime`, SDKs PyDo, DoTs, Godo. Create takes the YAML spec and answers once the session row exists; the sandbox boots after. Each create also saves an Environment Config, which kill deletes. Files go only to the workspace (/workspace); other paths use the router's exec fallback. Session names are unique among live sessions, so a create retried after a lost answer finds the first one by name.

Keys
DIGITALOCEAN_TOKEN
Connects through
REST api.digitalocean.com/v2/harness-runtime
Capabilities
Pause and resume
Isolation
microVM
Operating system
Linux
Longest sandbox
no limit declared
Longest command
4 min
Timeout
The provider keeps it alive, so the router deletes it at the deadline
Billing
vCPUs billed only while busy; memory every second
Source
src/providers/digitalocean.ts, and the provider’s site
Route only here
const sbx = await router.create({ providers: ["digitalocean"] });
Override its terms in sandboxrouting.json
{
  "providers": {
    "digitalocean": {
      "freeTier": {
        "kind": "none"
      },
      "priority": 10
    }
  }
}