<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc" -->

---
title: How to build sandboxes for agents with Daytona #ai...
description: A walkthrough shows how to use the Daytona skill and SDK to give each game its own isolated sandbox environment for a coding agent. It covers creating a free...
canonical: https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills | daily.dev
og:description: A walkthrough shows how to use the Daytona skill and SDK to give each game its own isolated sandbox environment for a coding agent. It covers creating a free...
og:url: https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc
og:image: https://api.daily.dev/og/posts/fqgtAWdcc.png
og:image:alt: How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills

**[Code With Antonio](https://daily.dev/sources/codewithantonio)** · 1 min read · 0 upvotes · 0 comments

## Summary

A walkthrough shows how to use the Daytona skill and SDK to give each game its own isolated sandbox environment for a coding agent. It covers creating a free Daytona account with $100 in credit (plus a coupon code for another $100), installing the Daytona SDK and skills, verifying the skill appears in a coding agent, and writing a helper function to create a sandbox per game ID that is called on chat start, adding a sandbox ID property to the schema.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=TNkgIVXHqM4>

## Questions this post answers

### How do I create a sandbox per game for my AI coding agent using Daytona?

Install the Daytona SDK and Daytona skills, then confirm the skill appears in the coding agent. Create a helper function such as create game sandbox in a Daytona utils file that accepts a game ID and creates the sandbox, then call it from the on chat start event of the chat agent. Add a sandbox ID property to the schema to track it.

_Developers wiring up agent sandboxes can find more Daytona workflow walkthroughs on daily.dev._

## Similar posts on daily.dev

- [Introducing Temporal and agentic sandboxes: the OpenAI Agents SDK](https://daily.dev/posts/introducing-temporal-and-agentic-sandboxes-the-openai-agents-sdk-apfcknzlo) · Temporal · 1 upvotes · 0 comments
- [Execute Code with Sandboxes for DeepAgents](https://daily.dev/posts/execute-code-with-sandboxes-for-deepagents-wdu9ka3gi) · LangChain · 1 upvotes · 0 comments
- [Sandboxing AI-Generated Code in 2026: A Real Comparison](https://daily.dev/posts/sandboxing-ai-generated-code-in-2026-a-real-comparison-1m0rjjqj6) · Alex CloudStar · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents)

[View this post on daily.dev](https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills","url":"https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc"},"datePublished":"2026-09-22T13:08:37.309Z","dateModified":"2026-09-22T13:08:55.838Z","description":"A walkthrough shows how to use the Daytona skill and SDK to give each game its own isolated sandbox environment for a coding agent. It covers creating a free...","image":"https://i.ytimg.com/vi/TNkgIVXHqM4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/TNkgIVXHqM4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Code With Antonio","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Code With Antonio","logo":"https://media.daily.dev/image/upload/s--Rb6NNd0z--/f_auto/v1750946186/logos/codewithantonio","url":"https://daily.dev/sources/codewithantonio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents","timeRequired":"PT1M","video":{"@type":"VideoObject","name":"How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills","description":"A walkthrough shows how to use the Daytona skill and SDK to give each game its own isolated sandbox environment for a coding agent. It covers creating a free...","thumbnailUrl":"https://i.ytimg.com/vi/TNkgIVXHqM4/sddefault.jpg","uploadDate":"2026-09-22T13:08:37.309Z","duration":"PT1M","url":"https://api.daily.dev/r/fqgtAWdcc","embedUrl":"https://www.youtube.com/embed/TNkgIVXHqM4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Code With Antonio","item":"https://daily.dev/sources/codewithantonio"},{"@type":"ListItem","position":3,"name":"How to build sandboxes for agents with Daytona #ai #coding #daytona #aiskills"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-build-sandboxes-for-agents-with-daytona-ai-coding-daytona-aiskills-fqgtawdcc#faq","mainEntity":[{"@type":"Question","name":"How do I create a sandbox per game for my AI coding agent using Daytona?","acceptedAnswer":{"@type":"Answer","text":"Install the Daytona SDK and Daytona skills, then confirm the skill appears in the coding agent. Create a helper function such as create game sandbox in a Daytona utils file that accepts a game ID and creates the sandbox, then call it from the on chat start event of the chat agent. Add a sandbox ID property to the schema to track it. Developers wiring up agent sandboxes can find more Daytona workflow walkthroughs on daily.dev."}}]}
```

