How to Approve Claude Code Remotely
To approve Claude Code remotely means answering its permission prompts from somewhere other than the terminal that is running it: a browser, another machine, a different person's screen. The need appears quickly once sessions get long. You start a task, walk to a meeting, and come back an hour later to find the agent stopped at its second command, waiting for a yes. This guide explains the mechanism Claude Code provides for this, how to set it up with Forkit, and how to keep it safe.
Why Claude Code waits
In its default mode Claude Code asks before running shell commands, editing files and fetching from the web, apart from a built-in set of read-only commands. The prompt appears in the session's own terminal. If nobody is there, the session waits.
You can reduce prompts with allow rules, acceptEdits mode, auto mode and sandboxing. Each helps. None of them changes where the remaining prompts appear. Whatever is left still needs someone in front of that terminal.
The mechanism: a hook on permission requests
Claude Code runs configurable hooks at points in a session. One of them, PermissionRequest, fires when a tool call needs a permission decision. A hook receives the tool name and its input as JSON and can print a decision: allow, or deny with a message. If it prints nothing, the normal prompt appears.
That is all remote approval requires. A hook script sends the request to a server, the server shows it to a person somewhere else, and the hook prints the answer when it comes back. The default timeout for command hooks is long (600 seconds per the docs), so the hook has room to wait.
You could build this yourself with a small server and a chat webhook. The parts that take longer than expected are the ones around it: identity, rules for routine requests, what to do on timeout, and making sure only a person can answer.
How to approve Claude Code remotely with Forkit
Forkit provides the hook and the server.
npx forkit-cli init
According to the project's documentation, this command signs you in through the browser, creates one API key per agent it finds on your PATH, and adds Forkit's hooks to ~/.claude/settings.json. It asks before changing the file and keeps a backup.
After that, start Claude Code as usual. Nothing changes until it would have asked you for permission.
What happens when Claude asks
- Claude Code is about to prompt. The hook sends Forkit the tool, the exact command or file path, the repository, the branch and the session.
- Rules are checked first. If you have a rule allowing
npm test*, the request is answered at once and you never see it. A matching deny rule wins over everything. - If a workspace owner has set an orchestrator agent for certain tools, it may answer.
- Otherwise the request appears in your inbox, at the top, because the agent is stopped. The session's thread shows as waiting.
- You answer. The hook prints the decision and Claude continues or tries something else.
- If nobody answers within the wait time (90 seconds by default, set with
FORKIT_PERMISSION_WAIT), the hook withdraws the request and prints nothing. Claude Code shows its normal prompt in the terminal.
Step 6 is the safety net. Remote approval is added on top of the local prompt and never replaces it. If Forkit is unreachable, the same thing happens: you get the ordinary prompt.
Where you answer when you are away from the terminal
The web inbox. Open it on any device with a browser. Each request shows the agent, the repository and branch, the exact command and how long it has waited. The tab title shows how many items need you, and the page can send opt-in desktop notifications.
forkit watch. A live inbox in a terminal, for people who would sooner stay there. One window covers every agent on your machine and, on a team, your teammates' agents too. Single keys answer:
aallow oncehallow for one hourrmake it a ruleddeny
Notifications. Forkit checks once a minute for things that have waited too long: a permission request that has waited 20 seconds or more, or a question, review or blocked thread that has waited two minutes. Each need is notified once. Slack incoming webhooks are supported as a channel.
Forkit also has a menu bar app for Mac that shows the same requests and answers them without opening the browser.
The four answers
- Allow once. For a command you want to see each time.
- Allow for an hour. For a run of similar commands during one task.
- Always. Creates a rule, so this request and others like it are answered without you.
- Deny, with a note. The note is passed back to Claude as the reason. Write it as an instruction: "Use the staging database, not production."
Over a week or two, "always" does most of the work. Each rule removes a class of interruptions for good.
What cannot be approved remotely by default
Some requests are held to a stricter standard. Forkit classes commands that touch production, secrets or money as sensitive. For those:
- No rule answers them.
- The orchestrator agent cannot answer them.
- A person can allow them once only. "For an hour" and "always" are not offered.
They still reach your inbox, so you can approve them remotely. You just cannot automate them away.
Answering questions, not only permissions
Agents also stop to ask things. With Forkit's hook, a turn that ends with a question is sent to the inbox as a waiting thread. The hook then waits (90 seconds by default) for a reply; if you answer in that window, your reply is handed to Claude and the turn continues. A later reply is delivered with the next prompt.
Through the MCP server, Claude can also ask deliberately, with up to five one-click options, and sleep until you answer with wait_for_reply.
On a team
- Your requests go to you. A workspace owner can also answer them.
- Rules you write as a member cover only your own agents.
- Finished work can be routed to whoever owns the files, by path.
So "remote" can mean another person, not only another device. If you are away, an owner can unblock your agent.
Keeping it safe
- Answers are tied to a signed-in person. The inbox requires a session. Agents cannot answer on a person's behalf; messages from other agents are stored separately and cannot decide a permission request.
- Read the exact command. The request shows the literal command, not a summary. Approve what you read.
- Prefer narrow rules. "Always" on
npm run test*is fine. "Always" onnpm *is not. See agent permission rules. - Know what is sent. In the default capture mode the hook sends prompts, commands and the agent's final reply per turn.
FORKIT_CAPTURE=minimalsends only file paths, states and git refs. Remote permission decisions need the command, so they work only in full mode.FORKIT_PERMISSIONS=offturns the feature off.
When you do not need this
If you run one session and stay at the keyboard, the built-in prompt is fine. If your environment is a disposable sandbox with nothing sensitive in reach, bypassing prompts there may be reasonable. Remote approval pays off when sessions outlast your attention or outnumber your screens.
Related: what the PermissionRequest hook does in Claude Code, ways to approve agent commands compared and what is an agent inbox.
Where Forkit fits
Forkit is the hook, the rules and the inbox for answering Claude Code from anywhere, with the local prompt kept as the fallback. It is free to try. More at forkit-mcp.com.