Getting Started with OpenClaw
OpenClaw section · 12 min read · Last updated February 2026
This guide covers everything you need to go from zero to a working OpenClaw agent — the hardware, the accounts, the installation, and the first configuration that makes it actually useful. No fluff, no assumed knowledge.
1. What You'll Have at the End
A working agent that:
- Runs continuously on your Mac as a background service
- Receives and responds to messages via Telegram on your phone
- Has access to an AI model (cloud or local)
- Can read and write files, run searches, and execute tasks
- Remembers context across sessions
This is the foundation. Everything else — cron schedules, additional tools, memory architecture, specialized skills — gets layered on top. Get this working first.
2. Requirements
- Mac (Apple Silicon recommended)
- 8GB RAM minimum, 16GB+ preferred
- macOS 13 Ventura or newer
- Stable internet connection
- Telegram account + phone number
- Anthropic account (or OpenAI)
- Brave Search API key (free tier works)
- Node.js v18 or newer
- Homebrew (macOS package manager)
- Git
- OpenClaw: free, open source
- Telegram bot: free
- Claude API: pay-per-use (~$5–20/mo typical)
- Brave Search: 2,000 free queries/mo
3. Install OpenClaw
Install Homebrew if you don't already have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Node.js:
brew install node
Install OpenClaw globally via npm:
npm install -g openclaw
Verify the install:
openclaw --version
Initialize your workspace:
openclaw init
This creates a workspace directory at ~/.openclaw/workspace — the folder your agent reads from, writes to, and calls home.
4. Connect Telegram
Create a Telegram bot:
- Open Telegram and search for
@BotFather - Send
/newbot - Choose a name and username for your bot
- BotFather will give you an API token — copy it
Add the token to your OpenClaw config:
openclaw config set telegram.botToken YOUR_TOKEN_HERE
Get your Telegram user ID:
- Search for
@userinfoboton Telegram - Send it any message — it replies with your numeric ID
openclaw config set telegram.allowedUsers YOUR_TELEGRAM_ID
5. Connect an AI Model
OpenClaw supports multiple model providers. For a first setup, Anthropic Claude is the most capable and the most consistent.
Get an API key from console.anthropic.com. Add it:
openclaw config set anthropic.apiKey YOUR_KEY_HERE
openclaw config set model anthropic/claude-sonnet-4-6
If you want to run a local model instead (no API costs):
# Install Ollama
brew install ollama
# Pull a model (16GB RAM minimum for 7B models)
ollama pull llama3.2
# Point OpenClaw at it
openclaw config set model ollama/llama3.2
6. First Test
Start the OpenClaw gateway:
openclaw gateway start
Open Telegram, find your bot, and send it a message:
Hello — what can you do?
If it responds, you have a working agent. If it doesn't:
- Check gateway status:
openclaw gateway status - Check logs:
openclaw logs - Verify your bot token is correct in the config
- Confirm you messaged the right bot (search by username)
Once it's responding, test a basic task:
Search the web for the latest news on AI agents and give me a 3-bullet summary.
If that works, your agent has a model, memory, and web access. The core is running.
To have the gateway start automatically when you restart your Mac:
openclaw gateway enable
7. Configure Your Agent's Identity
This is the most important configuration step and the one most people skip. Your agent's identity file is what separates a reliable system from one that drifts.
Open your workspace:
cd ~/.openclaw/workspace
You'll find a SOUL.md file. This is where you define:
- What your agent's name and role is
- What it will never do (hard limits)
- How it communicates
- What it should do proactively vs. only when asked
There's also AGENTS.md (operating rules), MEMORY.md (long-term memory), and a memory/ folder. These files are what the agent reads at the start of every session to understand who it is and what it's working on.
8. What to Do Next
Once you have a working agent, the next questions are:
- What should it do automatically? — Set up your first cron job. Morning briefing or email triage are good starting points.
- How should it remember things? — Configure the memory architecture so context persists across sessions correctly.
- Which tools should it have access to? — Web search, email, calendar, file ops — each needs explicit configuration.
- How do you verify it's working? — Set up a heartbeat check so you know when something fails.
These questions are where the real setup work happens. The installation above gets you a running system. The configuration work is what makes it useful.
The full configuration guide — identity setup, memory architecture, cron automation, Telegram integration, and deployment — is covered step by step in the AI Ops Setup Guide. Everything I actually run, documented from scratch.
Want to see what day-to-day looks like as you build this out? Follow the Daily Log →
Want a guided walkthrough + coaching on implementation?
We'll walk through your setup, your workflows, and get it running the right way.
Book a Call →