All you need to know about π¦ OpenClaw --- The Complete Guide to Your Personal AI Agent
Everything you need to know about the open-source AI agent that went from zero to 140K GitHub stars in under three months.
π Table of Contents
- Introduction & Context
- Architecture & High-Level Design
- Getting Started (Step-by-Step Guide)
- Practical Applications & Productivity
- Optimization, Security & Challenges
1. Introduction
What is OpenClaw, Really?
Imagine having an assistant that can actually do things β not just answer questions or generate text, but execute tasks, manage your schedule, write code, control your smart home, and respond on your behalf β all running privately on your own hardware, with zero data leaving your machine.
That's OpenClaw. Formerly known as Clawdbot and then Moltbot, it's one of the fastest-growing open-source projects of early 2026.
What It Looks Like Day-to-Day
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β THE OPENCLAW UNIVERSE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β π¬ CHANNELS π§ AI CORE π οΈ TOOLS π± DEVICES β
β βββββββββββ ββββββββ βββββββ βββββββββ β
β β
β β’ WhatsApp β’ LLM Routing β’ Browser β’ macOS β
β β’ Telegram β’ Memory System β’ Code Exec β’ iOS β
β β’ Slack β’ Skills/Plugins β’ File System β’ Android β
β β’ Discord β’ Multi-Agent β’ Cron Jobs β’ Linux β
β β’ Signal β’ Canvas UI β’ Windows β
β β’ iMessage β
β β’ Google Chat β
β β’ Microsoft Teams β
β β’ Matrix β
β β’ Zalo β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The "Aha!" Moment
Here's what makes OpenClaw special in one sentence:
OpenClaw transforms any messaging app into a command center for AI-powered automation, while keeping everything local and under your control.
You send a message to your assistant on WhatsApp: "Summarize my unread emails and schedule a meeting with Sarah for Thursday afternoon."
OpenClaw:
- Understands your intent (natural language processing)
- Accesses your Gmail (via secure API)
- Reads your calendar (checking availability)
- Generates a summary (using an LLM)
- Creates a calendar event (via Google Calendar API)
- Replies back to you on WhatsApp with confirmation
All of this happens on your machine, with your API keys, following your rules.
Why Did OpenClaw Take Off?
OpenClaw's timing was perfect β it hit the intersection of a few trends that had been building for years:
π 1. The Local-First Movement
People are waking up to the privacy implications of cloud-only AI. When you use ChatGPT, Claude, or Gemini, your conversations are processed on someone else's servers. With OpenClaw:
- Your data stays YOUR data π‘οΈ
- No vendor lock-in
- No training on your private information
- No internet required for local operations
π 2. Open Source = Trust + Innovation
OpenClaw is fully open source (MIT License). This means:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OPEN SOURCE ADVANTAGES β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β β
You can audit the code yourself β
β β
Security researchers can find and fix bugs β
β β
Community contributes features and skills β
β β
No hidden tracking or data collection β
β β
You can fork and customize for your needs β
β β
Transparent development process β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π 3. The "Chat-First" Interface Revolution
We're witnessing the death of traditional app interfaces. Instead of opening 10 different apps:
- π§ Email client
- π Calendar app
- π Browser
- π Notes app
- π Shopping apps
- π΅ Music apps
You just send a message. One interface to rule them all.
π§© 4. The Plugin/Skill Architecture
OpenClaw's "Skills" system allows anyone to extend its capabilities:
- Want it to control your Philips Hue lights? There's a skill for that.
- Want it to query your company's internal database? Build a skill.
- Want it to generate images with Stable Diffusion? Install the skill.
This extensibility creates a flywheel effect: more users β more skills β more value β more users.
From Personal Project to AI Foundation
OpenClaw's evolution tells a fascinating story:
| Date | Milestone |
|---|---|
| Nov 2025 | Peter Steinberger publishes Clawdbot β derived from Clawd (now Molty), named after Anthropic's Claude |
| Jan 27, 2026 | Renamed Moltbot after Anthropic trademark complaints; Matt Schlicht launches Moltbook β a social network for AI agents |
| Jan 30, 2026 | Renamed OpenClaw β "Moltbot never quite rolled off the tongue"; 140,000 GitHub stars & 20,000 forks by Feb 2 |
| Feb 4, 2026 | ClawCon in San Francisco; adopted by Silicon Valley & China companies; DeepSeek integration |
| Feb 14, 2026 | Steinberger announces joining OpenAI; project moves to open-source foundation |
How It All Works: The Core Concepts
Before jumping into installation, it's worth spending five minutes understanding why OpenClaw works the way it does. This will save you a lot of confusion later.
π― Concept 1: Autonomous Agents
Traditional software is reactive: it waits for user input, processes it, and returns a result.
AI agents are proactive: they can:
- Take initiative based on schedules (
cronjobs) - Make decisions using reasoning
- Execute multi-step plans
- Handle errors and retry
- Learn from interactions
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β REACTIVE VS AUTONOMOUS SOFTWARE β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β REACTIVE (Traditional) AUTONOMOUS (Agentic) β
β βββββββββββββββββββββ βββββββββββββββββββ β
β β
β User: "What's on my calendar?" User: "Plan my week" β
β β β β
β App: Shows calendar Agent: β
β β 1. Reads calendar β
β [END] 2. Checks email for updates β
β 3. Looks at todo list β
β 4. Prioritizes based on β
β deadlines β
β 5. Suggests schedule blocks β
β 6. Asks for approval β
β 7. Creates calendar events β
β β β
β [PROACTIVE FOLLOW-UP] β
β "You have a conflict on β
β Tuesday, shall I move it?" β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Concept 2: LLM Routing
OpenClaw doesn't just use one AI model β it routes tasks to the best model for the job.
Here's the magic:
| Task Type | Routed To | Reason |
|---|---|---|
| Coding | Claude Opus 4.6 | Best code quality |
| Quick questions | Gemini Flash | Speed & low cost |
| Creative writing | GPT-5.2 | Creativity |
| Image analysis | Claude 3.5 Sonnet | Visual strength |
| Local/Sensitive | Local Llama | Privacy |
Why this matters:
- Cost optimization: Don't use expensive models for simple tasks
- Quality optimization: Use the best model for each specific task
- Latency optimization: Use fast models when speed matters
- Privacy optimization: Use local models for sensitive data
π§ Concept 3: The ReAct Pattern
OpenClaw uses an industry-standard AI architecture called ReAct (Reasoning + Acting):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β THE ReAct LOOP β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β ββββββββββββββββ β
β β OBSERVE β ββββ Perceive current state β
β ββββββββ¬ββββββββ (messages, files, sensor data) β
β β β
β βΌ β
β ββββββββββββββββ β
β β THINK β ββββ Reason about what to do β
β ββββββββ¬ββββββββ (planning, decision-making) β
β β β
β βΌ β
β ββββββββββββββββ β
β β ACT β ββββ Execute action β
β ββββββββ¬ββββββββ (use tools, send messages) β
β β β
β ββββββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββ β
β β ACTION RESULTS FEED BACK β β
β β INTO OBSERVE β β
β βββββββββββββββββββββββββββββββββββ β
β β
β This loop continues until the task is complete! β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
πΎ Concept 4: Persistent Memory
Unlike stateless chatbots that forget everything when you close the tab, OpenClaw has memory:
| Memory Type | Description | Example |
|---|---|---|
| Short-term | Current conversation context | "What was I asking about again?" |
| Long-term | Curated knowledge (MEMORY.md) | "User prefers dark mode" |
| Session History | Past conversations | "Yesterday we discussed Python" |
| External | Files, databases, APIs | Calendar events, emails, documents |
Working Memory (current session)
β [Summarize & Store] β Daily Notes (auto-captured)
β [Review & Distill] β Long-term Memory (MEMORY.md)
β [Enrich Context] β©
External Sources (files/APIs/DB) β [Query & Read] β Working Memory
Why Local-First Architecture Wins
Let's compare OpenClaw's approach to cloud-based alternatives:
| Aspect | Cloud AI Assistants | OpenClaw (Local-First) |
|---|---|---|
| Privacy | Data on vendor servers | Data stays on your devices |
| Customization | Limited to vendor features | Fully customizable |
| Cost | Subscription fees | Pay only for API usage (optional) |
| Offline Use | β Requires internet | β Many features work offline |
| Integrations | Vendor-approved only | Any integration you can code |
| Model Choice | Vendor's choice | Any model (local or API) |
| Speed | Network latency | Local = instant |
| Control | Terms of service restrictions | You make the rules |
2. How the Architecture Works
Now that you understand why OpenClaw exists, here's how it's built under the hood.
2.1 System Architecture Overview
System Architecture Overview:
| Layer | Components |
|---|---|
| Input | WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Google Chat, WebChat |
| Gateway Core | OpenClaw Gateway, Request Router, Session Manager, Auth & Security |
| AI Layer | Pi Agent Runtime, LLM Router, Memory System, Skill Manager |
| Tool Layer | Browser Control, Code Execution, File System, Cron Jobs, Node Connector, Canvas UI |
| Model Providers | OpenAI, Anthropic, Google Gemini, Local Models (Ollama/lmstudio) |
Data flow: Channels β Gateway β Pi Agent β LLM Router β Tools β Response back to Channel
2.2 Core Components Deep Dive
ποΈ Component 1: The Gateway
The Gateway is the heart of OpenClaw. Think of it as an air traffic control tower.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β THE GATEWAY β
β (WebSocket Control Plane) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Responsibilities: β
β βββββββββββββββββ β
β β
β 1οΈβ£ CONNECTION HUB β
β β’ Maintains WebSocket connections to all channels β
β β’ Handles authentication for each incoming message β
β β’ Routes messages to appropriate agents/sessions β
β β
β 2οΈβ£ SESSION MANAGEMENT β
β β’ Creates isolated sessions per conversation β
β β’ Maintains conversation history β
β β’ Handles session state (active, paused, completed) β
β β
β 3οΈβ£ CONFIGURATION & STATE β
β β’ Reads ~/.openclaw/openclaw.json β
β β’ Hot-reloads configuration changes β
β β’ Manages secrets and API keys β
β β
β 4οΈβ£ WEB INTERFACE β
β β’ Serves Control UI at /__openclaw__/ β
β β’ Provides HTTP API endpoints β
β β’ Hosts the Canvas for visual output β
β β
β Default Port: 18789 β
β Protocol: WebSocket + HTTP β
β Bind Mode: loopback (127.0.0.1) by default for security β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Key Gateway Commands:
# Start the Gateway
openclaw gateway --port 18789
# Check status
openclaw gateway status
# View logs
openclaw logs --follow
# Hot-reload config
openclaw config apply
π§ Component 2: The Pi Agent Runtime
Pi is OpenClaw's embedded agent runtime (RPC mode). This is where the "intelligence" lives.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PI AGENT RUNTIME β
β (AI Processing Engine) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Input: Tool Stream ββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β
β β Pi Runtime β β β
β β β β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββββββ β β β
β β β Prompt ββββββ LLM ββββββ Response β β β β
β β β Builder β β Invocation β β Parser β β β β
β β βββββββββββββββ βββββββββββββββ βββββββββββββββββββ β β β
β β β β β β β β
β β β β β β β β
β β βΌ β βΌ β β β
β β βββββββββββββββ ββββββββββββ βββββββββββββββ β β β
β β β Context β β Tool β β Tool β β β β
β β β Assembler β β Results β β Dispatcher β β β β
β β β β β (feedbackβ β β β β β
β β βββββββββββββββ ββββββββββββ βββββββββββββββ β β β
β β β β β β β β
β βββββββββββΌβββββββββββββββββββΌβββββββββββββββββββββΌββββββββββββ β β
β β β β β β
β Output: βββ΄βββββββββββββββββββ΄βββββββββββββββββββββ΄ββββββββββββββββ β
β β
β Features: β
β β’ Streaming responses (real-time output) β
β β’ Block streaming (structured content like code, tables) β
β β’ Tool orchestration (chain multiple tools together) β
β β’ Multi-turn reasoning (complex problem solving) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
πΎ Component 3: Persistent Memory System
OpenClaw's memory system is one of its most sophisticated features. Let's break it down:
Memory flow:
Session (runtime)
β write daily summary
Daily Journal (memory/YYYY-MM-DD.md)
β review & distill
Curated Memory (MEMORY.md, SOUL.md, USER.md, AGENTS.md, TOOLS.md)
β load on startup
Session (runtime) β Workspace files (code, docs, configs)
The Memory Files Explained:
| File | Purpose | When It Loads |
|---|---|---|
SOUL.md |
Agent's personality, voice, mannerisms | Every session (defines "who you are") |
USER.md |
User preferences, pronouns, context | Main sessions only (not group chats) |
MEMORY.md |
Technical notes, lessons learned, todos | Main sessions only (curated knowledge) |
AGENTS.md |
Multi-agent rules, skill notes | All sessions |
TOOLS.md |
Environment-specific tool configs | All sessions |
memory/*.md |
Daily raw logs | Review only |
Example SOUL.md:
# SOUL.md - Who You Are
You are OpenClaw, a helpful AI assistant. Your traits:
- Professional yet approachable
- Security-conscious and careful
- Independent but collaborative
- Always verify before destructive actions
- Prefer writing tools over deleting
Example MEMORY.md:
# MEMORY.md - Long-Term Technical Notes
## Git/GitHub
### Git Push Hanging (HTTPS Auth Issue)
**Pattern:** `git push` hangs indefinitely
**Fix:** Switch to SSH: `git remote set-url origin git@github.com:...`
## Preferences
- Preferred code editor: VS Code
- Shell: zsh
- Git workflow: rebase preferred
π§ Component 4: Tool/Skill Execution Layer
This is how OpenClaw "does things" in the real world.
| Category | Tools |
|---|---|
| Core | Shell execution, file read/write/edit, browser control, Canvas UI |
| Platform | iOS/Android camera, screen record, GPS location, push notifications |
| Automation | Cron jobs, webhooks, sub-agent spawn, message send |
| Channel | Discord reactions/roles, Slack threads/reactions |
The Skill System:
Skills are AgentSkills-compatible folders that teach OpenClaw how to use tools:
skills/
βββ weather/ # Bundled skill
β βββ SKILL.md # Instructions + metadata
βββ github/ # Community skill
β βββ SKILL.md
βββ my-custom-skill/ # Your custom skill
βββ SKILL.md
βββ helpers.js # Optional code
Example SKILL.md structure:
---
name: weather
description: Get current weather and forecasts
---
# Weather Skill
Use this skill to fetch weather information.
## Available Tools
- `weather_current(location)` - Get current conditions
- `weather_forecast(location, days)` - Get multi-day forecast
## Example Usage
User: "What's the weather in San Francisco?"
Action: Call `weather_current("San Francisco")`
2.3 Data Flow: From Message to Action
Let's trace what happens when you send a message to OpenClaw:
Step-by-step message flow (example: "Schedule meeting with Sarah tomorrow 2pm"):
- User β Channel (Telegram): Sends the message
- Channel β Gateway: WebSocket delivery
- Gateway: Verifies sender, checks allowlist, routes to session
- Gateway β Pi Agent: Forwards message + context
- Pi Agent: Loads SOUL.md, USER.md, MEMORY.md, session history, relevant skills
- Pi Agent β LLM: Sends full prompt with context
- LLM β Pi Agent: "I need to: 1) check calendar, 2) find Sarah's contact, 3) create event"
- Pi Agent β Tools: Calls calendar API β gets free/busy slots
- Pi Agent β Tools: Calls contacts API β gets Sarah's email
- Pi Agent β LLM: Sends tool results
- LLM β Pi Agent: Generates calendar event details
- Pi Agent β Tools: Creates the calendar event (POST /calendar/events)
- Pi Agent β Gateway β Channel β User: "β Created: Meeting with Sarah, Tomorrow 2:00β3:00 PM"
3. Getting Started
Enough background β let's get it running. This section walks you through installation to your first working command.
3.1 Installation
Prerequisites
Before we start, ensure you have:
| Requirement | Version | Purpose |
|---|---|---|
| Node.js | β₯22.12.0 | Runtime environment |
| npm/pnpm | Latest | Package manager |
| Git | Any | For skills/plugins |
| Terminal | Bash/Zsh/PowerShell | CLI interaction |
Step 1: Install Node.js
macOS/Linux:
# Using Homebrew (recommended on macOS)
brew install node
# Or download from https://nodejs.org/
Windows:
# Download installer from nodejs.org
# Or use winget
winget install OpenJS.NodeJS
Verify installation:
node --version # Should show v22.x.x or higher
npm --version # Should show 10.x.x or higher
Step 2: Install OpenClaw
Recommended method (global install):
# Using npm
npm install -g openclaw@latest
# Or using pnpm (faster)
pnpm add -g openclaw@latest
# Or using bun
bun add -g openclaw@latest
From source (for development):
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
# Run via pnpm
pnpm openclaw --version
Step 3: Run the Onboarding Wizard
The wizard will guide you through initial setup:
# Interactive setup
openclaw onboard
# With daemon installation (recommended for always-on)
openclaw onboard --install-daemon
The wizard will:
- β Verify prerequisites
- β
Create workspace directory (
~/.openclaw/) - β Set up initial configuration
- β Install system service (optional)
- β Generate security tokens
Step 4: Verify Installation
# Check version
openclaw --version
# Check system health
openclaw doctor
# Expected output:
# β
Node.js version: v22.x.x
# β
Gateway binary: found
# β
Workspace: /Users/you/.openclaw
# β
Config file: ~/.openclaw/openclaw.json
3.2 Configuration
Understanding the Config File
OpenClaw's configuration lives at ~/.openclaw/openclaw.json:
{
"gateway": {
"port": 18789,
"bind": "loopback",
"auth": {
"token": "your-secure-token-here"
},
"reload": {
"mode": "hybrid"
}
},
"models": {
"default": "anthropic/claude-4-opus",
"thinking": "medium"
},
"channels": {
"telegram": {
"enabled": true,
"botToken": "${TELEGRAM_BOT_TOKEN}",
"dmPolicy": "pairing"
}
},
"skills": {
"load": {
"bundled": true,
"workspace": true
}
}
}
Setting Up Your First Channel
Let's connect Telegram as an example:
Step 1: Create a Telegram Bot
- Message @BotFather on Telegram
- Send
/newbot - Follow prompts to name your bot
-
Copy the bot token (looks like:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
Step 2: Configure OpenClaw
# Set the bot token securely
openclaw config set channels.telegram.botToken "123456789:YOUR_TOKEN_HERE"
# Or use environment variable
echo "export TELEGRAM_BOT_TOKEN=123456789:YOUR_TOKEN_HERE" >> ~/.zshrc
Step 3: Edit config manually
openclaw config edit
Add:
{
"channels": {
"telegram": {
"enabled": true,
"botToken": "${TELEGRAM_BOT_TOKEN}",
"dmPolicy": "pairing",
"allowFrom": []
}
}
}
Step 4: Start the Gateway
openclaw gateway --port 18789 --verbose
You should see logs showing the Telegram channel connecting.
Security Pairing (Important!)
OpenClaw uses pairing by default for security. Unknown users receive a pairing code instead of responses.
To approve a contact:
- They message your bot, receive a pairing code
- You run:
openclaw pairing approve telegram <code>
To set open mode (less secure, only for trusted environments):
{
"channels": {
"telegram": {
"dmPolicy": "open",
"allowFrom": ["*"]
}
}
}
3.3 Setting Up Model Providers
OpenClaw supports multiple LLM providers. Let's set up the most popular ones:
Option 1: Anthropic (Claude) - Recommended
# Get API key from https://console.anthropic.com/
export ANTHROPIC_API_KEY="sk-ant-api03-..."
# Add to OpenClaw
openclaw config set models.providers.anthropic.apiKey "${ANTHROPIC_API_KEY}"
openclaw config set models.default "anthropic/claude-4-opus"
Option 2: OpenAI (GPT-4, GPT-5)
# Get API key from https://platform.openai.com/
export OPENAI_API_KEY="sk-..."
openclaw config set models.providers.openai.apiKey "${OPENAI_API_KEY}"
Option
Option 3: Google Gemini
# Get API key from https://aistudio.google.com/
export GEMINI_API_KEY="..."
openclaw config set models.providers.google.apiKey "${GEMINI_API_KEY}"
openclaw config set models.default "google/gemini-3-pro-preview"
Option 4: Local Models (Ollama)
For privacy-conscious or offline use:
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
# Pull a model
ollama pull llama3.3
ollama pull qwen2.5
# Configure OpenClaw
openclaw config set models.providers.ollama.baseUrl "http://localhost:11434"
openclaw config set models.default "ollama/llama3.3"
Model Failover Configuration
Set up automatic fallback if a provider fails:
{
"models": {
"default": "anthropic/claude-4-opus",
"fallbacks": [
"openai/gpt-5",
"google/gemini-3-pro-preview",
"ollama/llama3.3"
],
"thinking": "medium"
}
}
Using OAuth (Anthropic Pro/Max)
For the best experience with Claude:
# Login via browser (OAuth)
openclaw login anthropic
# This stores credentials securely
# No API key needed!
3.4 Finding, Installing, and Configuring Skills
What Are Skills?
Skills are teaching documents that tell OpenClaw how to use tools. They're stored as Markdown files with YAML frontmatter.
Bundled Skills (Come Pre-installed)
OpenClaw ships with several built-in skills:
| Skill | Description |
|---|---|
weather |
Get weather forecasts |
github |
Interact with GitHub repos |
browser |
Control web browser |
canvas |
Render visual UIs |
cron |
Schedule recurring tasks |
Discovering Skills on ClawHub
ClawHub is the public skills registry:
# Open ClawHub in browser
openclaw hub
# Or visit https://clawhub.com
Installing a Skill
Method 1: Using ClawHub CLI
# Install a skill (e.g., todoist for task management)
clawhub install todoist
# Update all skills
clawhub update --all
# Sync workspace with ClawHub
clawhub sync --all
Method 2: Manual Installation
# Navigate to your workspace skills folder
cd ~/.openclaw/workspace/skills
# Clone a skill repo
git clone https://github.com/example/openclaw-todoist.git ./todoist
# Or create manually
mkdir my-skill
cat > my-skill/SKILL.md << 'EOF'
---
name: my-skill
description: My custom OpenClaw skill
---
# My Custom Skill
This skill does amazing things!
## Usage
Example: "Use my-skill to process data"
EOF
Creating Your First Skill
Let's create a simple "greeting" skill:
# Create skill directory
mkdir -p ~/.openclaw/workspace/skills/greeting
# Create SKILL.md
cat > ~/.openclaw/workspace/skills/greeting/SKILL.md << 'EOF'
---
name: greeting
description: Generate personalized greetings
---
# Greeting Skill
Generate warm, personalized greetings for users.
## Guidelines
- Use the user's preferred name from USER.md
- Match the time of day (morning/afternoon/evening)
- Keep it friendly but professional
- Include relevant emojis
## Example Output
"Good morning, Alex! βοΈ Ready to tackle the day?"
"Good evening, Sam! π Hope you had a productive day!"
EOF
Now OpenClaw will automatically know about your skill on the next session!
Skill Gating (Advanced)
You can make skills conditional based on:
---
name: my-skill
description: Requires specific setup
metadata:
{
"openclaw":
{
"requires": {
"bins": ["docker", "node"],
"env": ["MY_API_KEY"],
"config": ["features.advanced"]
},
"os": ["darwin", "linux"]
}
}
---
This skill will only load if:
- Docker and Node are installed
-
MY_API_KEYenvironment variable is set -
features.advancedis true in config - Running on macOS or Linux
4. Practical Applications & Productivity
Now that you have OpenClaw set up, let's explore the best use cases and how to maximize your daily productivity.
4.1 What Are the Best Use Cases Right Now?
π Tier 1: Absolute Game-Changers
| Use Case | Why It Works | Example Command |
|---|---|---|
| Daily Standups | Auto-generate from calendar + commits | "Generate my standup for today" |
| Email Triage | Summarize, prioritize, draft responses | "Summarize unread emails, flag urgent" |
| Research | Web search + synthesis | "Research React 19 features and summarize" |
| Code Review | Explain PRs, suggest improvements | "Review this PR: github.com/user/repo/pull/123" |
| Documentation | Generate docs from code | "Document the functions in this file" |
π₯ Tier 2: Excellent Productivity Boosts
| Use Case | Why It Works | Example Command |
|---|---|---|
| Meeting Prep | Context from emails + calendar | "Prep me for my 2pm meeting with Sarah" |
| Travel Planning | Multi-source research | "Plan a 3-day trip to Tokyo" |
| Content Creation | Drafts, outlines, editing | "Write a blog outline about AI agents" |
| Learning | Explain complex topics | "Explain quantum computing like I'm 5" |
| Bug Analysis | Parse logs, suggest fixes | "This error keeps happening, analyze the logs" |
π₯ Tier 3: Nice Quality-of-Life Improvements
| Use Case | Why It Works | Example Command |
|---|---|---|
| Quick Calculations | No calculator needed | "Calculate compound interest on $10k at 7%" |
| Unit Conversions | Instant conversions | "Convert 50 miles to kilometers" |
| Time Zone Math | Across zones | "What time is it in Tokyo when it's 9am here?" |
| Definitions | Quick lookups | "What's the difference between TCP and UDP?" |
4.2 Daily Productivity Workflows
Workflow 1: Morning Routine
You: "Good morning!"
OpenClaw:
β Weather: 72Β°F sunny
β Calendar: 3 meetings today (10am, 2pm, 4pm)
β Emails: 12 new, 2 flagged as urgent
β Reminder: Submit expense report by EOD
You: "Block 2 hours for deep work between meetings"
OpenClaw: Created: Focus Time, 12:00-2:00 PM
You: "Summarize those urgent emails and draft responses"
OpenClaw: [Short summaries with reply drafts attached]
Workflow 2: Research & Analysis
Use the browser tool for deep research:
You: "Research the latest developments in LLM efficiency.
Find 3 papers from 2025, summarize their approaches."
OpenClaw:
1. Opens browser
2. Searches "LLM efficiency 2025 research papers"
3. Navigates to arXiv, finds relevant papers
4. Reads abstracts and key sections
5. Synthesizes findings
β Response: [Detailed comparison with links]
4.3 Building Your Personal Assistant
Step 1: Define Your Assistant's Personality
Edit ~/.openclaw/workspace/SOUL.md:
# SOUL.md - Who You Are
You are my personal productivity assistant.
## Communication Style
- Concise but warm
- Use bullet points for clarity
- Lead with key information
## Proactive Behaviors
- Remind me of deadlines 24h in advance
- Suggest calendar optimizations weekly
- Flag potential meeting conflicts
Step 2: Capture Your Preferences
Edit ~/.openclaw/workspace/USER.md:
# USER.md - About Your Human
- **Name:** Alex
- **Timezone:** America/Los_Angeles
- **Occupation:** Software Engineer
## Preferences
- Prefer 25min or 50min meeting slots
- Buffer 5min between meetings
- No meetings before 9:30am
Step 3: Add Your Work Context
Edit ~/.openclaw/workspace/MEMORY.md:
# MEMORY.md - Long-Term Notes
## Current Projects
- Project Alpha: Due March 15
- Q1 Planning: Roadmap presentation
## Key Contacts
- Sarah (PM): sarah@company.com
- David (Tech Lead): david@company.com
## Technical Context
- Stack: TypeScript, React, Node.js
- GitHub: github.com/mycompany
4.4 Automation Patterns
Pattern 1: Cron Jobs (Scheduled Tasks)
# Daily news briefing at 8am
openclaw cron add --name "morning-briefing" \
--schedule "0 8 * * *" \
--message "Generate morning briefing with weather and calendar"
# Weekly review every Friday 4pm
openclaw cron add --name "weekly-review" \
--schedule "0 16 * * 5" \
--message "Weekly review: What did we accomplish?"
5. Optimization, Security & Challenges
5.1 Improving Performance and Reliability
Performance Optimization Strategies
1. Model Selection Strategy
| Task Type | Recommended Model | Why |
|---|---|---|
| Quick questions | gemini-flash, gpt-4o-mini | Fast, cheap |
| Complex reasoning | claude-4-opus, gpt-5 | Deep thinking |
| Code generation | claude-4-opus, gpt-5 | Best code |
| Image analysis | claude-3.5-sonnet, gpt-5 | Visual strong |
| Sensitive data | local llama3, qwen2.5 | Privacy |
2. Session Pruning (Memory Management)
{
"session": {
"prune": {
"enabled": true,
"maxMessages": 100,
"strategy": "summarize"
}
}
}
Reliability Best Practices
# Health monitoring
openclaw doctor --watch
# Backup configuration
tar czf ~/backups/openclaw-$(date +%Y%m%d).tar.gz ~/.openclaw/
# Recovery procedures
openclaw gateway stop && openclaw gateway start --force
5.2 Security Risks and Mitigations
The Threat Model
| Risk | Severity | Mitigation |
|---|---|---|
| Prompt Injection | π΄ Critical | Use resistant models (Claude), scan patterns |
| Malicious Skills | π΄ Critical | Review code, use allowlists |
| Dangerous Tools | π΄ Critical | BlockList, require confirmation |
| Untrusted DMs | π΄ Critical | Always use dmPolicy: "pairing"
|
| Gateway Exposure | π΄ Critical | Bind to loopback, never 0.0.0.0
|
Critical Security Settings
{
"channels": {
"telegram": {
"dmPolicy": "pairing",
"allowFrom": []
}
},
"tools": {
"exec": {
"blockList": ["rm -rf", "sudo", "dd"],
"requireConfirmation": true
}
},
"gateway": {
"bind": "loopback"
}
}
The Security Checklist
# Run security audit
openclaw security audit --deep
# Check for misconfigurations
openclaw doctor
# Verify DM policies
openclaw config get channels.*.dmPolicy
5.3 Remaining Challenges
| Challenge | Current Mitigation |
|---|---|
| Hallucination | Tool verification, confidence scoring |
| Context Limits | Session pruning, RAG |
| Cost Management | Model routing, usage tracking |
| Reliability | Retry policies, fallbacks |
π Conclusion: Your Journey with Agentic AI
Congratulations! You have completed this comprehensive guide to OpenClaw.
Key Takeaways
β
OpenClaw is a local-first, open-source AI assistant that runs on your devices
β
Architecture: Gateway β Pi Runtime β Tools β Skills
β
Memory matters: SOUL.md, USER.md, MEMORY.md
β
Skills extend capabilities: ClawHub marketplace
β
Security is paramount: Pairing mode, tool restrictions, loopback binding
Your Next Steps
- Install OpenClaw
- Configure ONE channel (Telegram recommended)
- Set up personality files
- Try basic commands
- Install 2-3 skills from ClawHub
- Build ONE automation
- Join the community: https://discord.gg/clawd
Resources
| Resource | URL |
|---|---|
| Documentation | https://docs.openclaw.ai |
| GitHub | https://github.com/openclaw/openclaw |
| Discord | https://discord.gg/clawd |
| ClawHub | https://clawhub.com |
"The best way to predict the future is to build it."
Now go build something amazing with OpenClaw! π
End of Tutorial | Last Updated: 2026
Top comments (0)