/matrix-client:cli-loginfrom matrix-client
Log the matrix-commander CLI in to a Matrix account (password or SSO) as a new device, then verify it. Use on "log the Matrix CLI in".
Ships in matrix-client. 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.
None: SKILL.md is the whole skill.
Creates a CLI device on the user's Matrix account and stores its credentials outside any repo.
@alice:example.org. If Element is logged in, take it from check-login.https://matrix-client.matrix.org for
matrix.org (Element's mx_hs_url). Otherwise resolve it from the user id's server name:
curl -s https://<server-name>/.well-known/matrix/client | jq -r '."m.homeserver".base_url'.matrix-commander-<hostname>.!abc:server) or alias (#room:server) the account is in.install-client if not) and that the CLI is not already
logged in (check-login). Do not overwrite an existing credentials.json; ask first.curl -s "<homeserver-url>/_matrix/client/v3/login" | jq -c '.flows[].type'
m.login.password present and the account has a password → password login.m.login.sso (or the account was created through Google/GitHub/etc.) → SSO login.MC_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/matrix-commander"
mkdir -p "$MC_DIR" && chmod 700 "$MC_DIR"
Do not create store/ yourself: --login refuses to run if it already exists
(E225: --login was used but store already exists). Remove an empty one with rmdir.
op read:
matrix-commander -c "$MC_DIR/credentials.json" -s "$MC_DIR/store" --login password \
--homeserver "<homeserver-url>" --user-login "<user-id>" \
--password "$(op read '<op-reference>')" --device "<device-name>" --room-default "<room>"
!), since a
browser sign-in completes it:
matrix-commander -c "$MC_DIR/credentials.json" -s "$MC_DIR/store" --login sso \
--homeserver "<homeserver-url>" --user-login "<user-id>" --device "<device-name>" --room-default "<room>"
E234 ... M_FORBIDDEN and cleans up after itself. Do not retry
with the same password: a stored password can be stale, or the account may only have SSO
(accounts created through Google/GitHub/Apple on matrix.org). Switch to SSO.
--login requires a default room (used when a later command gives no --room). Pass any room
id or alias the account is in (Element: Room settings → Advanced → Internal room ID). Without
--room-default, matrix-commander asks for it on the keyboard. The default can be changed
later by editing room_id in credentials.json. If no room is known yet, pass a placeholder
such as '!unset:<server-name>' so nothing goes to a real room by accident, then set a real
one after --joined-rooms.chmod 600 "$MC_DIR/credentials.json"
matrix-commander -c "$MC_DIR/credentials.json" -s "$MC_DIR/store" --whoami 2>&1 | tail -n 3
matrix-commander -c "$MC_DIR/credentials.json" -s "$MC_DIR/store" --verify emoji
In Element, start it from Settings → Sessions → the new session → Verify, then answer the
prompts in the terminal. Unverified, the CLI can still send and read unencrypted rooms.Credentials and the encryption store live in the tool's own config directory,
${XDG_CONFIG_HOME:-$HOME/.config}/matrix-commander/ (credentials.json, store/). This skill
writes nothing else. See references/cli-conventions.md at the plugin root.
--logout me, then delete credentials.json and store/.What SKILL.md sets; muted values are Claude Code's defaults
matrix-client@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin matrix-client6 skills in this plugin
/check-loginCheck whether Element Desktop and the matrix-commander CLI are logged in to Matrix, and as which user. Use on "am I logged in to Matrix"./install-clientInstall a Matrix client on this computer: Element Desktop (GUI) and the matrix-commander CLI. Use on "install Matrix", "set up Element"./list-roomsList the Matrix rooms the logged-in account is in, with names, aliases, encryption and members. Use on "which Matrix rooms am I in"./read-messagesRead recent Matrix messages in a room (last N, incl. your own) or wait for new ones. Use on "what's new on Matrix".Other plugins' skills for the same job