Put Your Agents to Work From Anywhere: Controlling Your Computer From Your Phone
Keep your main machine at home running agents and command it from your phone wherever you are. Two practical paths — native macOS and OpenClaw-style remote agent tools — plus typical remote agent capabilities and general remote-desktop picks.


Put Your Agents to Work From Anywhere: Controlling Your Computer From Your Phone
Keep your main machine at home running agents and command it from your phone wherever you are. Two practical paths — native macOS and OpenClaw-style remote agent tools — plus typical remote agent capabilities and general remote-desktop picks.
Leave your high-performance "main machine" at home running agents and command it remotely from your phone while you're out and about — this is one of the most practical remote-control-plus-AI-agent workflows of 2026. The core idea: an agent's compute and context both eat machine resources, and a phone can't carry that load; so let the computer do the heavy lifting while the phone only "sends instructions + collects results." This article lays out two practical paths — native macOS remote control within the Apple ecosystem, and cross-ecosystem OpenClaw-style remote agent tools — plus remote-desktop selection guidance and typical agent capabilities, so the computer at home can write code and run data jobs while you're riding the subway.
Before You Start
- A computer to serve as the agent main machine (a Mac is recommended; Windows works too)
- A phone (iOS or Android both work)
- Stable home network + public internet reachability (configure FRP or router port forwarding, otherwise you won't be able to reach home from outside)
- Agent tools installed: Cursor, Claude Code, or a coding agent that supports OpenClaw orchestration
- Estimated setup time: 30~60 minutes; after that, reuse costs nothing
Option 1: Native macOS Remote Control (Apple Ecosystem)
The lightest option, best for users with all-Apple devices.
Step 1: Enable remote control on your main Mac
Go to System Settings → General → Sharing, find "Control this Mac" (or "Screen Sharing" on older versions), and turn the service on.
Step 2: Generate the 8-digit pairing code
Once enabled, the system generates an 8-digit pairing code used to authenticate the first pairing from another device. Write that pairing code down — your phone will need it the first time it connects.
Step 3: Connect from your phone
On your iPhone / iPad:
- Open a system app such as Files or Finder
- Choose "Connect to Server," or go through "Control other devices"
- Enter your Mac's identifier + the 8-digit pairing code
- Once pairing succeeds, you can view the Mac's screen remotely
💡 Tip: the native macOS approach requires both devices to be signed into the same Apple ID and under the same iCloud account. For cross-account setups, use Option 2 or a third-party remote desktop.
Limitations
- Apple ecosystem only
- Your Mac must stay powered on and online while you're away
- Public internet access requires router support / an iCloud Back to My Mac-style capability
Option 2: OpenClaw and Other Remote Agent Tools (Cross-Ecosystem)
This is the more "AI-native" approach of 2026: not remotely viewing a screen, but remotely driving agents to do the work.
Step 1: Install a coding agent on your main machine
Make sure a coding agent like Cursor or Claude Code is installed on the computer and can orchestrate your local projects normally.
Step 2: Deploy OpenClaw as the remote orchestration layer
OpenClaw refers to a family of open-source remote agent orchestration tools (several community implementations exist, such as the setup caituotuo shared on cnblogs). How it works:
- An OpenClaw service runs persistently on the computer
- OpenClaw exposes an entry point your phone can reach (Web / API)
- Your phone sends an instruction → OpenClaw translates it to the local Cursor / Claude Code → the agent starts working → results flow back to the phone
Step 3: Send instructions from your phone
Casually type "run the whole test suite for this repo and fix the failing cases" on your phone, and the computer at home starts writing code, running tests, and fixing bugs automatically — no screen-watching required at any point.
That completes the full "phone → computer → agent" chain.
💡 Tip: the hard part of OpenClaw-style setups is public reachability + secure authentication. Always configure HTTPS + a strong password + restricted access IPs, otherwise your computer becomes a public botnet target. For remote access on the go, use a VPN or FRP tunneling; never expose ports directly.
Typical Remote Agent Capabilities
Once the remote chain works, what an agent can do on your computer includes but is not limited to:
- Log into systems and open files automatically: a full reproduction of what a human does at the keyboard
- Process data and generate reports: from raw data to XLSX / DOCX reports
- Send messages: push results through IM, email, Feishu, and other channels
- Execute multi-step tasks: decompose complex tasks, complete them in order, self-check the output
Selection Addendum: General-Purpose Remote Desktops
If you only want to get "see the computer's screen from your phone" working first, you don't necessarily need agent orchestration — these general-purpose remote desktops are a simpler starting point:
| Tool | Highlights | Best for |
|---|---|---|
| ToDesk | Mainstream in China; the free tier is enough | Office collaboration, everyday remote use |
| Sunlogin | Long-established Chinese player, cross-platform | Cross-device remote access, enterprise deployment |
| NetEase UU Remote | Low-latency optimization | Cross-device execution, light gaming |
| AnyDesk | International, lightweight | Cross-border work |
Pick by scenario: office collaboration → ToDesk / Sunlogin; low latency → UU Remote; cross-border teams → AnyDesk.
Verifying the Setup
Once it works, verify the chain is healthy with a minimal closed loop:
- Before heading out, turn off your home Mac's display (don't shut the machine down)
- From your phone, send a simple instruction, such as "create a
test.txton the desktop and write the current time into it" - When you get home, check that the file was created and its contents are correct
If that step succeeds, the phone → computer → filesystem chain is fully connected, and wiring in a coding agent afterward is smooth sailing.
Common Issues
- Can't reach the home computer from outside: 99% of the time it's a NAT traversal problem. Set up FRP tunneling, or use P2P-capable ToDesk / Sunlogin.
- macOS pairing code stopped working: system updates may reset it. Just generate a new one in the Sharing settings.
- Your OpenClaw public endpoint is being scanned: never leave ports exposed bare. Add HTTPS, strengthen the password, add an IP allowlist, and ideally go through a VPN.
- The agent hangs while running remotely: check whether the home network is stable and whether the agent is waiting for user confirmation (turn on Auto Mode so it proceeds without human intervention).
References
- X field notes: Khazix0918's remote agent workflow
- cnblogs: OpenClaw tutorial
- CSDN: Remote AI agent control, compared