/matrix:configurefrom matrix
Set up the Matrix channel — save the homeserver URL and access token, review access policy. Use when the user pastes a Matrix access token, asks to configure Matrix, or wants to check channel status.
Ships in matrix. 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.
Writes the homeserver and access token to ~/.claude/channels/matrix/.env and
orients the user on access policy. The server reads both files at boot.
Arguments passed: $ARGUMENTS
Read both state files and give the user a complete picture:
Credentials — check ~/.claude/channels/matrix/.env for
MATRIX_HOMESERVER and MATRIX_ACCESS_TOKEN. Show set/not-set; if set,
show homeserver and first 10 chars of token masked (syt_abc...).
Access — read ~/.claude/channels/matrix/access.json (missing file =
defaults: dmPolicy: "allowlist", empty allowlist). Show:
What next — end with a concrete next step based on state:
/matrix:configure <homeserver> <access_token>"/matrix:access allow @you:server"<homeserver> <access_token> — save credentials$ARGUMENTS. First arg is the homeserver URL, second is the access
token. The homeserver should be a full URL like https://matrix.org.mkdir -p ~/.claude/channels/matrix.env if present; update/add the MATRIX_HOMESERVER= and
MATRIX_ACCESS_TOKEN= lines, preserve other keys. Write back, no quotes./reload-plugins for changes to take
effect."clear — remove credentialsDelete the MATRIX_HOMESERVER= and MATRIX_ACCESS_TOKEN= lines (or the file
if those are the only lines).
If the user asks how to get a token, guide them:
syt_ on newer homeservers)curl -X POST https://matrix.org/_matrix/client/v3/login \
-H 'Content-Type: application/json' \
-d '{"type":"m.login.password","user":"@bot:matrix.org","password":"..."}'
The response contains access_token..env once at boot. Credential changes need a session
restart or /reload-plugins. Say so after saving.access.json is re-read on every inbound message — policy changes via
/matrix:access take effect immediately, no restart.What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub solastrius/claude-plugins --plugin matrix