name: configure description: Configures jaine-matrix channel bot credentials (homeserver URL, access token, room ID, user ID). Use when the user runs /jaine-matrix:configure to set up or update Matrix connection settings stored in ~/.claude/channels/jaine-matrix/.env.
/jaine-matrix:configure
Configure the Matrix channel bot credentials.
No arguments — show status
Display current configuration:
- Whether MATRIX_HOMESERVER_URL is set (show value)
- Whether MATRIX_ACCESS_TOKEN is set (show masked: first 8 chars + …)
- Whether MATRIX_ROOM_ID is set (show value)
- Whether MATRIX_USER_ID is set (show value)
- Current access policy and allowFrom list (read from ~/.claude/channels/jaine-matrix/access.json)
- Location of env file: ~/.claude/channels/jaine-matrix/.env
With arguments — save credentials
Accepted forms:
/jaine-matrix:configure— show status only/jaine-matrix:configure homeserver=https://... token=... room=!xxx:server user=@bot:server— set all at once/jaine-matrix:configure token=<token>— update just the token
For each provided key=value pair, write/update the corresponding line in ~/.claude/channels/jaine-matrix/.env:
homeserver=→MATRIX_HOMESERVER_URL=token=→MATRIX_ACCESS_TOKEN=room=→MATRIX_ROOM_ID=user=→MATRIX_USER_ID=
Steps:
- Create ~/.claude/channels/jaine-matrix/ if missing (mode 0700)
- Read existing .env if present
- Update/add relevant lines
- Write back with mode 0600
- Show updated status
clear argument — remove stored credentials
Delete ~/.claude/channels/jaine-matrix/.env and confirm.