{
 "kind": "api",
 "slug": "daytona",
 "path": "apis/daytona/",
 "name": "Daytona",
 "logo": "https://agentgid.com/media/avatars/daytona.png",
 "maker": "Daytona Platforms",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Code sandboxes",
   "apis/sandbox/"
  ]
 ],
 "lead": "Cloud computers for AI code, with GPU and Windows.",
 "chips": [
  {
   "label": "Code sandboxes",
   "path": "apis/sandbox/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Run my agent's code in Daytona: on the server, create a Daytona() client that reads DAYTONA_API_KEY from .env, create a sandbox, run the code with process.code_run, check exit_code, return result, and delete the sandbox when done."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://www.daytona.io"
  },
  {
   "label": "Pricing",
   "href": "https://www.daytona.io/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/daytona/clients"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free credits",
   "status": "cond",
   "sub": "One-time or needs a card",
   "quote": null,
   "note": "Free tier: $200 in free compute, no credit card. As reported on the official pricing page, checked Nov 1, 2026.",
   "src": "https://www.daytona.io/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "distribute, resell, lease, or sublicense the Services to any third party or otherwise commercialize the Services in any way",
   "note": "Fine as part of your own product, but you may not resell or sublicense the service itself; you answer for what your users and agents run.",
   "src": "https://www.daytona.io/terms-of-service"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var DAYTONA_API_KEY",
   "quote": "Every request sends the key as a bearer token.",
   "note": "API key sent as a bearer token; the SDKs read DAYTONA_API_KEY from the environment or a .env file. The CLI can also log in through the browser.",
   "src": "https://www.daytona.io/docs/en/authentication.md"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": "Daytona Model Context Protocol (MCP) server enables AI agents to interact with Daytona Sandboxes programmatically.",
   "note": " Our agent check: 6 of 6 (Nov 13, 2026).",
   "src": "https://www.daytona.io/docs/en/mcp.md"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Nov 1, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Daytona does",
   "parts": [
    {
     "t": "prose",
     "text": "Daytona rents you small, separate computers in the cloud, called sandboxes, where code written by an AI agent runs safely away from your app. Besides Linux it offers Windows machines and machines with graphics cards. You pay per second for what you reserve, and new accounts get $200 of free compute."
    },
    {
     "t": "list",
     "items": [
      "Daytona is one of 12 APIs in the Code sandboxes category on AgentGid.",
      "It is one of 11 that can be started for free.",
      "It ships an official MCP server, like 3 others here.",
      "Its official SDK is the 4th most downloaded in the category (2.4M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Run the code your AI agent writes",
       "text": "Your agent writes a Python or TypeScript snippet, a sandbox runs it and your app gets the printed result back.",
       "idea": false
      },
      {
       "title": "Chat that analyzes a user's data file",
       "text": "A user uploads a spreadsheet, the AI writes analysis code, and the sandbox runs it and returns numbers and charts.",
       "idea": false
      },
      {
       "title": "An agent that drives a desktop",
       "text": "Give an AI agent a Linux or Windows desktop it can see and click, to test desktop apps or finish tasks with a mouse and keyboard.",
       "idea": false
      },
      {
       "title": "AI work that needs a graphics card",
       "text": "Rent a sandbox with an NVIDIA or AMD graphics card by the second, for example to test AI models or graphics code.",
       "idea": false
      },
      {
       "title": "Run private data with no internet",
       "text": "When an agent works on private files, start its sandbox with all outgoing traffic blocked.",
       "idea": true
      },
      {
       "title": "Show a preview of an app the agent built",
       "text": "The agent starts a web app inside the sandbox and you share a link that expires, so a client can look at it.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Daytona popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "1.8M",
       "l": "SDK downloads a week",
       "d": "+6.0% on the 4-week average",
       "up": true
      },
      {
       "n": "19",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "17",
       "l": "GitHub stars, daytona/clients"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "$200 in free compute, no credit card"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "vCPU $0.0504/hour; memory $0.0162 per GiB-hour; storage $0.000108 per GiB-hour after first 5 GiB free"
      },
      {
       "l": "Plans",
       "v": "Pay as you go with volume discounts; Enterprise for SSO/BYOC. Windows $0.0858/vCPU-hour; GPUs from $0.57/hour (RTX 4090 preemptible). MCP server ships in the Daytona CLI ('daytona mcp init/start'), not as a separate package. Startups up to $50k credits. Core development moved to a private codebase in June 2026; the public daytonaio/daytona repo is archived (README). SDKs are published from daytona/clients (npm @daytona/sdk, also still @daytonaio/sdk)."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1 vCPU for 1 hour",
       "$0.0504"
      ],
      [
       "1 GiB of memory for 1 hour",
       "$0.0162"
      ],
      [
       "1 Windows vCPU for 1 hour",
       "$0.0858"
      ],
      [
       "1 hour of an RTX 4090 graphics card (preemptible)",
       "$0.57"
      ]
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Nov 1, 2026. Prices change: confirm before you buy.",
     "link": "daytona.io/pricing",
     "href": "https://www.daytona.io/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Tier 1 (email verified)",
       "v": "10 vCPU, 10 GiB RAM, 30 GiB disk in total; restricted internet access",
       "src": "https://www.daytona.io/docs/en/limits.md"
      },
      {
       "l": "Tier 2 (card linked, $25 top-up)",
       "v": "100 vCPU, 200 GiB RAM, 300 GiB disk; still restricted internet access",
       "src": "https://www.daytona.io/docs/en/limits.md"
      },
      {
       "l": "Tier 3 ($500 top-up) and Tier 4 ($2000 every 30 days)",
       "v": "250 to 500 vCPU, full internet access by default",
       "src": "https://www.daytona.io/docs/en/network-limits.md"
      },
      {
       "l": "Tier 1",
       "v": "10,000 requests and 300 sandbox creations a minute",
       "src": "https://www.daytona.io/docs/en/limits.md"
      },
      {
       "l": "All",
       "v": "A running sandbox stops after 15 minutes of inactivity unless you change it",
       "src": "https://www.daytona.io/docs/en/sandboxes.md"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "daytona.io/docs/en/limits.md",
     "href": "https://www.daytona.io/docs/en/limits.md"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key sent as a bearer token; the SDKs read DAYTONA_API_KEY from the environment or a .env file. The CLI can also log in through the browser."
      },
      {
       "l": "Environment variable",
       "v": "DAYTONA_API_KEY",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "No"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Create a Daytona account and an API key with an expiry date and the needed permissions. Put it in .env as DAYTONA_API_KEY and create the client with Daytona().",
      "For full internet access or more resources, verify the account and top up to the needed tier. No code change; network allow lists start to take effect on Tier 3 and 4."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "It is a paid cloud service with free starting credit. Use it inside your own product; you may not resell access to the service itself. Mining crypto and other abuse are forbidden."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Fine as part of your own product, but you may not resell or sublicense the service itself; you answer for what your users and agents run.",
       "quote": "distribute, resell, lease, or sublicense the Services to any third party or otherwise commercialize the Services in any way",
       "src": "https://www.daytona.io/terms-of-service"
      },
      {
       "l": "redistribute-files",
       "v": "With conditions",
       "status": "cond",
       "sub": "The TypeScript and Python packages are Apache-2.0; keep their notices. The old server code is AGPL-3.0 and no longer maintained.",
       "quote": "\"license\":\"Apache-2.0\"",
       "src": "https://pypi.org/pypi/daytona/json"
      },
      {
       "l": "To train your own AI",
       "v": "Yes",
       "status": "yes",
       "sub": "Daytona does not train on your content; running your own training jobs (for example reinforcement learning) is a documented use.",
       "quote": "Daytona does not use customer content to improve its services or train models, or for any purpose beyond fulfilling your requests.",
       "src": "https://www.daytona.io/terms-of-service"
      },
      {
       "l": "Trains on what you send",
       "v": "“Daytona does not use customer content to improve its services or train models, or for any purpose beyond fulfilling your requests.”",
       "quote": null,
       "src": "https://www.daytona.io/terms-of-service"
      },
      {
       "l": "Where data is stored",
       "v": "“Regions managed by Daytona and available to all organizations:”",
       "quote": null,
       "src": "https://www.daytona.io/docs/en/regions.md"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "429 (DaytonaRateLimitError)",
       "v": "Too many requests for your tier.",
       "sub": "Retry with exponential backoff (1s, 2s, 4s, 8s) and watch the X-RateLimit-Remaining headers."
      },
      {
       "l": "401 (DaytonaAuthenticationError)",
       "v": "The API key is missing, wrong or expired.",
       "sub": "Check DAYTONA_API_KEY and the key's expiry date in the dashboard."
      },
      {
       "l": "404 (DaytonaNotFoundError)",
       "v": "The sandbox or file does not exist (for example, it was deleted after stopping).",
       "sub": "Create a new sandbox or check the path."
      },
      {
       "l": "DaytonaTimeoutError",
       "v": "The sandbox did not start in time; it may still be starting.",
       "sub": "Use the sandbox_id on the error to get() the sandbox and delete() it, so it does not keep billing."
      },
      {
       "l": "400",
       "v": "Conflicting network settings were sent together.",
       "sub": "Set only one of networkAllowList, domainAllowList or networkBlockAll."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Daytona MCP server (part of the Daytona command-line tool)",
       "sub": "daytona login, then: daytona mcp init claude (or cursor, windsurf); for other agents daytona mcp config prints the settings to paste"
      },
      {
       "l": "npm",
       "v": "npm install @daytona/sdk",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install daytona",
       "code": true
      }
     ]
    },
    {
     "t": "h3",
     "text": "Instructions in its docs to check first"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The docs say",
       "v": "“powershell -Command \"irm https://get.daytona.io/windows | iex\"”",
       "sub": "Ask the person first; it downloads and runs an install script for a global tool."
      },
      {
       "l": "The docs say",
       "v": "“npx skills add https://github.com/daytona/skills --skill daytona”",
       "sub": "Ask the person first; it installs an unpinned skill into their agent."
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Daytona",
       "me": true,
       "facts": [
        "from $0.000108 per GiB-hour after",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "E2B",
       "why": "Pick E2B for Linux-only sandboxes with an open-source engine you can host yourself and $100 of free credits.",
       "path": "apis/e2b/",
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Vercel Sandbox",
       "why": "Pick Vercel Sandbox when your app runs on Vercel and you want to pay mainly for busy CPU time.",
       "path": "apis/vercel-sandbox/",
       "facts": [
        "from $0.0212 per GB-hour",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Modal Sandboxes",
       "why": "Pick Modal Sandboxes when you also run other serverless GPU jobs on Modal.",
       "path": "apis/modal-sandboxes/",
       "facts": [
        "from $0.00000667 per GiB per",
        "Free tier"
       ]
      }
     ],
     "more": "All code sandboxes APIs",
     "more_path": "apis/sandbox/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Run my agent's code in Daytona: on the server, create a Daytona() client that reads DAYTONA_API_KEY from .env, create a sandbox, run the code with process.code_run, check exit_code, return result, and delete the sandbox when done."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create an account, create an API key in the dashboard, and save it as DAYTONA_API_KEY in .env.",
       "code": "DAYTONA_API_KEY=YOUR_API_KEY",
       "src": "https://www.daytona.io/docs/en.md"
      },
      {
       "text": "Install the package for your language.",
       "code": "pip install daytona\n# or: npm install @daytona/sdk",
       "src": "https://www.daytona.io/docs/en.md"
      },
      {
       "text": "Create a sandbox, run code and print the result.",
       "code": "from daytona import Daytona\n\ndaytona = Daytona()\nsandbox = daytona.create()\nresponse = sandbox.process.code_run('print(\"Hello World\")')\nprint(response.result)",
       "src": "https://www.daytona.io/docs/en.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "# API responses include exitCode field for error handling\ncurl 'https://proxy.app.daytona.io/toolbox/{sandboxId}/process/execute' \\\n  --request POST \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n  \"command\": \"python3 -c \\\"invalid python code\\\"\"\n}'",
       "intro": "Verbatim from the docs. This example leaves out the key header; every request needs Authorization Bearer with your API key, and the sandbox is created first with POST https://app.daytona.io/api/sandbox."
      },
      {
       "tab": "Response",
       "code": "# Response includes:\n# {\n#   \"result\": \"\",\n#   \"exitCode\": 1\n# }"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Hard-coding the key as in the quickstart (DaytonaConfig(api_key=\"...\")).",
       "fix": "Call Daytona() with no key and set DAYTONA_API_KEY in the environment or .env.",
       "why": "The SDKs read the key from the environment, and a key in code ends up in git."
      },
      {
       "dont": "Sharing the standard preview link token with a client.",
       "fix": "Share a signed preview URL, which is bound to one port, expires and can be revoked.",
       "why": "The standard token controls the whole sandbox, including its terminal and files."
      },
      {
       "dont": "Expecting pip install or git clone to reach any site from a new free account.",
       "fix": "Know that Tier 1 and 2 sandboxes only reach essential services; top up to Tier 3 for full internet access.",
       "why": "Tier network restrictions override sandbox settings."
      },
      {
       "dont": "Leaving stopped sandboxes around.",
       "fix": "Archive or delete sandboxes you no longer need.",
       "why": "Stopped container sandboxes still bill for disk; archived and deleted ones do not."
      },
      {
       "dont": "Ignoring a timeout on create.",
       "fix": "Read sandbox_id from DaytonaTimeoutError and delete that sandbox.",
       "why": "The sandbox may still be starting and billing."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is it free to try?",
       "a": "Yes. The pricing page lists $200 in free compute and a free trial with no credit card.",
       "evidence": {
        "url": "https://www.daytona.io/pricing",
        "quote": "Sign up for a free trial - no credit card required"
       }
      },
      {
       "q": "What does an hour of a small Linux sandbox cost?",
       "a": "By our arithmetic from the listed rates: 1 vCPU ($0.0504) plus 2 GiB of memory (2 x $0.0162) is about $0.083 an hour, billed per second; the first 5 GiB of disk are free.",
       "evidence": {
        "url": "https://www.daytona.io/pricing",
        "quote": "All billing is calculated per second."
       }
      },
      {
       "q": "Does Daytona train AI on my code?",
       "a": "No. The terms say customer content is used only to fulfil your requests, not to train models.",
       "evidence": {
        "url": "https://www.daytona.io/terms-of-service",
        "quote": "Daytona does not use customer content to improve its services or train models, or for any purpose beyond fulfilling your requests."
       }
      },
      {
       "q": "Can I keep data in Europe?",
       "a": "Yes. Daytona has shared regions in the United States and in Europe, chosen with the target setting.",
       "evidence": {
        "url": "https://www.daytona.io/docs/en/regions.md",
        "quote": "Regions managed by Daytona and available to all organizations:"
       }
      },
      {
       "q": "Is Daytona open source?",
       "a": "Not any more for the service itself. The old public code stays available under its license but is no longer maintained; development moved to a private codebase in June 2026.",
       "evidence": {
        "url": "https://github.com/daytonaio/daytona/blob/main/README.md",
        "quote": "As of June 2026, Daytona's core development has moved to a private codebase."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Daytona Platforms"
  ],
  [
   "Category",
   "Code sandboxes"
  ],
  [
   "Price",
   "from $0.000108 per GiB-hour after"
  ],
  [
   "Official SDK",
   "npm @daytona/sdk, PyPI daytona"
  ],
  [
   "Latest SDK",
   "0.231.1 on npm"
  ],
  [
   "Agent check",
   "6 of 6"
  ],
  [
   "Pricing checked",
   "Nov 1, 2026"
  ]
 ],
 "good": [
  "You need an account and a key; keep the key on your server. Preview tokens also give full control of a sandbox, so do not share them.",
  "On the starting tiers, internet access from sandboxes is restricted and you cannot lift it per sandbox.",
  "Stopped sandboxes keep billing for their disk until you archive or delete them."
 ],
 "checked_line": "Read by AgentGid from 28 official pages, card checked Nov 10, 2026; usage numbers update daily."
}