---
name: wachi
description: "Install, configure, and use the wachi CLI to monitor any URL for new content and get notifications via 90+ services (Slack, Discord, Telegram, email, etc.). Use when the user wants to: (1) subscribe to web pages, blogs, YouTube channels, or RSS feeds for change notifications, (2) set up URL monitoring with wachi sub/check/ls commands, (3) configure notification channels via apprise URLs, (4) schedule periodic checks with cron, (5) troubleshoot wachi errors or configuration, or (6) understand how wachi detects changes via RSS auto-discovery."
title: wachi
canonical_url: https://skilld.dev/gh/ysm-dev/wachi
last_updated: 2026-10-06T21:38:58.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [references/spec.md](https://skilld.dev/api/skills-raw/ysm-dev/wachi/wachi/references/spec.md).
>
> If the user asked to install this Skill, run `npx skilld install ysm-dev/wachi/wachi`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/wachi`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ysm-dev/wachi/wachi) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/wachi`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/wachi --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/wachi --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# wachi

Subscribe any link and get notified on change. Monitors URLs for new content, pushes notifications to 90+ services via apprise.

## Install

```bash
# npm / bun (no install needed)
npx wachi --help
bunx wachi --help

# global install
npm i -g wachi
bun i -g wachi

# shell script
curl -fsSL https://raw.githubusercontent.com/ysm-dev/wachi/main/install.sh | sh

# homebrew
brew tap ysm-dev/tap && brew install wachi
```

## Quick Start

```bash
# 1. Subscribe to any URL (auto-discovers RSS)
wachi sub -n main -a "slack://xoxb-token/channel" "https://blog.example.com"

# 2. Check for new content (run on a schedule)
wachi check

# New posts get pushed to Slack. That's it.
```

## Commands

```
wachi sub -n <name> <url>         Subscribe URL to notification channel
  -a, --apprise-url <url>         Required when creating a new channel
  -e, --send-existing             Send all current items on next check (skip baseline)

wachi unsub -n <name> [url]       Unsubscribe URL or remove entire channel

wachi ls                          List all channels and subscriptions (Website + RSS)

wachi check                       Check all subscriptions for changes
  -n, --name <name>               Check specific channel only
  -p, --concurrency <number>      Max concurrent checks (default: 10)
  -d, --dry-run                   Preview without sending or recording

wachi test -n <name>              Send test notification

wachi upgrade                     Update wachi to latest version
```

**Global flags:** `--json` / `-j` for machine-readable output, `--verbose` / `-V` for detailed logs, `--config` / `-C` for custom config path.

## How It Works

1. `wachi sub` checks if the URL has an RSS feed (auto-discovery via `<link>` tags and common paths)
2. If RSS found: store and use RSS for ongoing checks
3. `wachi check` canonicalizes item links, atomically admits each link once per physical destination, and drains a durable apprise delivery outbox

## Configuration

Config at `~/.config/wachi/config.yml` (auto-created on first `wachi sub`).

```yaml
# Channels managed by wachi sub/unsub
channels:
  - name: "main"
    apprise_url: "slack://xoxb-token/channel"
    subscriptions:
      - url: "https://blog.example.com"
        rss_url: "https://blog.example.com/feed.xml"
```

All fields optional with sensible defaults. Empty config is valid.

### Environment Variables

| Variable | Purpose |
|----------|---------|
| `WACHI_NO_AUTO_UPDATE` | Set to `1` to disable auto-update |

## Notification Channels

Uses [apprise](https://github.com/caronc/apprise) URL format. Examples:

```bash
# Slack
wachi sub -n main -a "slack://xoxb-token/channel" "https://example.com"

# Discord
wachi sub -n alerts -a "discord://webhook-id/token" "https://example.com"

# Telegram
wachi sub -n telegram -a "tgram://bot-token/chat-id" "https://example.com"

# Test channel works
wachi test -n main
```

Full list: https://github.com/caronc/apprise/wiki

## Scheduling

`wachi check` is stateless and one-shot. Use any scheduler:

```bash
# crnd (recommended)
crnd "*/5 * * * *" wachi check

# system cron
crontab -e
# */5 * * * * wachi check
```

## Examples

```bash
# Blog (auto-discovers RSS)
wachi sub -n main -a "slack://xoxb-token/channel" "https://blog.example.com"

# YouTube channel
wachi sub -n media -a "tgram://bot-token/chat-id" "https://youtube.com/@channel"

# URL without https:// (auto-prepended)
wachi sub -n main "blog.example.com"

# Send existing items on next check
wachi sub -n alerts -e "https://news.ycombinator.com"

# Dry-run check
wachi check -d

# Check specific channel
wachi check -n main
```

`wachi ls` shows both the website URL you subscribed and the RSS URL wachi actually checks:

```text
main (slack://xoxb-.../channel)
  Website: https://blog.example.com
  RSS: https://blog.example.com/feed.xml
```

For detailed behavior (dedup model, error patterns, notification format, config schema), see [references/spec.md](https://skilld.dev/api/skills-raw/ysm-dev/wachi/wachi/references/spec.md).
