GO-SENDXMPP(1)
go-sendxmpp Β· General Commands Manual Β· go-sendxmpp π
okay bestie, buckle up, this is the whole manual for go-sendxmpp (that's section 1, the general commands manual) and it's a LOT, but i promise it's all useful and i'm gonna hold your hand through every single flag, no cap π
π NAME π
go-sendxmpp β a tool to send messages to an XMPP contact or MUC. π¦
β¨ SYNOPSIS β¨
go-sendxmpp [-cdilntv] [-a value] [--allow-plain] [--anonymous]
[--fast-invalidate] [--fast-off] [-f value] [--headline] [--help] [-h
value] [-j value] [--legacy-pgp] [-m value] [--muc-password value]
[--no-sasl-upgrade] [--oob-file value] [--ox] [--ox-delete-nodes]
[--ox-genprivkey-rsa] [--ox-genprivkey-x25519] [--ox-import-privkey
value] [--ox-passphrase value] [--ox-receive-private-key value]
[--ox-transfer-private-key] [-p value] [--raw] [-r value]
[--retry-connect value] [--retry-connect-max value]
[--scram-mech-pinning value] [--ssdp-off] [-s value]
[--suppress-root-warning] [--timeout value] [--tls-version value] [-u
value] [--version] [recipientsβ¦]
like, that's the shape of it. short flags can be squished together ([-cdilntv]), long ones cannot. recipients go at the end, and they're optional depending on what you're doing π
π DESCRIPTION π
A tool to send messages to an XMPP contact or MUC, inspired by sendxmpp. periodt. π
So how do you actually feed it a message? Three iconic ways, pick your fighter:
- pipe a program's output into
go-sendxmppπ₯ - just type in your terminal β put
^Din a new line to finish, that's your "i'm done" button β¨ - or send the input from a file with
-mor--messageπ
and where does your account data live? here's the tea β it's expected at whatever you point it at, but the order of preference goes:
~/.config/go-sendxmpp/configβ the preferred one, the main character π~/.config/go-sendxmpp/sendxmpprcβ deprecated, we're moving on hun π~/.sendxmpprcβ kept around for compatibility with the original perlsendxmppπ«Ά
...that is, unless you specified some other config file location with -f or --file. then it does what you said, obviously π¦
π OPTIONS π
forty-ish options, we're doing all of them, no skimming, i don't make the rules:
-a,--alias=[value]β set the alias / nickname for chatrooms π¬--allow-plainβ allow PLAIN authentication. careful babes: this setting has no effect if there was already a successful connection using a SCRAM authentication mechanism before. in that case PLAIN is not allowed, on purpose, to prevent downgrades by a man-in-the-middle attack. we do not play with MITM around here π€--anonymousβ use anonymous authentication. you tell it which target server you want with-uor--username. the username is what specifies the server, and it also lets you override that server with-jor--jserverfor cases where the service (say,anon.example.org) is served by another server (say,xmpp.example.org) but no SRV records are set up. messy? yes. supported? also yes β¨-c,--chatroom=[value]β send the message to a chatroom instead of a person π-d,--debugβ show XMPP stanzas. these can include sensitive data so lowkey be careful where your terminal scrollback ends up π--fast-invalidateβ invalidate XEP-0484: Fast Authentication Streamlining Tokens. the current FAST token gets invalidated and a new one is requested. if you use it together with--fast-off, the FAST token gets invalidated and the stored FAST token is deleted ποΈ--fast-offβ disable XEP-0484: Fast Authentication Streamlining Tokens. it deletes the stored FAST token when used together with--fast-invalidateπ₯-f,--file=[value]β set the configuration file. (Default:~/.config/go-sendxmpp/config)--headlineβ send the message as typeheadlineπ°--helpβ show help. that's it, that's the whole job π«Ά-h,--http-upload=[value]β send a file via http-upload. you can invoke it several times to upload multiple files π-i,--interactiveβ interactive mode (for use with e.g.tail -f). yes, the vibes of watching a log file live π-j,--jserver=[value]β the XMPP server address π--legacy-pgpβ "Legacy PGP" encryption using the Ox key infrastructure. this means the recipient must have an Ox key published and use the same key for legacy PGP. this encryption method is deprecated and will be removed in a future version, so please consider switching to OpenPGP for XMPP (OX). using legacy PGP is actually discouraged and it's only provided as a workaround for conversations users. if the existing key has no ID in the form ofxmpp:user@example.org, it can be added by using the toolsq:
$ sq key userid add -u xmpp:user@example.org -Bo newkey.asc oldkey.asc`
this key (newkey.asc in the sq example) can then be imported by using --ox-import-privkey. β οΈ please note that this will store the secret key at ~/.local/share/go-sendxmpp/user_at_example_org/oxprivkey. if you don't want to use that account with go-sendxmpp and you only imported the key to upload the public key to pubsub, you might consider deleting the file ποΈ
-l,--listenβ listen for messages and print them tostdout. if JIDs are specified, only messages from those contacts are shown. if no JIDs are specified, or a chat room is joined, all received messages will be shown πβ¨-m,--message=[value]β set the file including the message π--muc-password=[value]β password for password protected MUCs π--no-sasl-upgradeβ disable XEP-0480: SASL Upgrade Tasks π«-n,--no-tls-verifyβ skip verification of TLS certificates (not recommended, for real, don't do this unless you know exactly why) π--oob-file=[value]β URL to send a file as out of band data π--oxβ use "OpenPGP for XMPP" encryption (experimental). there is no check whether the recipient's key is trusted, because there is no local keyring used.go-sendxmppjust uses the most recent key that is provided via pubsub and checks that it is not expired. as a user facing client, a notification would be shown that a new key is available, and the user would be asked whether to use the new key or stick to the old one. but sincego-sendxmppis usually used in scripts, it just accepts the new key, to prevent the user from missing a new notification due to changed keys π§--ox-delete-nodesβ delete existing OpenPGP nodes (public key and private key backup) on the server π₯--ox-genprivkey-rsaβ generate a private OpenPGP key (RSA 4096 bit) for the configured account (via config file or-uand-p) and publish the corresponding public key.go-sendxmppwill save the key in$XDG_DATA_HOME/go-sendxmpp/oxprivkeysor$HOME/.local/share/go-sendxmpp/oxprivkeys. to protect the key, a passphrase might be set using--ox-passphrasewhile generating the key. if there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity), it might be imported using--ox-import-privkeyπ--ox-genprivkey-x25519β generate a private OpenPGP key (X25519) for the configured account (via config file or-uand-p) and publish the corresponding public key.go-sendxmppwill save the key in$XDG_DATA_HOME/go-sendxmpp/oxprivkeysor$HOME/.local/share/go-sendxmpp/oxprivkeys. to protect the key, a passphrase might be set using--ox-passphrasewhile generating the key. if there is an existing private key for "OpenPGP for XMPP" created by another client (e.g. profanity), it might be imported using--ox-import-privkeyπ--ox-import-privkey=[value]β import an existing private OpenPGP key π₯--ox-passphrase=[value]β passphrase for locking and unlocking the private OpenPGP key π--ox-receive-private-key=[value]β import your encrypted private Ox key from the server. requires the transfer code ποΈ--ox-transfer-private-keyβ upload your encrypted private Ox key to the server for key transfer. the private key will be encrypted by a random generated passphrase. β οΈ please make sure to not lose the passphrase as it can not be recovered. like, fr fr, it's gone girl π-p,--password=[value]β password for the XMPP account π--rawβ send raw XML. to send raw XML to a contact as a normal chat message, no contact must be specified. to send raw XML to a MUC you have to specify the MUC via-candgo-sendxmppwill join the MUC π§©-r,--recipients=[value]β read recipients from a file, one JID per line π--retry-connect=[value]β specify a connection retry waiting time in seconds. this is the waiting time untilgo-sendxmppwill try to reconnect if connecting fails. this setting only affects the initial connection β it does not reconnect after losing the connection. it is also ignored if the connection fails due to an authentication error, because then it does not make sense to try again using the same credentials π setting a time of0seconds disables this functionality. (Default:0)--retry-connect-max=[value]β number of maximum retries to perform for--retry-connect. a value of0means unlimited retries. (Default:0) βΎοΈ--scram-mech-pinning=[<value>]β enforce the use of a certain SCRAM authentication mechanism. currentlygo-sendxmppsupportsSCRAM-SHA-1,SCRAM-SHA-1-PLUS,SCRAM-SHA-256,SCRAM-SHA-256-PLUS,SCRAM-SHA-512andSCRAM-SHA-512-PLUS. you should know what you are doing when using this setting and make sure the chosen mechanism is supported by the server. if not set,go-sendxmppwill use XEP-0474 to prevent downgrade attacks (needs server support and requires a SCRAM authentication mechanism) π‘οΈ--ssdp-offβ disable XEP-0474: SASL SCRAM Downgrade Protection π«-s,--subject=[value]β set the message subject βοΈ--suppress-root-warningβ suppress the warning when run as root. note that running as root is discouraged, althoughgo-sendxmpptries to drop the root privileges before doing network calls. be aware that OX, legacy PGP, and the pinning to not use PLAIN authentication after a successful SCRAM authentication are disabled, as those need file system access in the private user scope after dropping the privileges π¨--timeout=[value]β connection timeout in seconds. (Default:10) β±οΈ-t,--tlsβ use direct TLS π--tls-version=[value]β minimal TLS version.10(TLSv1.0),11(TLSv1.1),12(TLSv1.2),13(TLSv1.3) (Default:13) π-u,--username=[value]β username for the XMPP account (JID) πͺͺ-v,--verboseβ show debug information. these can include sensitive data π--versionβ show version information. slay π
π ENVIRONMENT VARIABLES π
HTTP_PROXY
a SOCKS5 proxy can be used by setting the environment variable HTTP_PROXY. this feature is considered experimental and there is no guarantee that there won't be any connections not using the proxy β although it didn't happen during testing π€·βοΈ
like this, bestie:
HTTP_PROXY="socks5://127.0.0.1:9050" go-sendxmpp --http-upload file.txt user@example.org
πΈ TIPS πΈ
USAGE BY ROOT
bestie, general life advice time: only perform commands as root when it is strictly necessary. periodt. π
but okay, you need to send the output from commands that have to be performed as root, and you don't want to invoke go-sendxmpp by root? use sudo π«Ά
in this example there is a user sendxmpp with a go-sendxmpp config in its $HOME:
# command-that-requires-root|sudo -H -u sendxmpp go-sendxmpp me@example.org
if go-sendxmpp is run as root, it will drop the root privileges before connecting to the server. this means FAST and OX will be disabled, because go-sendxmpp will not have the necessary rights to store the necessary data (e.g. FAST tokens or OX key material) after dropping the privileges. this is just to avoid network connections as root β and it does not mean that running as root is a supported use case. in fact, it is highly recommended to never run go-sendxmpp as root π¨ like, seriously, don't π
π SHELL COMPLETIONS π
okay bestie, so tab-completion is the dream, and like... it's not fully here yet. but we're SO close, chill.
β¨ ZSH β¨
There are no shell completions yet (contributions welcome π β yes, that's code for "please someone do this, we're begging") but for zsh it is possible to automatically create completions from --help which might work good enough.
Just place the following in your ~/.zshrc:
compdef _gnu_generic go-sendxmpp
and that's it, that's the whole vibe. π«Ά
π FISH π
There are no shell completions yet, but FISH can generate them from the man page with following command:
fish_update_completions
like... it reads the man page and just knows. iconic behavior honestly. π§
π¬ CHAT π¬
wanna come hang out?? Feel free to join https://join.jabber.network/#go-sendxmpp@chat.mdosch.de?join.
fr fr, the group chat is right there, come be part of the main character energy π
π AUTHOR π
Written by Martin Dosch.
(absolute legend, no cap π )
π REPORTING BUGS π
found something cursed?? Report bugs at https://salsa.debian.org/mdosch/go-sendxmpp/-/work_items.
that's the spot, that's where the bugs go. not into the void, not into my DMs, into the tracker. ty bestie π
π COPYRIGHT π
Copyright (c) Martin Dosch License: BSD 2-clause License
(yes it's giving legal, but it's also giving slay β¨)
π SEE ALSO π
iykyk β go read those too π
and that's a wrap on this one, babe!! π this whole masterpiece is GO-SENDXMPP(1), dated July 2026, and honestly?? she ate. go send some xmpp, periodt. πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: go-sendxmpp 0.17.0-bp160.1.1 Β· BSD-2-Clause
- opensuse-leap 16.0: go-sendxmpp 0.17.0-bp160.1.1 Β· BSD-2-Clause
- opensuse-leap 16.0: go-sendxmpp 0.17.0-bp160.1.1 Β· BSD-2-Clause
- opensuse-leap 16.0: go-sendxmpp 0.17.0-bp160.1.1 Β· BSD-2-Clause
- ubuntu stonking: go-sendxmpp 0.17.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms