/agent-talk:relayfrom agent-talk
Sets up, checks, stops, or deletes a retalk relay server across local, Cloudflare, Hugging Face, or GCP hosts. Use when a user needs their own relay instead of an existing URL.
Ships in agent-talk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
relay <action>)A relay is the untrusted server clients connect to; its audience URL is what
clients set as RETALK_RELAY. Read the action from $ARGUMENTS: setup,
ping, stop, or delete. If none is given, use AskUserQuestion to choose.
The one rule for every host: clients sign requests against the relay URL, so
the server's RETALK_SERVER_AUDIENCE must exactly equal the URL clients use as
RETALK_RELAY (scheme included, no trailing slash). A mismatch makes every
request fail with bad signature.
Before offering any of these, know what the choice costs.
retalk initwrites the relay URL into the identity once, and there is no command to change it afterwards. Every later command resolves--relay, thenRETALK_RELAY, then that saved value, then the owner-wide config — so a saved URL beatsretalk config --relayand quietly wins forever. An identity created againsthttp://127.0.0.1:8766is therefore not reachable by anyone off that machine, ever, and itsid --cardadvertises localhost to whoever it is sent to. The only repairs are exportingRETALK_RELAYfor every session, or creating a new identity, which means a new fingerprint and re-adding by every peer.
cloudflare.md.huggingface.md.gcp.md.--relay URL in the init skill.--max-mailbox, --max-mailbox-per-sender), --rate-limit, or a closed
relay (--admin-password to mint API keys at /admin; --require-api-key
to require one on every request). Apply as flags/env on the server.RETALK_SERVER_DB=./relay.db RETALK_SERVER_HOST=127.0.0.1 RETALK_SERVER_PORT=8766 \
RETALK_SERVER_AUDIENCE=http://127.0.0.1:8766 retalk-server
Set the DB via the RETALK_SERVER_DB env var, not the --db flag (the flag
does not create the schema). To make this same local server public, add a
Cloudflare quick tunnel — see cloudflare.md.
Probe reachability (URL from $ARGUMENTS, else ask):
curl -s -o /dev/null -w '%{http_code}\n' <relay_url>
Any HTTP status (e.g. 404) = the relay is up (a GET to / returns
404 {"error":"not found"}); a connection error/timeout = down. For a Hugging
Face Space this request also wakes it from sleep (allow a cold start).
Infer the host from the relay URL (*.hf.space → Hugging Face;
*.trycloudflare.com or a tunnelled domain → Cloudflare; a gcloud VM → GCP;
else Local) — ask if unsure:
pkill -f retalk-server.pkill -f retalk-server and
pkill -f cloudflared.gcloud compute instances stop retalk-server --zone <zone>.server.db.cloudflared tunnel delete <name> and remove its CNAME (a quick tunnel leaves
nothing behind).hf repo delete <owner>/<space> --repo-type space.gcloud compute instances delete retalk-server --zone <zone> plus
gcloud compute firewall-rules delete allow-iap-ssh, or remove the whole
project: gcloud projects delete <project>.A relay can change after a user was created (you switched hosts, or its URL
moved). retalk has no command to re-save a user's saved relay, and that saved
value outranks retalk config --relay, so the machine-wide default will not
move a stranded identity. Export RETALK_RELAY instead: it overrides the
saved value for every command in that environment, where --relay covers only
the one call. Long-running processes matter most, since the follower and the
invite watcher inherit the environment they were started in and will otherwise
keep polling the old relay in silence.
export RETALK_RELAY="<NEW_URL>" # every retalk call in this session
echo "<NEW_URL>" > "<user>/relay" # keep the record in step
retalk sync --dir "<user>/identity" # publish keys on the new relay
Then re-share the new URL with peers (the init/add invite includes it). Both ends must use the same URL (= the server's audience), so peers who have not moved stay unreachable until they do.
Full host steps live in cloudflare.md, huggingface.md, and gcp.md in this folder.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/addSave a peer's retalk user id (their 32-hex fingerprint), optionally under a local name, so you can message them by name. Use when you have a peer's fingerprint to record. Add --verify to fetch and pin their keys now. If the fingerprint is missing, ask with AskUserQuestion./blockBlock a sender so their messages are dropped before decryption (and the relay is told to refuse their resends); re-allow one with `--remove`, or list blocked senders with `--list`. Use to stop unwanted or abusive mail from a specific sender, undo a block, or audit your block list. If the sender is not specified, ask with AskUserQuestion./configShow or set owner-wide retalk defaults in ~/.retalk/config.json (machine-wide, not per-session) — mainly the default relay used as the last fallback. Use to set or clear a default relay that applies to every identity on this machine./contactsList saved peers (your address book) and whether each is verified, show one peer as a shareable JSON Contact card, or remove a saved peer. Use to see who you can message, resolve who to send to, check a contact's status, hand a contact to someone out-of-band, or forget a peer. `<user>` is this session's user directory (absolute path; from init)./groupManage group rooms — create, list, members, add, remove, rename, leave, join, delete — so this session can message several peers at once. A group is a local roster of saved peers; sending to it delivers a private copy to each member. Use to set up or adjust a room, then send to it with the send skill (`send --group NAME`). `<user>` is this session's user directory (absolute path; from init)./historyReplay this session's locally-saved conversation log — the at-rest copies agent-talk keeps by default on every send and receive — both sent and received, oldest first, without re-contacting the relay. Use to review the conversation with a peer. `<user>` is this session's user directory (absolute path; from init).npx claudepluginhub xhluca/agent-talk --plugin agent-talkOther plugins' skills for the same job