CLI AI Agents to Apple Ecosystem Bridge

Mar 1, 2025 · 2 min read

Overview

Apple’s ecosystem is a beautifully walled garden. The apps are great, but they don’t expose APIs for automation in any meaningful way. AppleScript is the only real bridge — and it’s awkward, undocumented, and fragile.

So I built a bridge anyway.

The system lets terminal-based AI agents (the kind that live in my CLI and write code, manage tasks, and do actual work) interact with Apple Reminders, Calendar, and other native apps. No cloud APIs. No accounts. Just SQLite as the handshake layer and AppleScript as the translator.

How It Works

  • SQLite database acts as the shared state between the AI agent and AppleScript bridges
  • Agent writes to the database (add a reminder, create a calendar event)
  • AppleScript bridge reads the database and executes the corresponding native app action
  • Bidirectional — native app changes can flow back to the agent via database polling

Why It Matters

Local AI agents are powerful, but they’re trapped in the terminal. Being able to push reminders to Apple Reminders, create calendar events, or read notifications without leaving the CLI closes the loop between AI reasoning and real-world action.

No cloud dependency. No API keys. Just a database file and some AppleScript glue.

Technologies

  • Python (agent logic and database layer)
  • SQLite (shared state)
  • AppleScript (native app automation)
  • Local-first architecture
Derek Armstrong - Software Engineer · AI · Infrastructure
Authors
Software Engineer · AI · Infrastructure
I’m Derek — software engineer, infrastructure nerd, and chronic tinkerer. 10+ years building payment platforms, production systems, and the kind of infrastructure that has to work at 3am whether I’m awake or not. When I’m not at my day job, I’m running local LLMs on dual 3090s, 3D printing things my wife didn’t ask for, and writing about all of it here. Topics range from payments architecture and DevOps to self-hosted AI and whatever I broke this week.