You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Added
- Matrix can authenticate with `MATRIX_USER` and `MATRIX_PASSWORD`
when no access token is available; token auth remains supported.
## Changed
- Helm: optional `config.matrix.user` and `secrets.matrixPassword`
for password-based installs.
## Fixed
- Use `client.loginRequest` instead of deprecated `client.login` for
password flows.
Copy file name to clipboardExpand all lines: README.md
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Kaytoo is configured via environment variables. For a minimal example, see `.env
101
101
**Chat adapters** - configure at least one to run in chat mode. Kaytoo posts scheduled insights to every configured platform and answers chat replies on the same platform a message arrives from. See the per-platform setup and full variable tables below:
**Search backend** (Choose either OpenSearch or Elasticsearch. Do not set both)
@@ -202,21 +202,27 @@ Uses [`matrix-js-sdk`](https://github.com/matrix-org/matrix-js-sdk) with an in-m
202
202
| Variable | Required | Default | Notes |
203
203
| --- | --- | --- | --- |
204
204
|`MATRIX_HOMESERVER`| yes | - | Homeserver base URL. |
205
-
|`MATRIX_ACCESS_TOKEN`| yes | - | Access token for the bot user. |
205
+
|`MATRIX_ACCESS_TOKEN`| one-of | - | Long-lived access token for the bot user. Required if `MATRIX_USER`/`MATRIX_PASSWORD` are not set. |
206
+
|`MATRIX_USER`| one-of | - | Username or full MXID for password login. Required together with `MATRIX_PASSWORD` if no access token is provided. |
207
+
|`MATRIX_PASSWORD`| one-of | - | Password for `MATRIX_USER`. Kaytoo logs in via `matrix-js-sdk` using `m.login.password` at startup. |
206
208
|`MATRIX_DEFAULT_ROOM_ID`| yes | - | Room for scheduled insight posts. Kaytoo also attempts to join it on startup. |
207
209
210
+
Provide **either**`MATRIX_ACCESS_TOKEN`**or** the `MATRIX_USER` + `MATRIX_PASSWORD` pair, not both. Token auth is preferred when the homeserver supports it.
211
+
208
212
##### Setup
209
213
210
214
1.**Create a dedicated Matrix user** for Kaytoo (recommended) on your homeserver.
211
215
- If registration is closed, have a homeserver admin create the account.
212
216
- Log in once with a Matrix client (for example Element) to confirm the account works.
213
217
214
-
2.**Create an access token** for that user.
215
-
- In Element Web: open **Help & About** -> **Advanced** -> **Access Token** (wording varies by client).
218
+
2.**Pick an authentication method:**
219
+
-**Access token** (preferred when available): in Element Web open **Help & About** -> **Advanced** -> **Access Token** (wording varies by client).
220
+
-**Username + password** (fallback for homeservers that do not expose a token UI): use the same credentials your bot logs in with.
216
221
217
222
3.**Set Kaytoo env vars**:
218
223
-`MATRIX_HOMESERVER` should be the **client API base URL** for your homeserver (often `https://matrix.example.com`, not always the same host as your MXID server part).
219
-
-`MATRIX_ACCESS_TOKEN` is the token from step 2.
224
+
- For token auth: set `MATRIX_ACCESS_TOKEN` from step 2.
225
+
- For password auth: set `MATRIX_USER` (localpart `kaytoo` or full MXID `@kaytoo:matrix.example.org`) and `MATRIX_PASSWORD`.
220
226
221
227
4.**Room membership**:
222
228
- Invite the bot user into each room where Kaytoo should respond.
0 commit comments