Skip to content

Latest commit

 

History

History
223 lines (176 loc) · 9.25 KB

README.md

File metadata and controls

223 lines (176 loc) · 9.25 KB

iPad + Mac mini AI Development Environment

Owner: Flyers Purpose: Private, cloud-independent setup where the Mac mini runs everything (Ollama agents, trading engine dev server, blog editorial OS) and the iPad becomes a full travel workstation — no iCloud, no port forwarding, no exposed services.

Status: Phase 1 (this doc). Agents stay on launchd exactly as they run today. Docker is a future phase, not a prerequisite.


Architecture

                    Internet
                        │
                  Tailscale VPN (private, encrypted)
                        │
        ┌───────────────┴───────────────┐
        │                               │
   iPad Pro (2TB)                  Mac mini (512GB internal
  Thin client                    + external SSD for models/data)
        │                               │
        │  Termius (SSH + tmux)         │
        │  Safari → code-server         │  launchd agents (Eddie, Maggie,
        │  Möbius Sync (Syncthing)      │  Frank, Maya, Janet, Sophie, Ross)
        │  Working Copy (Git, optional) │  Ollama (mistral, gemma3:12b)
        │                               │  code-server (Docker, port 8080)
        │                               │  Syncthing
        └──────────── GitHub (source of truth for code) ────────────

Design principles

  • No iCloud anywhere in this stack
  • Mac mini does all compute; iPad never runs models locally
  • Agents stay on launchd — don't fix what isn't broken
  • Source code lives in Git; large/working files sync via Syncthing
  • Nothing is exposed to the public internet — Tailscale only

Hardware

Mac mini (512GB internal)

  • Keep internal SSD for macOS, apps, Docker images only
  • Move Ollama models, agent working data, and large project files to an external SSD

Recommended: external SSD

  • 2–4TB USB-C SSD (~$200–300 one-time)
  • Suggested layout:
    /Volumes/External/
      models/        ← Ollama model files
      projects/      ← trading-engine, k8s-learning-lab, blog editorial OS
      knowledge/     ← Fabric AI outputs, notes, prompts
      backups/
    

iPad Pro (2TB)

  • Coding, monitoring, blog writing, light edits while traveling
  • No local model inference — it's a thin client, by design

Software Stack — Phase 1 (set this up now)

Component Role Cost
Tailscale Private VPN between Mac mini and iPad Free
code-server Browser-based VS Code, runs on Mac mini Free
Termius SSH + tmux + SFTP browser from iPad Free (Pro tier ~$60/yr adds host sync across devices, not required)
tmux Persistent terminal sessions Free
Syncthing + Möbius Sync P2P file sync, no cloud Free + $4.99 one-time
GitHub Source control for all projects Free
Working Copy Git client on iPad (optional, for push/commit) Free read-only / $19.99 to unlock push
Jump Desktop GUI fallback (Docker Desktop, troubleshooting) Check current pricing; skip if rarely needed

Total: roughly $5/year + ~$250–300 one-time for the external SSD, since Termius free tier and Syncthing cover the core functionality.


Setup Steps

1. Tailscale (do this first — everything else depends on it)

  1. Install Tailscale on Mac mini, sign in.
  2. Install Tailscale on iPad, sign in with the same account.
  3. Confirm the Mac mini shows up in the iPad app with a reachable hostname like mac-mini.<your-tailnet>.ts.net.

2. SSH access

  1. On Mac mini: System Settings → General → Sharing → Remote Login → enable.
  2. On iPad: install Termius.
  3. Add a new host using the Mac mini's Tailscale hostname.
  4. Use SSH keys, not passwords — generate a key pair in Termius (Keychain → New Key), add the public key to the Mac mini's ~/.ssh/authorized_keys.
  5. Termius's built-in SFTP browser (tap the host → Files) lets you drag-and-drop files to/from the Mac mini without a separate app — handy for quick one-off transfers outside the Syncthing folders.

3. tmux (so SSH drops don't kill your work)

On the Mac mini:

brew install tmux

Daily pattern from iPad:

tmux new -s dev        # first time
tmux attach -t dev     # reconnect after disconnect/reboot of the SSH session

Everything running inside that session — log tailing, a dev server, a script — survives you closing the Blink app.

4. code-server (browser-based editor on the Mac mini)

Install via Homebrew:

brew install code-server

Run it as a background service so it survives reboots:

brew services start code-server

Default config lives at ~/.config/code-server/config.yaml — set a password there, and bind to 127.0.0.1 (Tailscale handles the secure tunnel, so you don't need it listening on all interfaces).

From iPad Safari, visit:

http://mac-mini.<your-tailnet>.ts.net:8080

This gives you a full VS Code interface — edit App.jsx, server.cjs, agent scripts, blog markdown — directly, no separate app needed.

5. Syncthing (file sync, not source code)

On Mac mini:

brew install syncthing
brew services start syncthing

On iPad: install Möbius Sync, add the Mac mini as a device (Syncthing pairs via device ID, shown in its web UI at localhost:8384 — access that over Tailscale too if needed).

What to sync (be selective — iPad has more storage, but don't mirror everything):

  • Trading engine project folder
  • Blog editorial OS folders
  • Fidelity exports / portfolio_import.json
  • Photo organizer outputs (if not already on the external SSD)

What NOT to sync via Syncthing — put this in Git instead:

  • k8s-learning-lab
  • Any project with a .git folder already

6. GitHub (source of truth for code)

For each project not yet in a repo:

cd ~/projects/<project-name>
git init
git add .
git commit -m "initial commit"
gh repo create <project-name> --private --source=. --push

On iPad, install Working Copy, clone the repos. Free tier lets you pull and view diffs; the $19.99 unlock lets you commit and push directly from iPad if you want to make edits on the go without code-server.


Daily Travel Workflow

Morning check-in

  1. Open Tailscale (confirm Mac mini shows connected)
  2. Open Termius → tmux attach -t dev
  3. Check agent logs / last run times for Eddie through Ross
  4. If something needs restarting: launchctl kickstart -k gui/$(id -u)/<agent-label>

Working session

  1. Safari → code-server → edit trading engine or blog files directly on the Mac mini
  2. Commit/push from code-server's integrated terminal, or from Working Copy if editing locally on iPad
  3. Syncthing handles non-code files in the background, no action needed

Need a GUI (Docker Desktop, Xcode, one-off troubleshooting)

  1. Open Jump Desktop → full remote session → disconnect when done

Agents — Stay on launchd (Phase 1)

Your 7 agents (Eddie, Maggie, Frank, Maya, Janet, Sophie, Ross) keep running exactly as configured today:

  • launchd scheduling, unchanged
  • Ollama (mistral:latest for fast agents, gemma3:12b for main agents), unchanged
  • LLM_BACKEND= env var switching, unchanged
  • Gmail SMTP delivery via Ross, unchanged

Don't containerize these yet. They work, they're simple to debug via tail -f on their log files, and Docker adds a layer of indirection you don't need until you hit an actual limitation (e.g. wanting to run them on another machine, or needing strict resource isolation).


Phase 2 — Later, Optional, Not Required

Move to Docker Compose only if/when you hit a real reason to — for example, wanting to run the agent stack on a second machine, or wanting Grafana/Prometheus-style monitoring instead of raw logs.

If/when that day comes:

  • docker-compose.yml covering Ollama, n8n (if you want visual workflow orchestration), Postgres/Redis (only if an agent actually needs persistent state beyond files), Caddy (reverse proxy), Grafana + Prometheus (dashboards), Uptime Kuma (uptime checks)
  • Migrate one agent at a time, keep the launchd version running in parallel until the Docker version is verified
  • Add a Postgres/Redis tier only when an agent's needs outgrow flat files/CSVs — not before

This phase is a homelab project in its own right. Treat it as optional polish, not a blocker to traveling productively with the iPad.


Security Checklist

  • Tailscale only — no service bound to a public interface
  • SSH key-based auth only, password auth disabled
  • FileVault enabled on Mac mini
  • macOS firewall enabled
  • code-server password set, bound to localhost (Tailscale provides the tunnel)
  • Automatic security updates on
  • Time Machine or equivalent backup of the external SSD

Cost Summary

Item Cost
Tailscale Free
GitHub Free
code-server Free
Syncthing Free
Möbius Sync $4.99 one-time
Termius Free (Pro ~$60/yr optional, not required)
Working Copy (push unlock) $19.99 one-time (optional)
Jump Desktop Variable — check current pricing, skip if rarely needed
External 4TB SSD ~$250–300 one-time

Ongoing: ~$5/year (Möbius Sync one-time only). One-time: ~$255–325 if you add the SSD and Working Copy push unlock; less if you stick to free tiers throughout.