AI Messenger is a macOS application designed to read your chat.db
table and send messages to the chat when prompted. It also supports sending messages to self-chats (chats with yourself).
- Reads and interacts with your
chat.db
table. - Sends messages to chats when called with
@a
(or any mention you configure). - Configurable with user-specific details.
- macOS
- Full Disk Access enabled in Privacy & Security settings.
- Ollama installed for model support.
- Python 3.12 (see requirements.txt)
First, clone the repository to your local machine:
git clone https://github.com/yourusername/ai-messenger.git
cd ai-messenger
Create a virtual environment and install the required packages:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Navigate to the src/config
directory and open the configuration file. Set the model running on Ollama.
{
"model": "ollama_model_name"
}
Use the pyinstaller
builder to create the .app
file:
python build_app.py
Once you have the .app
file, copy it to your Applications folder:
cp dist/AI_Messenger.app /Applications/
Go to System Preferences
> Privacy & Security
> Full Disk Access
and enable Full Disk Access for AI Messenger.
- Download and install Ollama from here.
- Open a terminal and run the following command to pull the latest model:
git pull llama3
You can now run AI Messenger from your Applications folder.
To send a message to a chat:
- Mention
@a
at the beginning or end of the chat for AIM to jump in.
- Ensure Full Disk Access is enabled.
- Verify the configuration file has the correct details.
- Make sure Ollama is correctly installed and the latest model is pulled.
I've had an issue where the FDA flicks off even after flicking it on, so double check.
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the GNU General Public License (GPL). See the LICENSE
file for details.
By following these steps, you should be able to successfully install and use AI Messenger on your macOS device. If you encounter any issues, refer to the troubleshooting section or open an issue in the repository.