How to answer Claude Code or Codex from your phone A developer guide details three ways to answer and approve commands from Claude Code and Codex agents while away from the desk: Claude Code's built-in /remote-control feature (requiring a Pro, Max, Ultra, Team, or Enterprise plan), Codex's remote connections through the ChatGPT apps, and a generic SSH-plus-tmux setup that works with any agent. The guide notes that each approach requires the host computer to stay awake and online, since idle sleep or a closed laptop lid halts remote access. You start an agent on the computer at home and leave. An hour later your phone shows that it stopped to ask for permission to run a command. It stays stopped until you answer, and you're nowhere near the desk. Each of the big agents has a way to answer from your phone. They just don't work the same way: /remote-control in the session, then open it in the Claude app or at claude.ai/code. It needs a Pro, Max, Ultra, Team, or Enterprise plan. tmux . A terminal app on the phone does the rest. Use Remote Control, Claude Code's own feature. In a session you've already started, type: /remote-control /rc is the short form. The session keeps running on your computer, with your files, MCP servers, and settings. Your phone only shows it and sends messages. Open the session by name in the Claude app under Code , or at claude.ai/code. A session that's online shows a computer icon with a green dot. You can also start it from the shell: claude remote-control server mode, shows a URL; press space for a QR code claude --remote-control a normal interactive session with Remote Control on To be told when it needs you, open /config and turn on Push when actions required . Install the Claude app and sign in with the same account. What to know before you rely on it: claude process supports one remote session, and that process has to keep running. Close the terminal and the session ends. /config . The full list is in Anthropic's Remote Control documentation https://code.claude.com/docs/en/remote-control . Codex does it through the ChatGPT apps, and setup starts on the computer, not in the terminal. You can't set it up from the Codex CLI or the IDE extension. From the phone you can continue chats, answer questions, approve commands, and read diffs and terminal output. The work still runs on the computer, with its files and tools. The computer must be awake, online, and signed in. On a Mac laptop, remote access can stay available with the lid open and power connected; with the lid closed it also needs an external display, and choosing Sleep ends it. Each phone is paired with each computer it controls. The rest is in OpenAI's remote connections documentation https://learn.chatgpt.com/docs/remote-connections . Yes, and it's the one method that doesn't care which agent you run. You connect to the computer, then attach to a terminal where the agent is already running. It takes more setup than the two above. On the Mac, turn on SSH: open System Settings → General → Sharing , then turn on Remote Login . Under Allow access for , choose Only these users and add yourself. From outside your home network you also need a way to reach the Mac. Don't open its SSH port to the internet. Use a VPN or a mesh network such as Tailscale, so only your own devices can connect. Then run the agent inside tmux , which keeps the terminal alive when you disconnect: tmux new -s agents start a session named "agents", then run claude or codex inside it Ctrl-b, then d detach: the agent keeps running tmux attach -t agents from your phone's SSH app, pick it up again Anthropic's own documentation suggests the same for Claude Code over SSH: use tmux or screen so the session survives a dropped connection. This works, but it's the roughest on a phone. You're typing into a full terminal with a touch keyboard, and the keys an agent needs, Esc, Tab, Ctrl, and the arrows, aren't on it. You also set up the SSH app, the network, and the Mac yourself. Almost always, the computer went to sleep. Locking the screen doesn't stop an agent; idle sleep does, and so does closing the lid. Remote Control for Claude Code and Codex, and SSH, can only reach a computer that's awake and online. None of the agents keep the Mac awake between turns, and that's exactly when you're waiting to answer from the phone. How to keep your Mac awake for Claude Code and Codex https://ponymux.com/guides/keep-mac-awake-claude-code-codex?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone covers it step by step. Then there's no single place to answer. Claude Code's remote lives in the Claude app, Codex's in the ChatGPT app, and a Grok session on your own computer has no remote from xAI that I could find in its documentation. Over SSH you can reach all three, but you have to find the right tmux session yourself and read the terminal to see which one is waiting. With one agent, any of the methods above is fine. With three, the problem is no longer how to connect, it's which one is waiting for you. Yes. PonyMux https://ponymux.com/?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone runs the real CLI of each agent in its own Terminal, so Remote Control doesn't depend on any agent offering its own remote. It's free on macOS and Windows. One device controls an agent at a time. On the computer, a Stop button takes control back whenever you want. What it doesn't do: it doesn't wake a sleeping computer, so Keep Awake https://ponymux.com/docs/keep-awake?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone is worth turning on before you leave. There's no end-to-end encryption, and no approval cards that answer for you; you read the Terminal and type the answer. The server relays the screen and keystrokes and saves none of them. On the Free plan, one computer shares its agents at a time. For setup, see Set up Remote Control https://ponymux.com/docs/set-up-remote-control?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone . Remote Control on your phone https://ponymux.com/docs/remote-control-on-your-phone?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone covers the key bar and notifications, and How Remote Control stays safe https://ponymux.com/docs/how-remote-control-stays-safe?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone lists exactly what is and isn't protected. Download PonyMux, free for macOS and Windows: ponymux.com/download https://ponymux.com/download?utm source=devto&utm medium=post&utm campaign=answer-claude-code-codex-from-your-phone