
Run MoltBot on Mac Mini - 24/7 Home Server Guide
Deploy MoltBot on Mac Mini for always-on AI assistant. Apple Silicon optimization and home server setup guide.
Run MoltBot on Mac Mini
Mac Mini is perfect for running MoltBot as a 24/7 home server. Low power consumption, quiet operation, and Apple Silicon performance make it ideal for an always-on AI assistant.
Why Mac Mini?
- Low Power: 5-10W idle, perfect for 24/7 operation
- Silent: No fan noise at idle
- Apple Silicon: M1/M2/M4 chips run local models efficiently
- Compact: Fits anywhere in your home
- Reliable: macOS stability for long-term operation
Prerequisites
- Mac Mini (M1 or newer recommended)
- macOS Sonoma or later
- API key for your AI provider
- Home network setup
Installation
Method 1: Homebrew (Recommended)
brew install moltbotMethod 2: npm
npm install -g moltbotMethod 3: Direct Download
Download the .dmg from releases and drag to Applications.
Initial Setup
Run the setup wizard:
moltbot setupConfigure your AI provider:
# For Claude
export ANTHROPIC_API_KEY="sk-ant-xxx"
# For GPT
export OPENAI_API_KEY="sk-xxx"
# For Gemini
export GOOGLE_AI_API_KEY="xxx"Running as a Background Service
Using launchd (Recommended)
Create a launch agent:
mkdir -p ~/Library/LaunchAgentsCreate ~/Library/LaunchAgents/com.moltbot.agent.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.moltbot.agent</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/moltbot</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardOutPath</key>
<string>/tmp/moltbot.log</string>
<key>StandardErrorPath</key>
<string>/tmp/moltbot.error.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>ANTHROPIC_API_KEY</key>
<string>YOUR_API_KEY_HERE</string>
</dict>
</dict>
</plist>Load the service:
launchctl load ~/Library/LaunchAgents/com.moltbot.agent.plistControl the service:
# Start
launchctl start com.moltbot.agent
# Stop
launchctl stop com.moltbot.agent
# Unload
launchctl unload ~/Library/LaunchAgents/com.moltbot.agent.plistApple Silicon Optimization
Running Local Models
Mac Mini with Apple Silicon can run local LLMs efficiently:
# Install Ollama
brew install ollama
# Pull a model
ollama pull llama3.1
# Configure MoltBot to use Ollama
moltbot config set aiProvider ollama
moltbot config set ollamaModel llama3.1Memory Configuration
For M1/M2/M4 with 16GB+ RAM, optimize for local models:
{
"memory": {
"maxContextTokens": 128000
},
"ollama": {
"model": "llama3.1:70b",
"numGpu": 1
}
}Home Server Configuration
Static IP
Set a static IP for your Mac Mini:
- Open System Settings > Network
- Select your connection > Details
- Select TCP/IP tab
- Configure IPv4: Manually
- Enter IP address (e.g., 192.168.1.100)
Remote Access
Enable SSH for remote management:
- System Settings > General > Sharing
- Enable Remote Login
Access from any device:
ssh yourusername@192.168.1.100Prevent Sleep
Keep Mac Mini always awake:
- System Settings > Energy Saver
- Turn off "Put hard disks to sleep"
- Turn off "Automatically sleep"
- Enable "Wake for network access"
Or via terminal:
sudo pmset -a sleep 0
sudo pmset -a disksleep 0Messaging Integration
Telegram Bot
# Set token
export TELEGRAM_BOT_TOKEN="123456:ABC-xxx"
# Enable in config
moltbot config set telegram.enabled trueDiscord Bot
export DISCORD_BOT_TOKEN="xxx"
moltbot config set discord.enabled truemoltbot whatsapp login
# Scan QR code with your phoneMonitoring
View Logs
# Live logs
tail -f /tmp/moltbot.log
# Error logs
tail -f /tmp/moltbot.error.logHealth Check
Create a simple monitoring script:
#!/bin/bash
if ! pgrep -x "moltbot" > /dev/null; then
launchctl start com.moltbot.agent
echo "MoltBot restarted at $(date)" >> /tmp/moltbot-monitor.log
fiAdd to crontab:
crontab -e
# Add line:
*/5 * * * * /path/to/monitor.shPower Management
UPS Integration
For uninterrupted service, connect a UPS and configure:
- System Settings > Battery > UPS
- Set "Shut down computer on UPS low battery"
Wake on LAN
Enable remote wake:
sudo pmset -a womp 1Wake remotely using the Mac's MAC address.
Backup
Time Machine
Enable Time Machine for automatic backups:
- Connect external drive
- System Settings > Time Machine
- Select backup disk
MoltBot Data Backup
MoltBot stores data in ~/.moltbot/:
# Backup
tar -czf moltbot-backup.tar.gz ~/.moltbot
# Restore
tar -xzf moltbot-backup.tar.gz -C ~Updating
# Homebrew
brew upgrade moltbot
# npm
npm update -g moltbotTroubleshooting
Service Won't Start
Check logs:
cat /tmp/moltbot.error.logVerify permissions:
chmod +x /opt/homebrew/bin/moltbotHigh CPU Usage
Limit resources in config:
{
"performance": {
"maxConcurrentTasks": 2,
"cpuLimit": 50
}
}Network Issues
Check firewall:
- System Settings > Network > Firewall
- Allow incoming connections for MoltBot
Your Mac Mini is now a powerful 24/7 AI assistant server! Need help? Join our Discord community.
Categories
More Posts

MoltBot Windows Installation - Complete Setup Guide
How to install MoltBot on Windows 10/11. Detailed guide for Windows users with step-by-step instructions.

MoltBot with Ollama - Run Local AI Models
Use Ollama with MoltBot for private, offline AI. Local LLM setup guide for complete privacy and control.

Install MoltBot with Docker - Complete Deployment Guide
Step-by-step guide to deploy MoltBot using Docker and Docker Compose. Run your personal AI assistant in containers.
Newsletter
Join the community
Subscribe to our newsletter for the latest news and updates