CONNECT AN AGENT

Your RunWhile account, in your agent.

Use the same RunWhile account on your Mac and in the browser. Add the remote MCP address to your client, then choose which Macs it can access.

  1. Start on your Mac

    Install RunWhile, sign in with Google or Apple, and choose the folders and macOS permissions you want to share. Keep your Mac awake and connected.

  2. Add RunWhile to your client

    Pick your client below and use the RunWhile MCP address. For clients that let you request specific permissions, the manual setup includes those choices.

  3. Sign in and choose access

    Sign in to RunWhile in your browser and review the Macs and access requested by the client. If only one Mac is authorized, RunWhile uses it automatically. Then ask your agent, “Is my Mac awake?”

MCP address https://mcp.runwhile.com/mcp

In the desktop app, open Settings → MCP servers, add runwhile as a Streamable HTTP server with the address above, then select Authenticate. Use the manual setup below if you want to request additional permissions.

Manual setup with permission choices
Choose access for this connection

Start with Mac status. Add only what this agent needs. Some tools also require an enabled feature or macOS permission.

Review the requested permissions and Macs when you sign in. RunWhile uses the folders you already share on your Mac. You can manage an existing connection in the web app.

For a new connection, run these commands in your terminal. The selected permissions apply to this login; keep the same --scopes option when signing in again.

codex mcp add runwhile --url https://mcp.runwhile.com/mcp
codex mcp login runwhile --scopes devices:read

Run the login command after adding the server. Codex opens the RunWhile sign-in and consent flow in your browser.

Official Codex instructions

What you’ll see in the chat

If your version of RunWhile shows “Monitor agents…” in the Mac menu, you can set up automatic activity for local Codex and Claude Code there. Connect the client first, then follow its trust prompts. New chats use the user-level setup automatically.

Codex
Use RunWhile in Codex on your Mac. Hosts that show tool output as text can still return results, next steps and links. Codex hooks on your Mac can update Mission Control automatically after setup and trust review.
ChatGPT
ChatGPT on iPhone has been tested with the read-only Mac status card and quick replies. ChatGPT reports progress when you ask it to use RunWhile.
Claude Code
Connect Claude Code over HTTP with OAuth. Available tools depend on your grant, and result presentation depends on the client.
Gemini CLI
Use this setup if you already have access to Gemini CLI. Use the tool results in your conversation.

Chat attachments depend on your client. RunWhile can return a complete MCP file attachment up to 512 KiB. Larger files can be read in parts up to 100 MiB or opened through RunWhile.

Try asking which apps are open. If you enabled file search, you can also ask for a document by name.

Opening or showing apps and documents and managing Keep Awake from chat requires a RunWhile subscription or trial. Your Mac must be online, and some actions also need macOS permissions.

Your grant applies to requests through RunWhile. Authorized content may pass through RunWhile and your connected AI provider. Your agent keeps any separate access provided by its other tools.

Review connections in RunWhile