Skip to main content

Matrix

Setup

1. Create a Matrix bot account

Create a new account on any Matrix homeserver (e.g. matrix.org) or your own homeserver.

2. Get an access token

Log in with the bot account and retrieve the access token from the session settings.

3. Configure

{
"channels": {
"matrix": {
"enabled": true,
"homeserver": "https://matrix.org",
"user_id": "@your-bot:matrix.org",
"access_token": "YOUR_ACCESS_TOKEN",
"allow_from": []
}
}
}

4. Start the gateway

suprclaw gateway

The bot will connect and start receiving messages.

Configuration Reference

FieldTypeRequiredDescription
enabledboolYesEnable/disable Matrix
homeserverstringYesMatrix homeserver URL
user_idstringYesBot Matrix user ID (@bot:server)
access_tokenstringYesBot access token
device_idstringNoOptional Matrix device ID
join_on_inviteboolNoAuto-join invited rooms
allow_from[]stringNoWhitelist of Matrix user IDs
group_triggerobjectNoGroup trigger strategy
placeholderobjectNoPlaceholder message config
reasoning_channel_idstringNoChannel for reasoning output
message_formatstringNo"richtext" (default) or "plain"

Message Format

ValueDescription
"richtext"Renders markdown as HTML (bold, italic, code blocks, etc.)
"plain"Sends plain text only

Features

  • Text message send/receive with markdown rendering
  • Incoming image/audio/video/file download
  • Incoming audio normalization (auto-transcription flow)
  • Outgoing file upload and send
  • Group trigger rules (mention-only mode)
  • Typing state indicator
  • Placeholder message + final reply replacement
  • Auto-join invited rooms

Mention-Only Mode

{
"channels": {
"matrix": {
"group_trigger": { "mention_only": true }
}
}
}