MacOS
Deploy Modmail on a macOS machine. (Tested with Apple Silicon M2)
Last updated
Deploy Modmail on a macOS machine. (Tested with Apple Silicon M2)
Minimum 2GB of RAM
At least 2GB available disk space.
Supported macOS version:
MacOS 14 Sonoma (Tested)
MacOS 11 Monterey (Tested)
We will be using the following dependencies:
Python 3.10
Tools: git, homebrew, bash or zsh
Additional Modmail requirements: cairo, libxml2, libxslt, libffi
All code blocks should be executed in zsh or bash and line by line unless specified otherwise.
To install these dependencies, we will be using Terminal (zsh or bash):
brew install git python@3.10 cairo libxml2 libxslt libffi
pip3 install cairosvgAfter that, install pipenv with:
Clone and change directory into the Modmail folder with:
Inside the Modmail folder, install pipenv and its Python packages with:
Create a file named .env with nano and paste all the environmental variables (secrets) needed to run the bot via right-clicking in the nano editor. Refer to the steps in the parent Installation page to find where to obtain these.

After that, exit the nano editor with Ctrl+X and select or enter y when prompted to save. Press enter to maintain the exiting name of the document.
If using the nano editor is a bit of a learning curve, you can edit the .env file manually with your preferred GUI-based editor like TextEdit.
After your .env file is ready, you can now go ahead and try running your bot with:
If no error shows up, it means your bot is now running correctly. You can stop the bot from running with Ctrl+C to continue using your terminal.
Last updated
python3.10 -m pip install pipenvgit clone https://github.com/modmail-dev/modmail
cd modmailpython3.10 -m pipenv install --python 3.10cp .env.example .env
nano .envpython3.10 -m pipenv run bot