Skip to content

dillonwilliams/signal-chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Signal-ChatGPT Relay makes an OpenAI chatbot available over Signal messenger.

This is good for those who need AI on an airplane, as some airlines provide free messaging service for Signal. It may also be useful in jurisdictions where ChatGPT is not available. It gives some extra control of the model such as modifying the system prompt.

Active instance

Message +1-775-235-2686 on Signal, or add it to your contacts with the QR code below.

Down due to signald problems

vcard2

Dependencies and installation instructions

This mostly uses the Semaphore library for Signal functionality.

You can run your own or modify this bot with a Signal number you control. You should register the number on a phone (perhaps with a Google Voice number), and then link it with the signaldctl account link command as shown below. Don't bother trying to register a new number with signald, as it doesn't work with the new CAPTCHA.

System dependencies

Steps

  1. Link your Signal number to signald.
signaldctl account link +XXXXXXXXXXX
# a QR code appears on screen that you scan with your phone
  1. Clone the repo and install dependencies inside a venv
git clone git@github.com:dillonwilliams/signal-chatgpt.git
python -m venv venv
source venv/bin/activate
cd signal-chatgpt
pip install -r requirements.txt
  1. Edit the paths in signal-chatgpt.service to match the clone dir and venv dir, and fill in the 2 environment variables.
  2. Copy the service file, load and enable
sudo cp signal-chatgpt.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable signal-chatgpt
sudo systemctl start signal-chatgpt
  1. View logs with sudo journalctl -u signal-chatgpt

If the bot hangs it is probably signald's fault and should be restarted with sudo systemctl restart signald.

For dev work, run python bot.py inside your virtualenv.

Releases

No releases published

Packages

No packages published