Tutorial10 min readFebruary 15, 2026

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:

# Install Homebrew (if you don't have it)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Node.js
brew install node
# Verify installation
node --version # Should show v20+

Step 2: Install OpenClaw

npm install -g openclaw
# Verify
openclaw --version

Step 3: Create Your Workspace

# Create workspace directory
mkdir ~/my-agent && cd ~/my-agent
# Initialize OpenClaw
openclaw init

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):

# Open config
openclaw config edit
# Set your model and API key
# model: anthropic/claude-sonnet-4-5
# anthropicApiKey: sk-ant-...

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.

  1. Open Telegram and search for @BotFather
  2. Send /newbot and follow the prompts to create a bot
  3. Copy the bot token (looks like 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11)
  4. Add the token to your OpenClaw config under the Telegram channel section
  5. Send a message to your new bot in Telegram — your agent will respond!

Step 6: Launch Your Agent

# Start the OpenClaw gateway
openclaw gateway start
# Check status
openclaw gateway status

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:

# OpenClaw runs as a background daemon by default
# It auto-starts on boot if configured
openclaw gateway start --daemon
# Prevent Mac from sleeping
sudo pmset -a disablesleep 1

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