# Secure AI Code Execution with Daytona and Encore.ts

DevFeed: [Secure AI Code Execution with Daytona and Encore.ts](<https://devfeed.tech/articles/secure-ai-code-execution-with-daytona-and-encore-ts-17786.md>)

Original publisher: [Read original article](<https://encore.dev/blog/daytona-tutorial>)

Author: Ivan Cernja

Published: 2025-12-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [AI Sandbox](<https://devfeed.tech/topics/ai-sandbox.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

A tutorial on building a secure backend with Encore.ts and Daytona sandboxes to execute AI-generated code in isolated environments. It covers sandbox creation, timeouts, file operations, execution history, and PostgreSQL storage.

## Source excerpt

Build infrastructure for AI coding agents with sandboxed execution