Voice
Ntfy
ntfy push notifications for OpenClaw: let your agent notify your phone or desktop when a task finishes, through ntfy.sh or a self-hosted ntfy server.
Install
npm install --legacy-peer-deps
README
# openclaw-ntfy
Push notifications for [OpenClaw](https://openclaw.ai) through [ntfy](https://ntfy.sh). 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.
[](https://github.com/rickysinghmba/openclaw-ntfy/actions/workflows/ci.yml) [](https://clawhub.ai/rickysinghmba/plugins/openclaw-ntfy) [](LICENSE)
> **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](https://play.google.com/store/apps/details?id=io.heckel.ntfy),
[iOS](https://apps.apple.com/app/ntfy/id1625396347)) 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",
},
},
},
},
}
```
3. 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`:
| Field | Required | What it is |
| ---------- | -------- | ------------------------------------------------------------------ |
| `message` | Yes | The notification text. Text over about 4,000 bytes is cut. |
| `title` | No | Short title shown above the message. |
| `priority` | No | `min`, `low`, `default`, `high` or `urgent`. |
| `tags` | No | ntfy tags or emoji short codes, such as `white_check_mark`. |
| `click` | No | An http(s) link to open when the notification is tapped. |
| `topic` | No | One of your configured topics, if you don't want the default one. |
## Configuration
Settings go under `plugins.entries.ntfy.config`. Only `topic` is needed.
| Setting | Default | What it does |
| ------------------- | ----------------- | ----------------------------------------------------------------------------------------- |
| `topic` | none | Topic notifications go to. Required. |
| `server` | `https://ntfy.sh` | Your ntfy server's address. |
| `token` | none | Access token for a protected topic or server. Or set `NTFY_TOKEN`. |
| `allowedTopics` | `[]` | Other topics the agent may choose, for example one per project. |
| `defaultPriority` | `default` | Priority when the agent doesn't pick one. |
| `defaultTags` | `[]` | Tags added to every notification. |
| `allowInsecureHttp` | `false` | Allow a plain `http://` server that isn't on this machine. Leave off unless you trust the network. |
| `timeoutSeconds` | `15` | How 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](https://github.com/rickysinghmba/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](https://github.com/rickysinghmba/openclaw-ntfy/blob/main/ROADMAP.md) for what is planned.
## License
MIT
voice
Comments
Sign in to leave a comment