Skip to content

Commit 3eced43

Browse files

File tree

14 files changed

+31
-513
lines changed

14 files changed

+31
-513
lines changed

.github/renovate.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
]
2828
}
2929
],
30-
"ignoreDeps": [
31-
"ghcr.io/matrixgpt/matrix-chatgpt-bot"
32-
],
3330
"pre-commit": {
3431
"enabled": true
3532
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 2025-11-07
2+
3+
## The matrix-chatgpt-bot has been removed from the playbook
4+
5+
The [matrix-bot-chatgpt](./docs/configuring-playbook-bot-chatgpt.md) has been removed from the playbook, as it has been deprecated since September 2024.
6+
7+
The playbook will let you know if you're using any `matrix_bot_chatgpt_*` variables. You'll need to remove them from `vars.yml` and potentially [uninstall the bot manually](./docs/configuring-playbook-bot-chatgpt.md#uninstalling-matrix-chatgpt-bot-manually).
8+
19
# 2025-11-05
210

311
## The MX Puppet bridges for Discord, Instagram, Slack, and Twitter have been removed from the playbook
Lines changed: 11 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,25 @@
11
<!--
2-
SPDX-FileCopyrightText: 2023 - 2024 Slavi Pantaleev
3-
SPDX-FileCopyrightText: 2023 MDAD project contributors
2+
SPDX-FileCopyrightText: 2019 - 2025 Slavi Pantaleev
3+
SPDX-FileCopyrightText: 2022 Dennis Ciba
4+
SPDX-FileCopyrightText: 2022 Nikita Chernyi
5+
SPDX-FileCopyrightText: 2023 - 2024 MDAD project contributors
46
SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
57
68
SPDX-License-Identifier: AGPL-3.0-or-later
79
-->
810

9-
# Setting up matrix-bot-chatgpt (optional, unmaintained)
11+
# Setting up matrix-chatgpt-bot (optional, removed)
1012

11-
**Note**: [matrix-chatgpt-bot](https://github.com/matrixgpt/matrix-chatgpt-bot) is now an archived (**unmaintained**) project. Talking to ChatGPT (and many other LLM providers) can happen via the much more featureful [baibot](https://github.com/etkecc/baibot), which can be [installed using this playbook](configuring-playbook-bot-baibot.md). Consider using that bot instead of this one.
13+
🪦 The playbook used to be able to install and configure [matrix-chatgpt-bot](https://github.com/matrixgpt/matrix-chatgpt-bot), but no longer includes this component.
1214

13-
The playbook can install and configure [matrix-chatgpt-bot](https://github.com/matrixgpt/matrix-chatgpt-bot) for you.
15+
While not a 1:1 replacement, the bot's author suggests taking a look at [baibot](https://github.com/etkecc/baibot) as a replacement, which can also be [installed using this playbook](configuring-playbook-bot-baibot.md).
1416

15-
Talk to [ChatGPT](https://openai.com/blog/chatgpt/) via your favourite Matrix client!
17+
## Uninstalling matrix-chatgpt-bot manually
1618

17-
See the project's [documentation](https://github.com/matrixgpt/matrix-chatgpt-bot/blob/main/README.md) to learn what it does and why it might be useful to you.
18-
19-
## Prerequisites
20-
21-
### Obtain an OpenAI API key
22-
23-
To use the bot, you'd need to obtain an API key from [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys).
24-
25-
### Register the bot account
26-
27-
The playbook does not automatically create users for you. You **need to register the bot user manually** before setting up the bot.
28-
29-
Generate a strong password for the bot. You can create one with a command like `pwgen -s 64 1`.
30-
31-
You can use the playbook to [register a new user](registering-users.md):
19+
If you still have the matrix-chatgpt-bot component installed on your Matrix server, the playbook can no longer help you uninstall it and you will need to do it manually. To uninstall manually, run these commands on the server:
3220

3321
```sh
34-
ansible-playbook -i inventory/hosts setup.yml --extra-vars='username=bot.chatgpt password=PASSWORD_FOR_THE_BOT admin=no' --tags=register-user
35-
```
36-
37-
### Obtain an access token and create encryption keys
38-
39-
The bot requires an access token to be able to connect to your homeserver. Refer to the documentation on [how to obtain an access token](obtaining-access-tokens.md).
40-
41-
> [!WARNING]
42-
> Access tokens are sensitive information. Do not include them in any bug reports, messages, or logs. Do not share the access token with anyone.
43-
44-
To make sure the bot can read encrypted messages, it will need an encryption key, just like any other new user. While obtaining the access token, follow the prompts to setup a backup key. More information can be found in the [Element documentation](https://element.io/help#encryption6).
45-
46-
## Adjusting the playbook configuration
47-
48-
To enable the bot, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file. Make sure to replace `API_KEY_HERE` with the API key retrieved [here](#obtain-an-openai-api-key) and `ACCESS_TOKEN_HERE` with the access token created [here](#obtain-an-access-token-and-create-encryption-keys), respectively.
49-
50-
```yaml
51-
matrix_bot_chatgpt_enabled: true
52-
53-
matrix_bot_chatgpt_openai_api_key: 'API_KEY_HERE'
54-
55-
# Uncomment and adjust this part if you'd like to use a username different than the default
56-
# matrix_bot_chatgpt_matrix_bot_username_localpart: 'bot.chatgpt'
57-
58-
matrix_bot_chatgpt_matrix_access_token: 'ACCESS_TOKEN_HERE'
22+
systemctl disable --now matrix-bot-chatgpt.service
5923

60-
# Configuring the system prompt used, needed if the bot is used for special tasks.
61-
# More information: https://github.com/mustvlad/ChatGPT-System-Prompts
62-
matrix_bot_chatgpt_matrix_bot_prompt_prefix: 'Instructions:\nYou are ChatGPT, a large language model trained by OpenAI.'
24+
rm -rf /matrix/chatgpt
6325
```
64-
65-
### Extending the configuration
66-
67-
There are some additional things you may wish to configure about the bot.
68-
69-
Take a look at:
70-
71-
- `roles/custom/matrix-bot-chatgpt/defaults/main.yml` for some variables that you can customize via your `vars.yml` file
72-
73-
## Installing
74-
75-
After configuring the playbook, run it with [playbook tags](playbook-tags.md) as below:
76-
77-
<!-- NOTE: let this conservative command run (instead of install-all) to make it clear that failure of the command means something is clearly broken. -->
78-
```sh
79-
ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,ensure-matrix-users-created,start
80-
```
81-
82-
**Notes**:
83-
84-
- The `ensure-matrix-users-created` playbook tag makes the playbook automatically create the bot's user account.
85-
86-
- The shortcut commands with the [`just` program](just.md) are also available: `just install-all` or `just setup-all`
87-
88-
`just install-all` is useful for maintaining your setup quickly ([2x-5x faster](../CHANGELOG.md#2x-5x-performance-improvements-in-playbook-runtime) than `just setup-all`) when its components remain unchanged. If you adjust your `vars.yml` to remove other components, you'd need to run `just setup-all`, or these components will still remain installed.
89-
90-
## Usage
91-
92-
To use the bot, invite it to the room you specified on your `vars.yml` file (`/invite @bot.chatgpt:example.com` where `example.com` is your base domain, not the `matrix.` domain).
93-
94-
After the bot joins the room, you can send a message to it. When you do so, use the prefix if you configured it or mention the bot.
95-
96-
## Troubleshooting
97-
98-
As with all other services, you can find the logs in [systemd-journald](https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html) by logging in to the server with SSH and running `journalctl -fu matrix-bot-chatgpt`.

group_vars/matrix_servers

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ devture_systemd_service_manager_services_list_auto: |
291291
+
292292
([{'name': 'matrix-bot-draupnir.service', 'priority': 4000, 'groups': ['matrix', 'bots', 'draupnir', 'bot-draupnir']}] if matrix_bot_draupnir_enabled else [])
293293
+
294-
([{'name': 'matrix-bot-chatgpt.service', 'priority': 2200, 'groups': ['matrix', 'bots', 'chatgpt', 'bot-chatgpt']}] if matrix_bot_chatgpt_enabled else [])
295-
+
296294
([{'name': 'matrix-appservice-discord.service', 'priority': 2000, 'groups': ['matrix', 'bridges', 'appservice-discord']}] if matrix_appservice_discord_enabled else [])
297295
+
298296
([{'name': 'matrix-appservice-draupnir-for-all.service', 'priority': 4000, 'groups': ['matrix', 'bridges', 'draupnir-for-all', 'appservice-draupnir-for-all']}] if matrix_appservice_draupnir_for_all_enabled else [])
@@ -2844,33 +2842,6 @@ matrix_bot_baibot_container_additional_networks_auto: |-
28442842
#
28452843
######################################################################
28462844

2847-
######################################################################
2848-
#
2849-
# matrix-bot-chatgpt
2850-
#
2851-
######################################################################
2852-
2853-
# We don't enable bots by default.
2854-
matrix_bot_chatgpt_enabled: false
2855-
2856-
matrix_bot_chatgpt_container_image_registry_prefix_upstream: "{{ matrix_container_global_registry_prefix_override if matrix_container_global_registry_prefix_override else matrix_bot_chatgpt_container_image_registry_prefix_upstream_default }}"
2857-
2858-
matrix_bot_chatgpt_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
2859-
2860-
matrix_bot_chatgpt_container_network: "{{ matrix_addons_container_network }}"
2861-
matrix_bot_chatgpt_container_additional_networks_auto: "{{ [] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network] }}"
2862-
2863-
matrix_bot_chatgpt_matrix_homeserver_url: "{{ matrix_addons_homeserver_client_api_url }}"
2864-
2865-
matrix_bot_chatgpt_systemd_required_services_list_auto: "{{ matrix_addons_homeserver_systemd_services_list }}"
2866-
2867-
######################################################################
2868-
#
2869-
# /matrix-bot-chatgpt
2870-
#
2871-
######################################################################
2872-
2873-
28742845
######################################################################
28752846
#
28762847
# matrix-bot-go-neb
@@ -4906,10 +4877,6 @@ matrix_synapse_admin_config_asManagedUsers_auto: |
49064877
'^@'+(matrix_bot_draupnir_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
49074878
] if matrix_bot_draupnir_enabled else [])
49084879
+
4909-
([
4910-
'^@'+(matrix_bot_chatgpt_matrix_bot_username_localpart | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
4911-
] if matrix_bot_chatgpt_enabled else [])
4912-
+
49134880
([
49144881
'^@'+(matrix_bot_honoroit_login | default('') | regex_escape) +':'+(matrix_domain | regex_escape)+'$',
49154882
] if matrix_bot_honoroit_enabled else [])
@@ -5819,12 +5786,6 @@ matrix_user_creator_users_auto: |
58195786
'initial_type': 'bot',
58205787
}] if matrix_bot_baibot_enabled else [])
58215788
+
5822-
([{
5823-
'username': matrix_bot_chatgpt_matrix_bot_username_localpart,
5824-
'initial_password': matrix_bot_chatgpt_matrix_bot_password,
5825-
'initial_type': 'bot',
5826-
}] if matrix_bot_chatgpt_enabled and matrix_bot_chatgpt_matrix_bot_password | length > 0 else [])
5827-
+
58285789
([{
58295790
'username': matrix_bot_matrix_reminder_bot_matrix_user_id_localpart,
58305791
'initial_password': matrix_bot_matrix_reminder_bot_matrix_user_password,

roles/custom/matrix-bot-chatgpt/defaults/main.yml

Lines changed: 0 additions & 116 deletions
This file was deleted.

roles/custom/matrix-bot-chatgpt/tasks/install.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)