Skip to Content

Matrix

SwB exchanges text messages through a Matrix bot account. It replies in the same room or thread. Mention the bot in a group room to send it a message.

Set room encryption to Off when you create a room for SwB. The bot accepts invites only from the owner accounts you set in SwB.

Set up Matrix

Block settings

A SwB space groups Matrix rooms that share settings. A Matrix user ID looks like @alex:matrix.example.org. A room ID looks like !team:matrix.example.org.

KeyUse
blocks.matrixMatrix connection settings
blocks.matrix.useSet to matrix
blocks.matrix.enabledSet to true to load the block
blocks.matrix.homeserverHTTPS address of the server that hosts the bot account
blocks.matrix.token_envName of the environment variable for the access token
blocks.matrix.projectSwB project for messages from Matrix
blocks.matrix.default_targetDefault agent address, such as agent:claude
blocks.matrix.agentsSpaces where each agent can post and receive events
blocks.matrix.spacesSets of rooms that share settings
blocks.matrix.spaces.*.roomsMatrix room IDs for this space
blocks.matrix.spaces.*.owner_idsMatrix user IDs that SwB treats as owners
blocks.matrix.spaces.*.knownMatrix user IDs and names for known people
blocks.matrix.spaces.*.projectProject for this space
blocks.matrix.spaces.*.default_targetDefault agent address for this space

On this page