Approve Claude Code permission requests from your phone
Updated 2026-12-04
Claude Code asks for permission before it runs a command, edits a file or calls a tool. If you are not at your computer, it simply waits. InstantPing's Approve from phone sends that request to your phone with the command shown, so you can allow or deny it from wherever you are. It is optional, on by default for app users, and coming with the next InstantPing app update, as part of InstantPing Pro.
How it works
- Claude Code is about to ask for permission. A small
PermissionRequesthook on your computer checks whether you are away: no keyboard or mouse use for 30 seconds by default. - If you are away, the hook sends the tool name and the command to the InstantPing relay, which pushes it to your phone.
- You tap Allow, Allow for this session or Deny. The answer goes back to your computer once, and Claude Code carries on or stops.
If you are at your computer, nothing changes: you answer in the terminal as always, and the phone is not involved.
What you see on your phone
- A notification with the tool and the command, and the three buttons. On an iPhone, Allow asks for Face ID or your passcode first, so a locked phone cannot approve anything.
- Tap the notification itself to open a screen with the tool, the full command (up to 300 characters) and the name of the computer, with the same buttons.
The safety rules
- Only when you are away. The request goes to your phone only after the computer has been idle, and it stops waiting the moment you touch the keyboard or mouse again.
- It never approves for you. No answer within 2 minutes means the normal prompt stays in your terminal, waiting for you.
- Allow for this session is limited. It appears only for shell commands where Claude Code itself suggests a rule such as
npm run *. InstantPing remembers that rule on your computer for that one Claude Code session, for at most eight hours, and never writes it to a settings file or changes the permission mode. While you are away, a later command that fits the rule is allowed without asking again, unless it chains commands or uses pipes, redirects or substitutions (&&,;,|,>,$(…)): those always ask. At your computer, Claude Code asks as usual. For risky commands such asrm -rf,sudo,git push --force, a download piped into a shell or deleting a folder, there is no session button: you can allow once or deny. - One answer per request. Only your paired phone can answer, and a second answer or a replay is refused.
What leaves your computer
Only with this switched on: the tool name and the command or file path (up to 300 characters) travel through the InstantPing relay and the push services of Expo, Apple and Google to reach your phone. They are not saved in your ping history, and they are deleted as soon as you answer or after 2 minutes. InstantPing does not read your code, prompts or files. The details are in the privacy policy.
How to turn it on
- Update the InstantPing app and pair your phone with
npx instantping setup. That turns Approve from phone on, in the app and on your computer. - Paired before the update? Open the app settings and switch on Approve from phone.
- Then, on your computer, run this once. It installs the hook; without it, nothing is asked on your phone:
npx instantping config approve on
To turn it off again, switch it off in the app and run npx instantping config approve off. To change the 30 seconds, use npx instantping config awaySeconds 60.
What it does not do
- It works for Claude Code on your computer. It does not answer multiple-choice questions from Claude and it does not send a new instruction.
- How "away" is measured depends on the system: Windows and macOS read the time since your last keyboard or mouse input. On Linux it uses
xprintidleif it is installed, and otherwise the time since your last prompt. - It is part of InstantPing Pro, which includes a 7-day free trial.
The hook behind it
Claude Code runs a PermissionRequest hook just before it shows a permission dialog and lets the hook answer allow or deny. The JSON each hook receives is described in the hook input reference. For plain notifications without answering, see Claude Code push notifications on your phone.
Frequently asked questions
Can I approve Claude Code permission requests from my phone?
Yes, with InstantPing's Approve from phone, which arrives with the next app update. When you are away from your computer, a permission request reaches your phone with the command and you tap Allow, Allow for this session or Deny.
Does it approve things while I am sitting at my computer?
No. The request goes to your phone only when the computer has had no keyboard or mouse input for 30 seconds (you can change that), and it stops waiting as soon as you use the computer again.
What happens if I do not answer on my phone?
After 2 minutes the hook gives up and the normal permission prompt stays in your terminal, waiting for you. Nothing is approved automatically.
Is it safe to allow commands from my phone?
On an iPhone, Allow needs Face ID or your passcode. Allow for this session is offered only when Claude Code suggests it and never for risky commands such as rm -rf, sudo or git push --force. Each request accepts one answer from your paired phone only.
What does InstantPing see of my commands?
Only with Approve from phone switched on: the tool name and the command (up to 300 characters), passed through the relay to your phone and deleted after your answer or after 2 minutes. They are not kept in your history.