How to approve Claude Code permissions from your phone
You give Claude Code a big task, go make coffee, and come back twenty minutes later to find it stopped after thirty seconds on: Allow this? npm test Everyone who runs Claude Code for long tasks knows this. The fix is
You give Claude Code a big task, go make coffee, and come back twenty minutes later to find it stopped after thirty seconds on:
Allow this?
npm test
Everyone who runs Claude Code for long tasks knows this. The fix is to answer the prompt wherever you are. This post shows how I do it with a free tool I built, Mirror for Claude, and how it works under the hood.
What you get
- Allow / Always allow / Deny for every permission prompt, on your phone.
-
Claude's multiple-choice questions too (the
AskUserQuestionbox), not only yes/no. - The prompt still shows in VS Code / the terminal as usual. Answer in either place; the other one closes.
- A push alert when a chat needs you, finishes or fails.
- Every chat in one list: terminal, VS Code, Cursor, Windsurf, JetBrains and WSL.
How it works (no cloud in between)
Claude Code has a PermissionRequest hook. Mirror installs a small hook script (plain Node, no npm packages) that:
- writes the request to a local file when a player is open,
- waits for your answer from the player (window, browser, terminal or phone),
- returns it to Claude Code as the hook's decision.
With no player open the hook returns at once and Claude Code asks as it always does. Nothing is sent anywhere unless you turn on the phone link.
The phone connects in one of two ways:
- Home Wi-Fi: scan a QR code in the player. The phone talks to your computer directly with a private key.
- Anywhere: an optional private Cloudflare link (no account needed), with its own key and computer-only actions blocked.
There is also an Android app with a home-screen widget, a quick-settings tile and push alerts. On iPhone, add the page to the home screen.
Set it up (one minute)
- Install the Mirror add-on from the VS Code Marketplace or Open VSX (Cursor, Windsurf), or download the zip and double-click
Install.cmd/Install.command/./install.sh. - Click Mirror in the status bar to open the player.
- Open the menu, then Phone, and scan the QR code.
The installer keeps your other settings, makes a backup of ~/.claude/settings.json first, and Uninstall removes everything.
Other ways, for comparison
- Anthropic's Remote Control connects the Claude app to one session at a time, and approving from the phone has had a reported hang bug.
- ntfy hook scripts send a notification with Allow/Deny buttons. Good if you only need yes/no on one machine.
Mirror is for when you run several chats, also want questions and live steps, and want it to stay on your computer.
Try it
It's free for personal use, in beta, and I'd love feedback:
https://github.com/viswa-jagadeesan-personal/mirror-for-claude
Mirror for Claude is an independent project, not made by Anthropic.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.