Documentation

Claude Code & Codex phone notifications: plugin setup guide

Give your agent the setup guide: download Ntfyx, install the plugin, pair your phone, receive a notification and answer a test question. Includes plugin updates.

Updated

Installed the plugin? Connect your phone next.

#

Ntfyx sends Claude Code and Codex task notifications and questions to your phone. Plugin 0.4.1 includes guided setup and requires CLI 0.6.0+. Give your current agent the prompt below. It handles computer installation, checks and tests while guiding your phone steps.

Terminal
Read https://ntfyx.me/agent-install.md and guide me through connecting the Ntfyx phone app. Check my existing installation, reuse existing connections and give me one phone step at a time until I receive a test notification and answer a test question.

Agent setup on Windows

#

On Windows, use direct CLI setup or local MCP. Claude Code hooks require 2.1.139+; an older or unknown version gets MCP only. Codex on Windows provides MCP questions without automatic hooks. The marketplace plugin uses POSIX shell hooks; use direct setup on Windows. Native tool permission approvals retain their separate platform and host policy.

Terminal
ntfyx setup claude-code --dry-run
ntfyx setup claude-code

ntfyx setup codex --dry-run
ntfyx setup codex

1. Install and open Ntfyx on your phone

#

Use the App Store on iPhone or Google Play on Android. Install Ntfyx, open it once and allow notifications if you want system alerts. No Ntfyx account is required. Android background push requires Google Play services. The phone app and computer CLI are separate components.

2. Let your agent check the computer

#

If the plugin is installed, give the agent the guide above; Claude Code also accepts /ntfyx:setup. It checks the CLI, plugin and existing Topics. For a first install, install only the plugin for your current host and the CLI for your OS. Restart Codex and review its hook trust prompt in /hooks. Use one integration method per host to avoid duplicate notifications.

Marketplace shell hooks require Windows, macOS or Linux; on Windows, follow the CLI/MCP setup guide for that host.

Terminal
# Claude Code
claude plugin marketplace add KaylaONeal/ntfyx-agent-plugins
claude plugin install ntfyx@ntfyx

# Codex
codex plugin marketplace add KaylaONeal/ntfyx-agent-plugins
codex plugin add ntfyx@ntfyx

3. Scan and authorize a protected Topic

#

The agent runs ntfyx connect and keeps it waiting. On the phone, open Add or Connect, choose the private Topic connection / scan option and scan the fresh QR on this trusted computer. Check the Source, choose a protected Topic such as MyNotify and confirm on your phone. Continue when the computer reports a completed connection.

Reuse a working connection; public Topics cannot accept verified answers to agent questions.

4. Receive a notification, then answer a test question

#

The agent first sends a non-sensitive test notification. Open the matching Topic on your phone and confirm the message appears. Then ask a harmless test question while the original call waits. Select or type your answer on the phone and check that the agent reports your actual answer. Service acceptance, phone receipt and verified reply are separate checks.

Terminal
Use Ntfyx to send a test notification. After I confirm receipt, ask on my phone “Read the docs or run a test next?” and wait for my actual answer.

5. Everyday use and resuming after a restart

#

At the start of a task say: “Notify me with Ntfyx when this task finishes; ask on my phone and wait when you need a decision.” After a restart say: “Continue Ntfyx setup, inspect the existing installation and Topics, and resume the unfinished step.” Claude Code can run /ntfyx:setup again; Codex can read this guide again.

Keep one Session for the task so its messages and replies stay together.

Still seeing 0.4.0? Update the marketplace and plugin.

#

Adding a marketplace, installing a plugin and refreshing its cache are separate steps. Run the commands for your host, then close and reopen the agent. Check for plugin 0.4.1 or later and run the setup guide. Plugin and CLI versions are independent; preserve pairing data during updates.

Terminal
# Claude Code
claude plugin marketplace update ntfyx
claude plugin update ntfyx@ntfyx

# Codex
codex plugin marketplace upgrade ntfyx
codex plugin add ntfyx@ntfyx

One-command setup is also available

#

For macOS / Linux users without the plugin, the direct installer below guides pairing and configures the host. If you already installed the plugin, continue its setup path. Windows users should use the PowerShell or npm instructions on the installation page.

Terminal
# Claude Code
curl -fsSL https://ntfyx.me/install.sh | bash -s -- --agent claude-code

# Codex
curl -fsSL https://ntfyx.me/install.sh | bash -s -- --agent codex

Which questions reach the phone?

#

Native AskUserQuestion has encrypted integration tests; real-host/device acceptance is separate. Tool execution approval is a different feature, with Linux x64 and Apple silicon Mac combinations listed in the Agent guide. Apple silicon Mac native approvals are verified with Claude Code 2.1.303 and Codex 0.163.0 and require CLI 0.1.5+.

Intel Mac native approvals remain unverified and return to the terminal. Codex requires interactive TUI and /hooks trust; codex exec does not trigger permission hooks. The phone route respects cancellations, deadlines, signatures and one-time claims. A late answer cannot resume an ended invocation.

HostPhone questionsNative prompt behavior
Claude CodeMCP questions and native AskUserQuestion bridgeSingle-choice buttons with free text; up to four questions in order; multi-select via typed option numbers
CodexMCP questions with phone-reply guidanceNative request_user_input is not intercepted by this plugin
piMCP through the included extension and skillNative question UI not intercepted
Cursor / Gemini CLI / OpenCode / CopilotLocal MCP may be configured using the host’s own settingsNo Ntfyx native-question bridge has been released for these hosts

Sessions keep the context

#

Use one session_id for one agent conversation. Native hooks carry the host session ID; MCP calls use session_id and session_name. Without an ID, messages remain separate. The conversation groups messages you send; it does not export the whole agent transcript or give the phone remote-shell access.

Terminal
ntfyx send "Build passed" --session-id release-24 --session-name "Release v2.4"
ntfyx ask "What next?" --text --session-id release-24

Local by design

#

The plugin runs the paired CLI on your computer. It does not send your private keys to a hosted MCP service. Cloud chats cannot run that local executable. A plugin install never replaces the host’s sandbox, hook trust or permission policy. Official directory distribution has separate rules and review; the public Ntfyx marketplace is available now.

Run a complete question and reply

#

Send status in one Session, receive a choice and a text answer, and verify the one-time claim before continuing.

Start with a use case

#

From agent questions to weekly subscriptions and website alerts, start with a use case. See what reaches your phone, then follow the steps to connect.

Plain and rich messages

#

CLI 0.6.0 independently sends ordinary text, Markdown and native metric/table/chart messages, with local validation before sending. See the guide for receiver version requirements and store availability.