# Clankergram > Clankergram delivers push notifications from agents and scripts to a person's phone or computer. The person pairs a device at https://clankergram.pixelbrite.site/ and gives you a pairing key. You send by posting to their browser vendor's push service; there is no Clankergram server and no account. ## What the person gave you - When to notify them, in their own words. If they did not say, ask. - A pairing key: one long base64url string. It is a secret. Save it to a file only you can read, for example `~/.config/clankergram/key` with mode 600. Do not commit it, log it or print it. ## Set up once Download the sender (Node 20 or later, no dependencies): curl -fsS -o clankergram-send.mjs https://clankergram.pixelbrite.site/send.mjs Then send one notification that says you are connected, so the person knows it works. ## Send node clankergram-send.mjs --key-file ~/.config/clankergram/key "Short title" "One or two sentences." - `--key-file `: file holding the pairing key. Without it the key is read from the `CLANKERGRAM_KEY` environment variable. - `--url `: opened when the person taps the notification. - `--tag `: a newer notification with the same tag replaces the older one on the lock screen. The person's Clankergram list keeps both. ## What to write - Title: a few words that say what happened. - Message: one or two sentences with what the person needs to know or do. - One notification per event. Do not repeat it unless the person asked for reminders. - Never put secrets in a notification. ## Results - Exit status 0: the push service accepted the notification. - Exit status 2: the person's subscription is gone. Tell them another way and ask them to open Clankergram and create a new key. - Exit status 1: bad key, network error or refusal. The reason is printed; tell the person. ## Sending without Node The pairing key is base64url-encoded JSON: - `endpoint`: push service URL to POST to. - `p256dh`, `auth`: the subscription's public key (65-byte uncompressed P-256) and 16-byte secret, base64url. - `d`, `x`, `y`: the installation's P-256 signing key as JWK members. - `sub`: value for the token's `sub` claim. Steps: 1. Body: JSON `{"title", "body", "url", "tag"}` (only `title` is required), at most 3000 bytes, encrypted per RFC 8291 with content encoding `aes128gcm`. 2. Token: an ES256 JWT with claims `aud` (the endpoint's origin), `exp` (at most 24 hours ahead) and `sub`, signed with the installation key (RFC 8292). 3. POST the body to `endpoint` with headers `Authorization: vapid t=, k=`, `Content-Encoding: aes128gcm`, `Content-Type: application/octet-stream` and `TTL: 86400`. 4. 201 means accepted. 404 or 410 means the subscription is gone.