# This AI Agent Coded My Entire App Unsupervised (What Could Go Wrong?)

Source: https://www.youtube.com/watch?v=p3C9d6IHb1k
Recap page: https://rapidrecap.app/video/p3C9d6IHb1k
Generated: 2026-03-06T15:34:19.893+00:00

---
## Quick Overview

The AI agent, OpenClaw, successfully built a functional Swift/SwiftUI iOS to-do app by using Claude Code via the Telegram channel, demonstrating that secure, sandboxed AI agent execution via an intermediary protocol like Zapier's Model Context Protocol (MCP) can effectively handle complex development tasks like building and running iOS apps within a virtual machine.

**Key Points:**
- OpenClaw successfully built a functional iOS to-do app using Claude Code within a UTM virtual machine (VM) running macOS 12+.
- The process involved setting up OpenClaw with the Claude API key and configuring Telegram as the primary communication channel for agent interaction.
- Security was maintained by running OpenClaw inside a VM and restricting its access via Zapier's MCP to only necessary tools (like the file system for project creation, but not the Mac App Store).
- The agent successfully performed complex steps including creating the necessary Xcode project files and running the app on the iOS simulator within the VM.
- The developer noted that while the initial setup for using Claude Code via Telegram involved several configuration steps (API key, Telegram bot setup), the resulting code generation was successful, even though the direct file write tool was initially unavailable in the session.

![Screenshot at 10:11: The developer interacts with the custom Telegram bot to begin the process of requesting Claude Code to build an iOS app, showing the agent's primary communication interface.](https://ss.rapidrecap.app/screens/p3C9d6IHb1k/00-10-11.jpg)

**Context:** The video demonstrates an advanced use case for OpenClaw, an AI agent framework designed to execute tasks on a user's computer. The primary goal of this demonstration is to show how OpenClaw, when configured with the Claude AI model via a Telegram channel and secured using Zapier's Model Context Protocol (MCP) within a virtual environment (UTM), can autonomously develop and run an iOS application.

## Detailed Analysis

The video details the process of using the OpenClaw AI agent framework to build an iOS application using the Claude AI model, all executed securely within a UTM virtual machine (VM) environment. The initial setup involved installing OpenClaw via a curl command (0:04), followed by configuring the agent's access and tools using the OpenClaw web dashboard, specifically enabling the 'Coding' profile and ensuring necessary file access permissions were set, while keeping others restricted (13:16). Security was paramount, achieved by isolating OpenClaw within the VM and routing its commands through Zapier's Model Context Protocol (MCP) (1:49, 1:53). The agent's primary interaction method was configured to be Telegram, requiring the developer to create a bot via BotFather (0:55) and input the resulting API token into the OpenClaw configuration (0:59). After successfully installing Claude Code (3:77) and linking the Telegram bot, the developer prompted the agent to build a simple Swift/SwiftUI to-do app from scratch (3:55). Despite initial hurdles, such as the agent lacking a direct file write tool in the initial session, Claude Code successfully generated the necessary Xcode project files (12:43) within the shared folder between the host and guest OS. The final step involved running the generated project inside the iOS simulator within the VM, confirming the AI's ability to handle a complex, multi-step development task end-to-end (14:53).

### OpenClaw Setup & Security

- Installation via curl
- Agent access restricted via MCP using Zapier integration
- Agent configured to use Telegram for all interaction (BotFather setup required)

### Claude Integration

- API key obtained from Claude Console (12:12) and pasted into OpenClaw configuration via Telegram prompt (09:16)
- Claude Sonnet 4-6 model selected (09:01)

### iOS App Development Demonstration

- Agent tasked with building a Swift/SwiftUI to-do app from scratch (12:34)
- Agent created project files in a shared folder accessible by the VM (14:01)

### Final Result & Verification

- The generated app successfully launched in the iOS 17 Pro simulator within the UTM VM, displaying the empty to-do list (14:53)
- Developer confirmed the process worked, highlighting the security benefit of running in a sandbox (14:38)

![Screenshot at 0:01: The host begins the video introducing the topic, showing the OpenClaw website landing page.](https://ss.rapidrecap.app/screens/p3C9d6IHb1k/00-00-01.jpg)
![Screenshot at 1:49: Diagram illustrating the security architecture where the AI Agent communicates through the MCP layer, which restricts access to specified tools on the MCP Server.](https://ss.rapidrecap.app/screens/p3C9d6IHb1k/00-01-49.jpg)
![Screenshot at 10:11: The developer interacts with the BotFather bot on Telegram to begin the process of creating a dedicated bot for OpenClaw integration.](https://ss.rapidrecap.app/screens/p3C9d6IHb1k/00-10-11.jpg)
![Screenshot at 14:53: The final result: a functional 'Todos' app running inside the iOS 17 Pro simulator within the UTM virtual machine.](https://ss.rapidrecap.app/screens/p3C9d6IHb1k/00-14-53.jpg)
