Matrix
This is a shipped runtime-backed surface: direct sends are implemented, the serve loop is implemented, and the channel can joinmulti-channel-serve or gateway run.
At A Glance
| Field | Value |
|---|---|
| Catalog id | matrix |
| Config key | matrix |
| Implementation status | runtime_backed |
| Transport | matrix_client_server_sync |
| Aliases | none |
| Default send target kind | conversation |
Minimal Config
Smoke Test
Command Surface
| Operation | Command | Usage or status |
|---|---|---|
| direct send | matrix-send | Usage: loong matrix-send [OPTIONS] —target <TARGET> —text <TEXT> |
| sync reply loop | matrix-serve | Usage: loong matrix-serve [OPTIONS] |
Required Fields For Send
| Requirement | Config paths | Env pointer paths | Default env |
|---|---|---|---|
| channel enabled | matrix.enabledmatrix.accounts.<account>.enabled | none | none |
| access token | matrix.access_tokenmatrix.accounts.<account>.access_token | matrix.access_token_envmatrix.accounts.<account>.access_token_env | MATRIX_ACCESS_TOKEN |
| homeserver base url | matrix.base_urlmatrix.accounts.<account>.base_url | none | none |
Required Fields For Serve
| Requirement | Config paths | Env pointer paths | Default env |
|---|---|---|---|
| channel enabled | matrix.enabledmatrix.accounts.<account>.enabled | none | none |
| access token | matrix.access_tokenmatrix.accounts.<account>.access_token | matrix.access_token_envmatrix.accounts.<account>.access_token_env | MATRIX_ACCESS_TOKEN |
| homeserver base url | matrix.base_urlmatrix.accounts.<account>.base_url | none | none |
| allowed room ids | matrix.allowed_room_idsmatrix.accounts.<account>.allowed_room_ids | none | none |
| user id when ignore_self_messages is enabled | matrix.user_idmatrix.accounts.<account>.user_id | none | none |
Gateway And Ownership
This surface can run directly through its own*-serve command, or under Gateway And Supervision through multi-channel-serve and gateway run.
Operator Notes
- Point
base_urlat the homeserver, not a Matrix web client URL. - Set
user_idwhen self-message filtering matters for the room topology.
Related Docs
- Continue to Channel Guides for the full shipped channel matrix.
- Continue to Channels for the conceptual surface model.
- Continue to Channel Setup for the shared public setup contract.
- Continue to Gateway And Supervision when this surface needs longer-lived runtime ownership.