ntfy Push Notifications

ntfy push notifications for OpenClaw: let your agent notify your phone or desktop when a task finishes, through ntfy.sh or your own self-hosted ntfy server.

Tools

ntfy_notify

Readme

openclaw-ntfy

Push notifications for OpenClaw through ntfy. Your agent can notify your phone or desktop when a long task finishes, when something needs your attention, or whenever you ask it to "let me know".

ntfy is free and open source. Use the public ntfy.sh service, or run your own server so notifications stay on your network.

CI ClawHub License: MIT

Status: 0.1, early. Tested with OpenClaw 2026.11.9 on macOS and, in CI, on Linux: an agent turn found the tool, called it, and the notification reached the server. Also sent through the public ntfy.sh service. Not tested yet: a self-hosted ntfy server with access tokens. Please report what you find.

Requirements

  • OpenClaw 2026.10.34 or later
  • The ntfy app on your phone (Android, iOS) or the ntfy web app, subscribed to a topic

Install

bash
openclaw plugins install openclaw-ntfy

Set up

  1. In the ntfy app, subscribe to a topic. On ntfy.sh, the topic name is the only protection: anyone who knows it can read and send notifications. Pick a long random name, such as claw-alerts-8f3k2x9q.
  2. Tell the plugin which topic to use:
json5
{
  plugins: {
    entries: {
      ntfy: {
        config: {
          topic: "claw-alerts-8f3k2x9q",
        },
      },
    },
  },
}
  1. Ask your agent: "Send me a test notification."

Self-hosted server

json5
{
  plugins: {
    entries: {
      ntfy: {
        config: {
          server: "https://ntfy.example.org",
          topic: "alerts",
          token: "tk_your_access_token",
        },
      },
    },
  },
}

You can also put the token in the NTFY_TOKEN environment variable and leave token out of the config file.

What the agent can send

The plugin adds one tool, ntfy_notify:

FieldRequiredWhat it is
messageYesThe notification text. Text over about 4,000 bytes is cut.
titleNoShort title shown above the message.
priorityNomin, low, default, high or urgent.
tagsNontfy tags or emoji short codes, such as white_check_mark.
clickNoAn http(s) link to open when the notification is tapped.
topicNoOne of your configured topics, if you don't want the default one.

Configuration

Settings go under plugins.entries.ntfy.config. Only topic is needed.

SettingDefaultWhat it does
topicnoneTopic notifications go to. Required.
serverhttps://ntfy.shYour ntfy server's address.
tokennoneAccess token for a protected topic or server. Or set NTFY_TOKEN.
allowedTopics[]Other topics the agent may choose, for example one per project.
defaultPrioritydefaultPriority when the agent doesn't pick one.
defaultTags[]Tags added to every notification.
allowInsecureHttpfalseAllow a plain http:// server that isn't on this machine. Leave off unless you trust the network.
timeoutSeconds15How long to wait for the server.

How it behaves

  • Only your topics. The agent can send to topic and allowedTopics and nowhere else. It can't pick a server or an arbitrary topic.
  • Encrypted by default. The server must use https. Plain http is accepted only for a server on this machine, unless you turn on allowInsecureHttp.
  • The token stays with your server. Redirects are not followed, so the access token is never sent to another host.
  • Clear errors. If the server refuses the token, rate limits you or can't be reached, the agent gets a message that says so, and can tell you.
  • Server text is not trusted. Nothing the ntfy server writes back is passed to the agent, only status codes, so a hostile server can't plant instructions.
  • Send only. The plugin doesn't read notifications or subscribe to topics.

Anything the agent puts in a notification leaves your machine and goes to the ntfy server. With ntfy.sh, that is a public service, so don't use it for secrets.

Development

bash
npm install --legacy-peer-deps
npm test

npm test runs the unit tests against a fake ntfy server. The end-to-end test runs when OPENCLAW_BIN points at an OpenClaw. It uses openclaw-plugin-testkit to install the plugin into a throwaway OpenClaw and run an agent turn with a stub model.

This project is not affiliated with ntfy or OpenClaw. See the roadmap for what is planned.

License

MIT