Language
November 29, 20263 min read

Run an AI Coding Agent From Your Phone (2026 Guide)

You can run a terminal AI coding agent from your phone in three ways. Use the agent's own remote feature, use its built-in web server, or open a terminal on your Mac and run the agent there. The third way works for every agent.

Macky gives you that Mac terminal on your iPhone.

Pick a Route for Your Agent

AgentPhone routeWhere the agent runs
GitHub Copilot CLIGitHub Mobile or github.comYour machine, streamed through GitHub
AmpAmp iPhone app or ampcode.comCloud threads and orbs
OpenCodeopencode web in a phone browserYour machine
Any other agentA terminal session on your MacYour Mac

GitHub Copilot CLI: Use copilot --remote

Remote control is generally available on GitHub Mobile and github.com. Start a session in the terminal, VS Code, or JetBrains. Then steer it from your phone.

Run /update first to get the latest CLI. Then start with this command:

copilot --remote

Already in a session? Type /remote on. Scan the QR code or open the link in GitHub Mobile. Sessions show up in the Agents tab of the repository.

It works for interactive sessions only, and copilot --no-remote opts out. On Copilot Business and Enterprise, an administrator must enable remote control and the CLI policies first.

Amp: Threads and Orbs

Amp has native apps for iPhone, iPad, and Mac. They show the same threads as ampcode.com, plus notifications.

Amp's manual describes orbs, which are machines Amp creates per thread. Send a prompt, close your laptop, and the agent keeps working.

Run Any Agent From Your iPhone Terminal

Some agents have no phone feature at all. Macky opens a real zsh or bash session on your Mac from your iPhone, so you can run any of them there.

Macky's terminal on an iPhone running a command-line AI agent

The key bar has Esc, Tab, Ctrl, and arrow keys, and voice typing helps with long prompts.

The connection is end-to-end encrypted WebRTC with no open ports and no VPN to set up. Each new iPhone needs approval on the Mac.

OpenCode: Serve a Web UI

OpenCode starts a web UI with one command:

OPENCODE_SERVER_PASSWORD=choose-a-password opencode web --port 4096

opencode serve starts the same server without the UI. With a password set, it uses HTTP basic auth. Port 4096 is the default according to third-party guides.

Your phone still needs a path to that port. Third-party guides suggest SSH port forwarding or Tailscale to keep it private.

Keep the Mac Running

Copilot CLI and OpenCode run on your machine, so it has to stay awake. See caffeinate on Mac or keeping a MacBook awake with the lid closed.

Related guides: Claude Code on iPhone and Codex Mobile.

FAQ

Can I run an AI coding agent from my phone?

Yes. GitHub Copilot CLI has remote control on GitHub Mobile and github.com. Amp has an iPhone app. OpenCode has a web UI you can open in a phone browser. For any other agent, open a terminal session on your Mac from your phone and run it there.

How do I start Copilot CLI remote control?

Run copilot --remote in your terminal, or /remote on inside a running session. Then scan the QR code or open the link in GitHub Mobile.

How do I use OpenCode from my phone?

Run opencode web or opencode serve on your computer, then open the address in your phone browser. Set OPENCODE_SERVER_PASSWORD first, and reach it over a private network or SSH port forwarding.

Does my computer need to stay on?

Yes for Copilot CLI and OpenCode, which run on your machine. Amp's cloud orbs keep working after you close your laptop.

Can I run an agent that has no mobile feature?

Any agent that runs in a shell works. Macky opens your Mac's own terminal on your iPhone, so you start the agent the same way you would at your desk.

Try Macky

Connect to your Mac terminal from your iPhone.