--- title: Build a Generative-UI Coding Agent with CopilotKit and Daytona description: Wire a CopilotKit Built-in Agent to a Daytona sandbox with full shell and filesystem access, where every tool call streams into the chat as generative UI and any hosted process embeds as a live iframe. guide: tags: ["CopilotKit"] sidebar: label: "CopilotKit" --- This guide demonstrates how to build a [CopilotKit](https://docs.showcase.copilotkit.ai/) Built-in Agent backed by a [Daytona](https://www.daytona.io/) sandbox with full shell and filesystem access. The agent handles whatever a developer might do at a terminal: build apps, debug or analyze code, run scripts, work with data, install packages. Every tool call streams into the chat as generative UI: shell commands render as terminal cards, file edits as syntax-highlighted code, listings and grep results as structured cards, and any hosted process (dev server, static site, API) as a live `