✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • Updated: January 6, 2026
  • 8 min read

Introducing the SYSTEM Platform: A Split Architecture for Secure Mac Automation

The SYSTEM platform is a split‑architecture solution that combines a Cloudflare‑Worker “brain” with a local “bridge” running on macOS, delivering secure, real‑time automation through a rich set of API endpoints, Raycast integration, and native macOS tools.

SYSTEM platform architecture diagram

Overview of the SYSTEM Platform

Designed for tech‑savvy professionals and developers, SYSTEM empowers you to control your Mac from anywhere using natural language. By offloading the intelligence layer to Cloudflare Workers and keeping execution local, it achieves a balance of speed, privacy, and extensibility. Whether you need to schedule a daily report, trigger a complex AppleScript, or launch a Raycast command, SYSTEM provides a unified, developer‑friendly interface.

The platform’s open architecture aligns with the UBOS platform overview, offering a familiar environment for teams already leveraging UBOS for AI‑driven workflows.

1. Architecture: Cloudflare‑Worker Brain & Local Bridge

SYSTEM’s core innovation lies in its split architecture:

  • Agent (Brain) – Hosted on Cloudflare Workers, this component handles natural‑language processing (using Claude or other LLMs), state management, scheduling, and orchestration of tools.
  • Bridge (Body) – A lightweight Express server running on your Mac (localhost:3456 by default). It executes AppleScript, shell commands, Raycast extensions, and other macOS‑specific actions.

The two parts communicate over a secure WebSocket tunnel, ensuring real‑time bidirectional updates while keeping sensitive commands confined to the local machine. This design mirrors the security‑first approach of the Enterprise AI platform by UBOS, where edge compute never touches private data.

Visual Diagram

┌─────────────┐          HTTPS          ┌─────────────────────┐
│   USER      │ ──────────────────────► │   CLOUDFARE WORKER │
│ (phone/web) │                         │   (Agent/Brain)    │
└─────┬───────┘                         └───────┬─────────────┘
      │                                        │
      ▼                                        ▼
┌─────────────────────┐          Tunnel          ┌─────────────────────┐
│   LOCAL BRIDGE      │ ◀─────────────────────── │   CLOUDFARE TUNNEL │
│   (Bridge/Body)     │                         │   (Secure Tunnel) │
└─────────────────────┘                         └─────────────────────┘
  

2. Setup & Authentication Process

Getting SYSTEM up and running is a three‑step wizard that can be completed in under ten minutes.

Step‑by‑Step Installation

  1. Clone the repository and install dependencies:
    git clone https://github.com/ygwyg/system
    cd system && npm install
  2. Run the setup wizard:
    npm run setup

    The wizard prompts for:

    • Anthropic or OpenAI API key (for LLM access)
    • Raycast extension directory (auto‑detects compatible tools)
    • Preferred authentication method (Bearer token or Cloudflare Access)
  3. Start the platform:
    npm start

    This launches the local bridge, opens a secure Cloudflare tunnel, and displays the agent UI in your browser.

Authentication Mechanics

All API calls require a secret token generated during npm run setup. The token is stored in bridge.config.json and can be supplied in two ways:

  • Header: Authorization: Bearer <api_secret>
  • Query parameter: ?token=<api_secret>

For enterprises, you can layer Cloudflare Access on top of the token, creating a Zero‑Trust perimeter before any request reaches the Worker brain. This mirrors the security best practices recommended across UBOS solutions.

3. Core API Endpoints

SYSTEM exposes a concise REST‑style API that developers can call directly or via the built‑in bridge. Below is a quick reference of the most frequently used endpoints.

Chat Endpoint – Natural Language Commands

POST /chat
Headers: Authorization: Bearer <api_secret>
Body:
{
  "message": "Play some jazz music"
}
Response:
{
  "message": "Playing jazz on Apple Music",
  "actions": [
    {
      "tool": "music_play",
      "args": { "query": "jazz" },
      "success": true,
      "result": "Now playing: Jazz Vibes"
    }
  ]
}
  

Schedules – Timed & Recurring Tasks

GET /schedules
POST /schedules
DELETE /schedules/:id

Example payload for creating a schedule:

{
"description": "Remind me to stand up at 10 am",
"cron": "0 10 * * *"
}

State – Persistent Context

GET /state

The response includes user preferences, conversation history length, and active schedule count, useful for debugging or building custom dashboards.

Tools – Discover & Execute Local Capabilities

GET /tools
POST /execute

Sample execution request to open Safari:

{
"tool": "open_app",
"args": { "app": "Safari" }
}

Bridge Health & WebSocket

GET /health
WebSocket: wss://<agent>.workers.dev/ws?token=<api_secret>

Real‑time events such as scheduled_result, notification, and bridge_status are streamed to connected clients, enabling live dashboards or CLI monitors.

4. macOS Automation Tools & Raycast Integration

The Bridge ships with a curated toolbox that covers the most common macOS automation scenarios. Each tool is exposed as a JSON‑serializable command, making it trivial to invoke from scripts, chat, or third‑party services.

Core Toolset

  • AppleScript – Execute safe AppleScript snippets.
  • Shell – Run allow‑listed shell commands (no sudo, no destructive patterns).
  • Open App / URL – Launch any installed app or open a web address.
  • Music Control – Play, pause, skip, or query Apple Music.
  • Notifications & Speech – Show macOS notifications or speak text aloud.
  • Clipboard & Screenshot – Read/write clipboard and capture screen images.
  • File & Finder – Search, reveal, or trash files via Finder.
  • Shortcuts – Trigger any Shortcut defined in the Shortcuts app.

Raycast Extension Discovery

During the npm run setup phase, SYSTEM scans ~/.config/raycast/extensions/ and automatically registers compatible commands as tools. Only extensions with mode: "no-view" or mode: "view" are eligible, ensuring they can run headlessly.

For example, the popular AI YouTube Comment Analysis tool can be invoked via:

{
"tool": "youtube_comment_analyze",
"args": { "videoId": "dQw4w9WgXcQ" }
}

If an extension is not auto‑detected, you can still call it through the generic raycast fallback tool:

{
"tool": "raycast_fallback",
"args": {
"extension": "spotify-player",
"command": "play",
"arguments": { "query": "jazz" }
}
}

Sample Raycast‑Powered Workflow

Imagine you want to create a Linear issue and notify your Slack channel in one spoken command:

“Create a Linear issue for the login bug and post it to #dev‑ops.”

SYSTEM resolves the request as:

  1. Calls the linear_create_issue tool (registered from the Linear Raycast extension).
  2. Uses the slack_send_message tool to post the newly created issue URL.
  3. Confirms the action via a macOS notification before execution.

5. Security Features & Best Practices

Security is baked into every layer of SYSTEM, reflecting the rigorous standards seen in the About UBOS philosophy.

Authentication & Token Management

  • Bearer token – Required for every HTTP request; regenerated on each setup run.
  • Zero‑Trust Edge – Optional Cloudflare Access policies restrict who can even reach the Worker.

Command Whitelisting & Shell Safety

The bridge only permits commands listed in its internal whitelist. Dangerous patterns such as rm -rf / or sudo are automatically rejected, preventing accidental system damage.

Encrypted Tunnels

Each session creates a fresh Cloudflare Tunnel URL, which expires after a configurable period (default 24 hours). The tunnel binds to 0.0.0.0 only while active, reducing attack surface.

Human‑in‑the‑Loop Confirmation

Sensitive actions—like sending iMessages, posting to Slack, or modifying files—trigger a macOS notification asking the user to confirm. This mirrors the UBOS partner program emphasis on responsible AI usage.

6. Benefits & Real‑World Use‑Cases

By separating intelligence from execution, SYSTEM delivers a set of tangible advantages for developers and organizations.

Why Developers Love It

  • Fast iteration – Update LLM prompts in the Cloudflare Worker without redeploying the local bridge.
  • Unified API – One endpoint for chat, scheduling, and tool execution simplifies client code.
  • Extensible tooling – Add new macOS capabilities by dropping a script into the tools/ folder or by installing a Raycast extension.

Enterprise Scenarios

  • Remote IT support – Technicians can issue natural‑language commands to troubleshoot employee Macs without VPN.
  • Automated reporting – Schedule daily data pulls, generate PDFs, and email them via the mail_send tool.
  • Compliance auditing – Use the state endpoint to capture a snapshot of system preferences for audit trails.

Start‑up & SMB Applications

Small teams can leverage SYSTEM as a low‑code automation layer, reducing reliance on custom scripts. Check out the UBOS for startups page for similar low‑code success stories.

7. Getting Started – Quick Checklist

  1. Visit the UBOS homepage and review the UBOS templates for quick start if you need a pre‑built UI.
  2. Clone the SYSTEM repo and run npm run setup.
  3. Generate your API secret and store it securely.
  4. Enable desired Raycast extensions (e.g., AI LinkedIn Post Optimization).
  5. Test the /chat endpoint with a simple command like “Show me the current battery level.”
  6. Configure Cloudflare Access for production deployments.

Conclusion & Call‑to‑Action

The SYSTEM platform demonstrates how a split Cloudflare‑Worker brain and a local macOS bridge can deliver secure, real‑time automation without sacrificing privacy. Whether you are a solo developer, a fast‑growing startup, or an enterprise IT department, SYSTEM gives you a programmable, AI‑enhanced control plane that scales from a single Mac to thousands of devices.

Ready to try it yourself? Explore the official documentation, spin up a free Cloudflare Workers account, and follow the quick‑start guide above. For deeper integration with AI agents, see the AI marketing agents page for complementary use‑cases.

For the latest news, updates, and community examples, visit the SYSTEM platform website.


Andrii Bidochko

CTO UBOS

Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.