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

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.

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).

Raw markdown version of this recap