Running Ovis on an Always-On Mac: Multi-Device Agent Management in Practice
Contents
When working extensively with multiple AI coding agents throughout the day, device coordination quickly becomes a practical challenge.
Our day-to-day workflow is inherently fragmented: working on an M2 MacBook Air at the office during the day, sitting at the home desk on an M1 in the evening, and occasionally checking task execution status on a smartphone during the commute. The most instinctive approach—deploying an independent web console on every single machine—introduces an unsustainable maintenance burden. You end up repeatedly maintaining duplicate environments, tracking down abandoned sessions across machines, and struggling to re-align context. Worse still, long-running agent workloads running on a portable laptop immediately break whenever the lid is closed, sleep mode kicks in, or the Wi-Fi disconnects.
My current production setup follows a straightforward principle: viewing devices follow my daily routine, while the core Ovis console remains permanently anchored to one always-on M1 Mac at home; heavy workloads run on an independent cloud server, while web access and SSH remote development traverse completely separate network pathways.
Core Problems Solved
This architecture addresses four specific engineering trade-offs:
- Eliminating console sprawl across laptops: A single primary Ovis web service (running on Bun) stays anchored on an M1 MacBook Air plugged in at home. The portable M2 MacBook Air and smartphone serve strictly as client viewports without storing duplicate state.
- Decoupling sustained workloads from mobile hardware: An Oracle Cloud VPS runs an independent Herdr instance dedicated to long-running Claude Code tasks. Even when portable laptops sleep or drop off Wi-Fi, the cloud execution context remains intact.
- Decoupling web access from SSH development: The home network has no public IP. Web access to Ovis routes through a Cloudflare Tunnel connector running directly on the M1 with access controls, while terminal access and Herdr node communication route through an independent Linux SSH relay.
- Separating interface management from execution runtime: Ovis handles card-based graphical interaction and multi-machine aggregation, while local Herdr daemons manage terminal lifecycles and workspace snapshots. Network drops on client devices do not terminate background processes.
Daily Routine: Changing the Client, Not the Console
Whether at the office, back home, or on the move, you interact with the exact same Ovis instance anchored on the M1:
| Scenario | Device in Hand | How It Works |
|---|---|---|
| Daytime office work | M2 MacBook Air | Open the browser app to access and operate the Ovis service on the M1 at home |
| Evening at desk | M1 MacBook Air | Interact with the same Ovis instance directly on localhost |
| On the move | Smartphone | Open the paired mobile client to check progress and approve tool invocations |
All three access points connect to the exact same instance:
- When using the M2 at the office, the browser interacts with the M1 service; the M2 does not run an active local Ovis server.
- Returning home to the M1 requires no export or session migration, because all activity was recorded on the M1 console from the start.
- On the commute, the smartphone follows the exact same web access path as the M2: connecting over HTTPS via the custom domain and Cloudflare Access through the M1’s local Cloudflare Tunnel, allowing real-time status checks and tool approvals on the go.
Architecture and Network Plumbing
The logical topology and traffic routing flow as follows:
flowchart TB
subgraph CLIENT["Daily Client Devices"]
M2["M2 MacBook Air: Office Work"]
M1LOCAL["M1 MacBook Air: Local Desk Use"]
PHONE["Smartphone: Commuting & Mobile"]
end
subgraph ACCESS["Web Console Access Layer"]
CF_DOMAIN["Cloudflare DNS"]
CF_ACCESS["Cloudflare Access (Email OTP)"]
CF_TUNNEL["Cloudflare Tunnel (Connector on M1)"]
end
subgraph HOME["Home Host (Always On)"]
OVIS["M1 MacBook Air: Ovis Primary Server"]
HERDR_M1["M1: Local Herdr"]
BRIDGE["Ovis Remote Bridge"]
end
subgraph REMOTE["Remote Cloud Workspace"]
ORACLE["Oracle Cloud VPS"]
HERDR_REMOTE["Remote Herdr"]
CLAUDE_CODE["Claude Code Workspaces"]
end
subgraph NETWORK["SSH Relay & Remote Dev"]
RELAY["Stateless Linux SSH Relay"]
end
M2 -->|"Browser App"| CF_DOMAIN
PHONE -->|"Mobile Client Access"| CF_DOMAIN
CF_DOMAIN --> CF_ACCESS
CF_ACCESS --> CF_TUNNEL
CF_TUNNEL -->|"Localhost Forwarding (127.0.0.1:7317)"| OVIS
M1LOCAL -->|"Direct Localhost"| OVIS
OVIS --> HERDR_M1
OVIS --> BRIDGE
BRIDGE -.->|"Inherit Approved Herdr Machine"| HERDR_REMOTE
HERDR_REMOTE --> CLAUDE_CODE
M1 -->|"Reverse SSH Tunnel"| RELAY
M2 -->|"SSH / ProxyJump"| RELAY
RELAY -->|"Reverse Channel"| M1
The network topology must be understood as two distinct, independent pathways that should not be conflated:
1. Web Console Access Pathway (Cloudflare Edge Architecture)
- A
cloudflareddaemon runs directly on the M1 Mac. It establishes an outbound tunnel to Cloudflare’s edge, mapping the public custom hostname to the local Ovis port (http://127.0.0.1:7317). - Cloudflare Access sits in front, enforcing identity verification via Email One-Time PIN (OTP). Unauthenticated requests trigger an immediate
403at the edge; unauthorized API calls return401inside Ovis. - This connection traverses directly between the M1 and Cloudflare, completely bypassing the SSH Relay.
2. SSH / Herdr Remote Development Pathway (SSH Relay)
- Behind consumer NAT without a public IP, the M1 establishes a persistent reverse SSH tunnel to an independent Linux relay node with a public IP, binding the forwarded port to the relay’s local loopback.
- The portable M2 reaches the M1 via SSH
ProxyJumpthrough this relay node. - The SSH relay strictly provides port forwarding: it runs neither Ovis nor Herdr, and stores no workspace files or agent session state. If the relay server restarts or changes, re-establishing the reverse SSH tunnel restores connectivity without impacting active tasks on the hosts.
Node Roles and Agent Workload Distribution
Across this setup, each machine fulfills a distinct operational role:
- M1 (Home Control Node): Anchors the master environment. It runs the single primary Ovis server (on Bun) and local Herdr, while serving external access via Cloudflare Tunnel and reverse SSH.
- M2 (External Client Device): Used at the office to operate the M1 Ovis console via browser. While it hosts a local Herdr environment, it does not run a redundant Ovis Server.
- Oracle Cloud VPS (Remote Work Node): Runs an independent Herdr runtime dedicated to long-running, resource-intensive Claude Code tasks.
- SSH Relay (Network Intermediary): A stateless Linux VPS acting solely as an SSH jump host and reverse tunnel endpoint, running no application logic.
Agent workloads are distributed based on practical needs: the M1 runs lightweight local assistants (such as agy); the M2 maintains a local fallback environment; heavy sustained tasks run inside cloud Herdr under Claude Code. In everyday development, most terminal panes simply serve as standard shells for builds and logs, and agents are invoked on demand rather than left continuously running on every machine.
Key Mechanisms: Ovis Remote PCs vs. Herdr Machine Inheritance
Managing multiple machines involves distinct configuration logic inside Ovis and Herdr:
- Herdr manages the terminal mesh: Each node runs Herdr to connect machines, manage terminal lifecycles, and share workspace snapshots.
- Ovis aggregates the interface: Ovis can either configure standalone SSH Remote PCs directly, or inherit machines already connected within Herdr.
Machine Inheritance and Permissions
Machines saved in Herdr automatically appear in Ovis’s list of inheritable machines. Clicking “Connect” allows Ovis to initiate the session using Herdr’s existing connection details. Initial connection authorization and subsequent Remote Bridge setup follow distinct permission boundaries, ensuring that remote nodes cannot access the console without approval.
In practice, the M1 Ovis does not configure standalone SSH Remote PCs. Instead, it inherits the Oracle Cloud VPS already configured in Herdr. This allows Herdr to handle machine connectivity while Ovis focuses on visual status aggregation and workflow controls.
Real-World Considerations
Operating this setup over time revealed a few practical engineering details:
- Transient connection reconnects: You may occasionally observe WebSocket closures (such as
1006or1012) or brief Herdr RPC timeouts. These transient network hiccups typically recover automatically within seconds via underlying retry mechanisms without requiring configuration changes. - Switching devices does not sync code: Changing between the M2, M1, or phone only shifts the viewport into the console. Active terminal processes remain on their host machines, and code synchronization across nodes still relies on standard Git commits and pulls.
- Stateless relay: The Linux relay server handles port forwarding only. If the relay server restarts or changes, re-establishing the reverse SSH tunnel restores connectivity without impacting active tasks on the hosts.
Four Engineering Trade-Offs
- Single primary console over multi-server sprawl: Anchoring the Ovis primary server on the always-on M1 eliminates configuration drift and session fragmentation across laptops.
- Decoupled compute workloads: Heavy agent workloads run on an independent cloud Herdr host, preventing laptop sleep interruptions, while quick tasks remain agile on local hardware.
- Stateless network relays: The reverse SSH relay maintains no application state. Maintaining or rebooting network components does not endanger active agent sessions on host machines.
- Mature cloud edge and SSH tunnels over self-hosted infrastructure: Combining Cloudflare Tunnel and Access for web exposure with standard reverse SSH and ProxyJump for terminal access eliminates the operational overhead of dynamic DNS, SSL certificate management, and inbound router port forwarding.
Comments
Spot a flaw, hit the same snag, or just want to say hi — leave a note below.
Loading comments…