{"slug": "how-to-answer-claude-code-or-codex-from-your-phone", "title": "How to answer Claude Code or Codex from your phone", "summary": "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.", "body_md": "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.\n\nEach of the big agents has a way to answer from your phone. They just don't work the same way:\n\n`/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.\nUse Remote Control, Claude Code's own feature. In a session you've already started, type:\n\n```\n/remote-control\n```\n\n(`/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.\n\nYou can also start it from the shell:\n\n```\nclaude remote-control      # server mode, shows a URL; press space for a QR code\nclaude --remote-control    # a normal interactive session with Remote Control on\n```\n\nTo 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.\n\nWhat to know before you rely on it:\n\n`claude` process supports one remote session, and that process has to keep running. Close the terminal and the session ends.`/config`.\nThe full list is in Anthropic's [Remote Control documentation](https://code.claude.com/docs/en/remote-control).\n\nCodex 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.\n\nFrom 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.\n\nThe 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).\n\nYes, 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.\n\nOn 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.\n\nFrom 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.\n\nThen run the agent inside `tmux`, which keeps the terminal alive when you disconnect:\n\n```\ntmux new -s agents     # start a session named \"agents\", then run claude or codex inside it\n# Ctrl-b, then d       # detach: the agent keeps running\ntmux attach -t agents  # from your phone's SSH app, pick it up again\n```\n\nAnthropic's own documentation suggests the same for Claude Code over SSH: use `tmux` or `screen` so the session survives a dropped connection.\n\nThis 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.\n\nAlmost 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.\n\nNone 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.\n\nThen 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.\n\nWith 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.\n\nYes. [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.\n\nOne device controls an agent at a time. On the computer, a **Stop** button takes control back whenever you want.\n\nWhat 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.\n\nFor 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.\n\nDownload 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)", "url": "https://wpnews.pro/news/how-to-answer-claude-code-or-codex-from-your-phone", "canonical_source": "https://dev.to/heylittlepan/how-to-answer-claude-code-or-codex-from-your-phone-10a7", "published_at": "2026-11-10 17:00:00+00:00", "updated_at": "2026-11-10 17:23:19.780315+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Anthropic", "Claude Code", "OpenAI", "Codex", "ChatGPT", "Tailscale"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/how-to-answer-claude-code-or-codex-from-your-phone", "markdown": "https://wpnews.pro/news/how-to-answer-claude-code-or-codex-from-your-phone.md", "text": "https://wpnews.pro/news/how-to-answer-claude-code-or-codex-from-your-phone.txt", "jsonld": "https://wpnews.pro/news/how-to-answer-claude-code-or-codex-from-your-phone.jsonld"}}