How to Deploy an OpenClaw Agent on a Mac Mini
Turn a Mac Mini into a 24/7 AI operations center. Complete walkthrough from zero to your first running agent.
Why a Mac Mini?
The Mac Mini is the perfect always-on AI agent host. Starting at $99 for older models (or $599 for the M4), it's quiet, energy-efficient (draws about 5-15W at idle), and powerful enough to run multiple agents simultaneously. macOS handles sleep/wake gracefully, and you get a full Unix terminal.
Any Mac with Apple Silicon (M1, M2, M3, M4, M5) works great. Even Intel Macs work fine — the agent itself runs on cloud AI models, so local compute requirements are minimal.
What You'll Need
- ✓A Mac Mini (or any Mac/Linux machine)
- ✓An AI model API key (Anthropic Claude, OpenAI, or Google Gemini)
- ✓A Telegram account (for chatting with your agent)
- ✓An AutoClaw agent workspace (.zip download)
- ✓15 minutes
Step 1: Install Prerequisites
Open Terminal and install Node.js via Homebrew:
Step 2: Install OpenClaw
Step 3: Create Your Workspace
This creates the basic OpenClaw configuration. Now unzip your AutoClaw agent workspace into this directory — the SOUL.md, HEARTBEAT.md, and other files will define your agent.
Step 4: Configure Your AI Model
Open the OpenClaw config and add your API key. The most popular choice is Anthropic Claude (recommended for its reasoning capabilities):
You can also use OpenAI (GPT-4o), Google (Gemini), or any compatible model. Your agent workspace README.md has specific instructions for your template.
Step 5: Connect Telegram
This is how you'll chat with your agent from your phone.
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts to create a bot - Copy the bot token (looks like
123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11) - Add the token to your OpenClaw config under the Telegram channel section
- Send a message to your new bot in Telegram — your agent will respond!
Step 6: Launch Your Agent
That's it. Your agent is now running. Open Telegram, message your bot, and start chatting. The agent will introduce itself based on its SOUL.md and begin running heartbeat checks automatically.
Keeping It Running 24/7
To keep your agent running after you close Terminal or restart your Mac:
Your Mac Mini will now run your agent continuously, checking heartbeats, monitoring integrations, and responding to messages — even when you're away.
Need an Agent to Deploy?
Pick from 11 production-tested templates. Customize and download in minutes.
Build Your Agent