This project is currently archived. The relevant API:s and libraries are constantly shifting, and I don't have time to keep up.
signal-aichat is an AI-powered chatbot for the Signal messenger app. It currently supports:
!bing
!gpt
!bard
!hugchat
!llama
git clone https://github.com/cycneuramus/signal-aichat
signald
Chatting with your own number via "Note to Self" does not work. This assumes you will be using a separate Signal account for the bot.
Start the signald
container:
docker compose up -d signald
Drop into the container's shell:
docker exec -it signal-aichat-signald /bin/bash
Once inside the container, either:
# link to an existing account:
$ signaldctl account link --device-name signal-aichat
or
# register a new account:
$ signaldctl account register [phone number]
For more information, see the documentation for signald
.
Once the account is setup, populate the SIGNAL_PHONE_NUMBER
variable in the .env
file.
See the Bard repository. TL;DR:
Go to https://bard.google.com/
__Secure-1PSID
. Copy the value of that cookie..env
, populate the BARD_TOKEN
variable with the cookie valueSee the EdgeGPT repository. TL;DR:
Make sure to add the exported JSON to the config/bing.json
file in this repo directory.
.env
file, populate the OPENAI_API_KEY
variable with your API keyOPENAI_API_BASE
variable to use a different endpoint (defaults to https://api.openai.com/v1)See the HuggingChat API repository. TL;DR:
Cookie-Editor
extension for Chrome or FirefoxExport
on the bottom right, then Export as JSON
(this saves your cookies to the clipboard)Make sure to add the exported JSON to the config/hugchat.json
file in this repo directory.
models
directory.env
file, change the model in the MODEL
path variable to match your model fileIn .env
:
DISABLED_MODELS
variable!<model>
, populate the DEFAULT_MODEL
variableAssuming DEFAULT_MODEL=gpt
, for example, you'd be able to chat normally:
docker compose up -d
And start chatting.