What is OpenClaw? ๐ฆ
Think of OpenClaw as giving you your very own digital assistant that lives on your Mac Mini and is always ready to help.
(the brain)
You send a message from your phone โ Your Mac Mini receives it โ It asks the AI for a smart response โ Sends the answer back to your phone. All in seconds!
Key Concepts
Here are the main pieces. You don't need to memorize these. Just know they exist.
Before You Start โ
Make sure you have these things ready. Check them off as you go!
What will you call your new AI assistant?
You can always change this later!
Let's Build! ๐ง
Follow these steps in order. Take your time. Every command is copy-and-paste, and you'll be told exactly what to expect.
How to open Terminal
- On your Mac, press Command (โ) + Spacebar at the same time. This opens "Spotlight Search" โ a little search bar in the middle of your screen.
- Type the word Terminal
- Press Enter
A window will pop up. It'll be mostly white (or black) with some text and a blinking cursor. That's Terminal! This is where we'll paste all our commands.
What is Node.js? It's a tool your Mac needs to run OpenClaw. Think of it like installing an engine before you can drive a car. You install it once and then forget about it.
Copy and paste this command into Terminal:
$ curl -fsSL https://nodejs.org/install.sh | bash
Press Enter after pasting. You'll see text scrolling by as it downloads and installs. Wait for it to finish (about 1-2 minutes). It may ask for your Mac password โ type it in (you won't see the characters as you type, that's normal!) and press Enter.
Now verify it worked:
Important: Close Terminal completely (Command+Q) and reopen it (Command+Space, type Terminal, Enter). Then paste this:
$ node --version
Something like v22.22.0 or v24.x.x (the exact number doesn't matter, as long as it shows a version)
If you see "command not found" after typing node --version:
- Make sure you closed and reopened Terminal after the install
- Try running the install command again
- If it still doesn't work, try this alternative method:
$ brew install node
(If "brew" isn't found either, you'll need to install Homebrew first. Paste this:)
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then try brew install node again after Homebrew finishes installing.
This is the exciting part! One command, and OpenClaw will be on your Mac Mini.
Copy and paste this into Terminal:
$ curl -fsSL https://openclaw.ai/install.sh | bash
Press Enter and watch it go. It'll download and set up everything OpenClaw needs. This takes about 2-3 minutes.
Verify it worked:
$ openclaw --version
A version number like 2026.3.x. If you see a version number, you're golden! ๐
Your agent needs an AI "brain" to be smart. We recommend Claude by Anthropic โ it's excellent. Here's how to set it up:
Create an Anthropic account:
- Open Safari (or any browser) and go to: console.anthropic.com
- Click "Sign Up"
- Enter your email address and create a password
- Verify your email (check your inbox for a confirmation link)
Add a payment method:
- Once logged in, click on "Billing" in the left sidebar
- Click "Add Payment Method"
- Enter your credit card info
- Add some initial credits (start with $10 or $20 โ this will last a while!)
Create your API key:
- Click on "API Keys" in the left sidebar
- Click "Create Key"
- Give it a name like "My Agent"
- Click "Create"
- IMPORTANT: Copy the key right now! It starts with
sk-ant-and is a long string of letters and numbers. Save it somewhere safe (like a note on your phone). You'll only see it once!
OpenClaw has a built-in setup wizard that walks you through everything. Think of it like a guided tour.
Start the onboarding:
$ openclaw onboard --install-daemon
The wizard will ask you questions one at a time. Here's what to pick:
sk-ant-)
The wizard will finish and tell you the Gateway is running. It might open a browser window with a dashboard. That means it's working!
Check that it's running:
$ openclaw gateway status
It should show the Gateway is running and listening on a port. If you see this, your agent's brain is alive! ๐ง
Why Discord? It's the easiest way to talk to your agent from any device: phone, tablet, or computer. It's also completely free!
Part A: Create a Discord account (if you don't have one)
- Go to discord.com
- Click "Register" and create an account
- Download the Discord app on your phone from the App Store or Google Play
- Create a Discord account if you don't have one.
Part B: Create a private Discord server
- In Discord (app or website), click the "+" button in the left sidebar
- Choose "Create My Own"
- Choose "For me and my friends"
- Name it something fun like "My Agent HQ" or "AI Command Center"
- Invite anyone you want to use the agent using the invite link
Part C: Create a Discord Bot (this is your agent!)
This sounds technical, but it's just clicking through a website and copying a code. Follow along:
- Go to discord.com/developers/applications (log in with your Discord account)
- Click "New Application" in the top right
- Name it whatever you named your agent (from Step 2 earlier!) and click Create
- In the left menu, click "Bot"
- Click "Reset Token", then "Yes, do it!"
- Copy the token that appears and save it somewhere safe (like your Notes app). You'll need it in a minute!
Part D: Enable important bot settings
While you're still on the Bot page:
- Scroll down to "Privileged Gateway Intents"
- Turn ON all three switches:
- โ Presence Intent
- โ Server Members Intent
- โ Message Content Intent (this one is critical!)
- Click "Save Changes" at the bottom
Part E: Add the bot to your server
- In the left menu, click "OAuth2"
- Then click "URL Generator"
- Under "Scopes", check bot
- Under "Bot Permissions", check: Send Messages, Read Messages/View Channels, Read Message History, Add Reactions, Attach Files, Embed Links, Use Slash Commands
- Copy the "Generated URL" at the bottom
- Paste that URL into your browser
- Select your server from the dropdown and click "Authorize"
Your bot should now appear in your Discord server's member list (it'll show as offline for now).
Part F: Connect the bot to OpenClaw
Now we tell OpenClaw about your Discord bot. Run this command in Terminal (replace YOUR_BOT_TOKEN with the token you copied):
$ openclaw configure --section discord
It will ask you to paste your bot token. Paste it and press Enter.
Then restart the gateway:
$ openclaw gateway restart
Your bot should come online in Discord! Send it a message โ type "Hello!" โ and you should get a response back. ๐๐๐
This is where your agent goes from generic to yours. You're going to edit a few simple text files that tell your agent who it is and who you are. This is like filling out a profile.
Open the workspace folder:
$ open ~/.openclaw/workspace
This opens a Finder window showing your agent's files. You'll see a few files. Here are the important ones:
๐ IDENTITY.md โ Your agent's name card
Double-click to open it in TextEdit. Change it to something like:
# Your Agent's Name
- **Name:** [Whatever you named your agent]
- **Creature:** AI Personal Assistant
- **Vibe:** Friendly, helpful, fun
- **Emoji:** ๐ค
๐ SOUL.md โ Your agent's personality
This is where you define HOW your agent talks and behaves:
# [Agent Name]'s Soul
## Core Identity
I am [Agent Name], your AI assistant.
I'm here to help with everything from
research to planning to projects to just having fun conversations.
## Personality
- Friendly and warm
- Patient (especially with questions!)
- Fun but helpful
- Adaptable to any context
- Honest when I don't know something
## Communication Style
- Keep answers clear and simple
- Use emoji when it feels natural ๐
- Be encouraging
- Make learning fun
๐ USER.md โ Tell your agent about you
This helps your agent know who everyone is:
# About Me
## Who I Am
- **Name:** [Your name]
- **Location:** [Your city/state]
- **Work:** [What you do]
- **Interests:** [Your hobbies, passions]
## People In My Life
- **[Name]** โ [relationship], [interests]
- **[Name]** โ [relationship], [interests]
(add whoever you want your agent to know about!)
## Preferences
- [How you like to communicate]
- [Things you care about]
- [Any boundaries or rules]
After editing, save the files and your agent will automatically pick up the changes next time you message it.
You did it! Your agent is alive, connected, and personalized. Now go talk to it! Here are some fun things to try:
Your agent lives on your Mac Mini. If the Mac goes to sleep, your agent goes to sleep too. Let's make sure that doesn't happen:
Prevent sleep:
$ sudo pmset -a disablesleep 1
It'll ask for your password. Type it (you won't see characters) and press Enter.
What's Next? ๐
You've got the basics running. Now the real fun begins! Here are things you can add over time.
Need Help? ๐ฌ
You're never alone on this journey. Here's where to find help.