@opin-cli/matrix
v2026.2.10
Published
Opin Matrix channel plugin
Readme
@opin-cli/matrix
Matrix channel plugin for Opin.
Connect your Opin gateway to the Matrix network — receive and reply to encrypted DMs and room messages across any Matrix homeserver.
Install
opin plugins install @opin-cli/matrixRestart the gateway after install.
Requirements
- A Matrix account for your bot (on any homeserver, e.g.
matrix.org) - Access token for the bot account
Quick Setup
- Register a bot account on your Matrix homeserver
- Get the access token (
/_matrix/client/v3/login) - Configure Opin:
{
"channels": {
"matrix": {
"homeserverUrl": "https://matrix.org",
"accessToken": "${MATRIX_ACCESS_TOKEN}",
"userId": "@yourbot:matrix.org"
}
}
}Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| homeserverUrl | string | required | Matrix homeserver URL |
| accessToken | string | required | Bot access token |
| userId | string | required | Full Matrix user ID (@bot:server) |
| dmPolicy | string | "pairing" | Access control for DMs |
| enabled | boolean | true | Enable/disable the channel |
Features
- End-to-end encrypted DMs (via matrix-sdk-crypto)
- Room message support
- Pairing code access control
- Works with Element, Cinny, and any Matrix client
Links
License
MIT
