You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Daytona — sandboxes as a tier 2 runtime and as agent dev environments #24
What exactly is Daytona, and where could it fit Patchy Cloud? We hold substantial Daytona credits, so where it fits we want to use it — but fit comes first. Establish from primary sources (daytona.io/docs, the SDK and CLI source on GitHub, the API reference): the sandbox model (creation, lifecycle, sleeping and waking, snapshots, volumes, regions, resource limits, the claimed sub-100 ms start), the isolation and security model (what runs where; customer-managed compute), the TypeScript SDK and CLI surface (process execution, filesystem, git, LSP, streaming), networking and ingress (can a sandbox serve HTTP to the outside? preview URLs? custom domains?), egress control, secrets handling, pricing units and what our credits buy, compliance.
Evaluate two fits: (a) the substrate for tier 2 patches — one hosted server-side runtime per patch: multi-tenant isolation, persistence across restarts, routing a request to the right sandbox, cost of an idle patch, limits on count and lifetime; (b) agent dev environments — running this repo's dev loop and checks in a sandbox per agent or per worktree so parallel agents never collide on a machine. State plainly what it cannot do.
Output: docs/research/daytona.md on branch research/daytona. Waits on it: Runtime tiers 0 / 1 / 2, Local dev environment.
Research written and adversarially verified against every cited source on 2026-08-26 (every docs page re-downloaded raw, daytona/clients at dbf05b3, the @daytonaio/sdk 0.207.0 tarball, the proxy sample, the trust center). Corrections made in the verify pass: the "1 h/day" cost column and the 1,000-patch estimate were recomputed from the published rates; the Tier 1/Tier 2 concurrent-medium caps were wrong because they ignored the disk quota (three mediums, not five); release cadence is about two minor versions a week, not weekly; two paraphrased troubleshooting "quotes" were replaced with verbatim text; warm pools and webhooks are both gated behind a support request; managed API keys and the volume cost/quota rules were added; credits carry an expiry per the wallet UI.
Daytona is a hosted sandbox API: you create a Linux container (default), Linux VM, Windows or GPU sandbox from an OCI image or a saved snapshot, then drive it through a "toolbox" API (exec, files, git, LSP, PTY, log streaming) from TypeScript/Python/Go/Ruby/Java SDKs, a CLI, an MCP server or REST [1][2][27]. Since June 2026 the core platform is a private codebase; the open-source repo is frozen at v0.190.0 and only the clients (SDKs, CLI, OpenAPI specs) are public [39][40]. The npm package is now @daytona/sdk; @daytonaio/sdk is a deprecated alias with the same API [41][42].
Sandbox model: default 1 vCPU / 1 GiB / 3 GiB, hard ceiling 4 vCPU / 8 GiB / 10 GiB per sandbox [2]. A container sandbox keeps its filesystem across stop/start and loses memory; it auto-stops after 15 min idle by default, auto-archives to object storage after 7 days stopped (30 max), and can carry a wall-clock TTL or be ephemeral [2][4]. Pause/resume, fork and memory snapshots exist only for the VM class, which can only be created from VM snapshots, not from a Dockerfile [2][3][31].
The "under 90 ms" start is an unqualified marketing figure ("<90ms" on the container class card, "under 90ms from code to execution" on the docs home) with no methodology, no statement of what is measured, and no numbers anywhere for starting a stopped sandbox or restoring an archived one [1][2][5]. Warm pools exist precisely because plain creation is not always instant — and they must be enabled by support before the API even answers — and snapshots go inactive after two weeks unused [6][7][31]. Patchy would have to measure.
Ingress: any HTTP port is reachable at https://{port}-{sandboxId}.proxy.daytona.work, gated by a per-sandbox preview token that resets on every restart, or by a signed URL (max 24 h), or open if the sandbox is public [18]. WebSocket works; raw TCP does not [19]. Custom domains, your own auth, wake-on-request and no warning page come only from running your own proxy in front — a documented pattern with Go/TypeScript samples [19][43].
Egress: on Tier 1 and 2 outbound traffic is restricted to a fixed "essential services" list (npm, GitHub, PyPI, PostHog, etc.) that cannot be overridden per sandbox; Tier 3 and up ($500 top-up) get full internet plus per-sandbox block-all / CIDR (≤10) / domain (≤20) allow lists [20][22]. Secrets never enter the sandbox in plaintext: an env var holds a placeholder that Daytona's outbound proxy swaps only in HTTPS request headers to allow-listed hosts — so they cannot carry a Postgres password over the wire protocol [21].
Isolation: a container sandbox is Linux namespaces plus hard CPU/RAM/disk reservations, code runs as root, kernel shared with the runner; the VM class has its own kernel [3][27]. Organization isolation is access control, not a runtime boundary [3]. SOC 2 Type II, ISO 27001, HIPAA and GDPR are listed on the trust center; subprocessors include Latitude.sh, OVHcloud and AWS [36]. Bring-your-own-compute puts runner nodes on your Kubernetes in AWS with no quota limits; the control plane stays Daytona's [28][11].
Pricing: $0.0504 per vCPU-hour, $0.0162 per GiB-hour RAM, $0.000108 per GiB-hour disk after the first 5 GiB free, billed per second; a started sandbox pays all three, a stopped one pays disk only, archived pays nothing [23][24]. So daytona-small is ≈$0.067/h ≈ $49/month always-on, ≈$0.24/month stopped, $0 archived; $200 of credit ≈ 3,000 small-sandbox hours. Free credits are consumed before paid ones and do not cover GPUs [23].
Quotas are per tier: 10 vCPU / 20 GiB (the same page's Tiers table says 10 GiB) / 30 GiB at Tier 1 (email), 100 / 200 / 300 at Tier 2 (card + $25), 250 / 500 / 2,000 at Tier 3 ($500), 500 / 1,000 / 5,000 at Tier 4 ($2,000 every 30 days), custom above that; sandbox creates are capped at 300–600 per minute; stopped container sandboxes keep holding disk quota until archived [22][31].
Fit (a) verdict: viable only for the "bring a whole app" half of tier 2, with Patchy building the ingress proxy, wake-on-request and scale-to-zero policy itself. One container sandbox per patch works: filesystem persists, an idle patch costs cents stopped and nothing archived, a Patchy proxy maps host → sandbox → preview token and forwards, egress can be pinned to Patchy's API on Tier 3+. It is not a fit for many small tools: the smallest unit is a 1 vCPU / 1 GiB reservation billed whenever started, there is no isolate or handler runtime, wake latency is unpublished, the tenant boundary is namespaced containers unless Patchy adopts the VM class (no declarative builds), and an organization tops out at 500 concurrently started 1-vCPU patches without enterprise terms or BYOC.
Fit (b) verdict: a good fit and the cheapest place to spend credits. One container sandbox per agent or worktree from a Patchy-built snapshot (Node 24, pnpm 11.5.2, Postgres 17, optionally Docker-in-Docker) gives each agent its own network namespace, so port 3000 and .local/ never collide; the agent drives it with the daytona CLI, SSH, the SDK or MCP; a working daytona-medium costs ≈$0.17/h (≈$29 for a 22×8 h month) and ≈$0.63/month stopped. Tier 1's 30 GiB disk quota caps this at three mediums, started or stopped; Tier 2 is needed for real parallelism. The design decision it forces is that the checkout lives in the sandbox, not on this machine.
What it cannot do: custom domains or your own auth on its own proxy; TCP ingress; a function/isolate runtime; per-sandbox egress policy below Tier 3; secrets for non-HTTPS-header credentials; database-grade volumes; pause/fork on containers; Dockerfile builds for VMs; self-hosting current builds.
Biggest unknowns before any decision assumes it: measured create / start / unarchive latency from Patchy's proxy location; whether our credits count as top-ups for tier placement (egress control needs Tier 3); where us and eu physically run; whether shared regions impose a maximum sandbox lifespan; whether runners are shared across organizations.
Open questions
What exactly do "our credits" look like in the wallet (free vs paid), when do they expire (the wallet shows an expiration; the policy is unpublished), and do they count as the $25 / $500 / $2,000 top-ups that place an organization in Tier 2 / 3 / 4? Egress control needs Tier 3 [22][23].
Measured latency, from the region Patchy's proxy would run in, for: create from an active snapshot; start a stopped container; start an archived container; first HTTP response after start — in both us and eu.
Is a "maximum sandbox lifespan" configured for shared regions and the container class, and what is it? If set, TTL "cannot be disabled" [40].
Where do us and eu physically run (Latitude.sh, OVHcloud, AWS are subprocessors)? The site footer links a DPA; its terms were not read [24][36].
Are runners shared between organizations, i.e. does a company's patch share a kernel with another Daytona customer's sandbox? The isolation page is silent.
Does Daytona's own proxy do anything for a stopped sandbox (auto-start, error page), or is that entirely the custom proxy's job [19]?
What is the storage rate for snapshots created from sandboxes ("remain billed for storage") [23], and is the 5 GiB free disk allowance per organization or per sandbox [24]? The latter decides whether a stopped small patch costs $0.24 or $0.
Defaults for maxSnapshotSize, snapshotQuota, secretQuota, maxSecretsPerSandbox [40].
Do scp/rsync/SSHFS work over ssh.app.daytona.io [16]?
Enterprise terms: dedicated region, SLA (the site footer links one; not read), uptime history, support response — none appear in the docs read. Warm pools and webhooks are both gated behind a support request; whether that is automatic on paid tiers is unknown [7][30][31].
The Limits page disagrees with itself on Tier 1 RAM (10 vs 20 GiB) [22].
Activity
allisonmahmood commentedon Aug 26, 2026
Resolution
Research written and adversarially verified against every cited source on 2026-08-26 (every docs page re-downloaded raw,
daytona/clientsatdbf05b3, the@daytonaio/sdk0.207.0 tarball, the proxy sample, the trust center). Corrections made in the verify pass: the "1 h/day" cost column and the 1,000-patch estimate were recomputed from the published rates; the Tier 1/Tier 2 concurrent-medium caps were wrong because they ignored the disk quota (three mediums, not five); release cadence is about two minor versions a week, not weekly; two paraphrased troubleshooting "quotes" were replaced with verbatim text; warm pools and webhooks are both gated behind a support request; managed API keys and the volume cost/quota rules were added; credits carry an expiry per the wallet UI.File: https://github.com/allisonmahmood/patchy-cloud/blob/research/daytona/docs/research/daytona.md
Summary
@daytona/sdk;@daytonaio/sdkis a deprecated alias with the same API [41][42].https://{port}-{sandboxId}.proxy.daytona.work, gated by a per-sandbox preview token that resets on every restart, or by a signed URL (max 24 h), or open if the sandbox ispublic[18]. WebSocket works; raw TCP does not [19]. Custom domains, your own auth, wake-on-request and no warning page come only from running your own proxy in front — a documented pattern with Go/TypeScript samples [19][43].daytona-smallis ≈$0.067/h ≈ $49/month always-on, ≈$0.24/month stopped, $0 archived; $200 of credit ≈ 3,000 small-sandbox hours. Free credits are consumed before paid ones and do not cover GPUs [23]..local/never collide; the agent drives it with thedaytonaCLI, SSH, the SDK or MCP; a workingdaytona-mediumcosts ≈$0.17/h (≈$29 for a 22×8 h month) and ≈$0.63/month stopped. Tier 1's 30 GiB disk quota caps this at three mediums, started or stopped; Tier 2 is needed for real parallelism. The design decision it forces is that the checkout lives in the sandbox, not on this machine.usandeuphysically run; whether shared regions impose a maximum sandbox lifespan; whether runners are shared across organizations.Open questions
usandeu.usandeuphysically run (Latitude.sh, OVHcloud, AWS are subprocessors)? The site footer links a DPA; its terms were not read [24][36].maxSnapshotSize,snapshotQuota,secretQuota,maxSecretsPerSandbox[40].ssh.app.daytona.io[16]?