Last updated: November 24, 2026 · By Jérémie Aouate
Short answer
When Claude Code, Codex or another coding agent runs in a terminal on your Mac, DualMac shows that Mac's screen on your iPhone or iPad through macOS Screen Sharing. You see where the agent is, answer its confirmation prompt and type on the Mac's keyboard from your phone. It is plain screen sharing, not an integration: DualMac doesn't connect to the agent and doesn't notify you.
A long task can outlast the Mac's sleep timer. Before you leave:
If the Mac is locked, type your macOS password with the keyboard, as you would at the Mac. The terminal window and the agent keep running while the screen is locked.
Coding agents often stop to ask before running a command or changing a file. To answer:
The bar of extra keys above the on-screen keyboard has the keys a terminal needs: Escape, Tab, the arrows, function keys and the modifier keys, including Control. On iPad, a hardware keyboard works too, and Mac keyboard shortcuts go to the Mac. DualMac also has on-device dictation: the text stays editable on your iPhone and is typed on the Mac only after you tap Send.
DualMac is not affiliated with or endorsed by Anthropic, OpenAI or the maker of any other coding agent.
If you would rather not set things up by hand, DualMac can hand the setup to a coding agent on the Mac. In DualMac, tap + to open Add a Mac. The row Let a coding agent set it up reads “Paste this prompt in Claude Code or Codex on the Mac.” Its button copies this prompt:
Set up DualMac on this Mac for me. Fetch https://dualmac.app/agent.md
with curl, read it in full and follow it.
Paste it in Claude Code or Codex on the Mac, for example by sending it to yourself. The agent then follows the public instructions at dualmac.app/agent.md: it checks Tailscale on the Mac and on your iPhone or iPad, and installs the free DualMac Companion from dualmac.app after checking its checksum and Apple signature. It leaves you only what macOS and your accounts keep for you: signing in to Tailscale, switching on two macOS permissions, and pairing your device with a code shown on the Mac. The instructions tell the agent never to ask for or type a password, never to use administrator rights without your agreement, and never to open a port to the internet.
It works with any app on your Mac, because it shows the Mac's screen. There is no integration with Claude Code, Codex or their makers.
No. DualMac sends no notifications about what runs on the Mac: you open the Mac in DualMac to check.
Yes, over Tailscale: sign in to the same tailnet on the iPhone and the Mac, then add the Mac with its Tailscale address. Never open port 5900 to the internet.
Yes, as long as the Mac stays awake. Type your macOS password in DualMac to unlock the screen and see the terminal.
No. The screen goes between your device and your Mac over your own network or tailnet, never through a DualMac server.