The Complete Newbie Guide β Everything you need to go from zero to running your own AI agent infrastructure
OpenClaw is a self-hosted AI agent framework that runs on your machine. Unlike cloud-based AI services, you own your data, your models, and your agent's behavior. Think of it as having a personal AI assistant living on your computerβnot rented from a corporation.
# Install OpenClaw globally
npm install -g openclaw
# Verify installation
openclaw --version
# Check status
openclaw status
# Create your agent workspace
mkdir -p ~/.openclaw/workspace
cd ~/.openclaw/workspace
# The agent reads these files on startup:
# - SOUL.md β Why you exist
# - IDENTITY.md β How you behave
# - USER.md β Who you're helping
# - MEMORY.md β Long-term memory (private)
# Start the gateway (runs as daemon)
openclaw gateway start
# Check if it's running
openclaw gateway status
# View logs
openclaw logs
BOT_TOKEN@YourAgentBot)# Configure OpenClaw
openclaw config.telegram.token set "YOUR_BOT_TOKEN"
openclaw config.telegram.enabled set true
# Restart gateway
openclaw gateway restart
# Start chatting with your bot!
| Type | Purpose | When to Use |
|---|---|---|
| Main | Direct chat with you | Real-time conversations, quick tasks |
| Sub-agent | Isolated task execution | Long-running jobs, parallel work |
| ACP | Code-focused tasks | Software development, coding |
MEMORY.md β Curated long-term memory (only load in private/direct chats)
memory/YYYY-MM-DD.md β Daily logs (create these automatically)
AGENTS.md β Your operating rules
TOOLS.md β Your tool configurations
Built-in capabilities:
Modular packages from clawhub.com:
Scheduled tasks for morning briefs, monitoring, backups, market checks:
# Example: Daily at 9 AM
openclaw cron add --name "morning-brief" \
--schedule "0 9 * * *" \
--task "Generate morning summary"
# βββ SESSIONS βββ
openclaw sessions list # See active sessions
openclaw sessions history <key> # View session chat history
openclaw sessions send <key> "msg" # Send message to session
# βββ SUB-AGENTS βββ
openclaw subagents list # List running sub-agents
openclaw subagents kill <id> # Terminate a sub-agent
# βββ CRON βββ
openclaw cron list # View scheduled jobs
openclaw cron add <json> # Add new job
openclaw cron remove <id> # Delete job
openclaw cron run <id> # Trigger job now
# βββ SKILLS βββ
openclaw skills list # See installed skills
openclaw skills search <query> # Find on clawhub
openclaw skills install <name> # Install a skill
openclaw skills update <name> # Update to latest
# βββ GATEWAY βββ
openclaw gateway status # Check if running
openclaw gateway restart # Restart with new config
openclaw gateway stop # Stop daemon
# βββ CONFIG βββ
openclaw config get <path> # Get config value
openclaw config set <path> <value> # Set config value
openclaw config.schema.lookup <path> # See valid options
# Search for skills
openclaw skills search weather
# Install one
openclaw skills install weather
# Read the skill documentation
cat ~/.openclaw/skills/weather/SKILL.md
Skills live in ~/.openclaw/skills/<skill-name>/:
my-skill/
βββ SKILL.md # Documentation + usage
βββ config.json # Default config
βββ scripts/ # Executable scripts
βββ my-script.py
trash not rm for deletionsvenice-router --budget-statusDaily 7 AM message with weather, calendar, and priorities
weather summarize 0 7 * * *Watch repos for new issues/PRs and notify
github */30 * * * *Spawn sub-agent to research topic, summarize, report back
web_search summarize On-demandMarket analysis, price alerts, playbook generation
Custom scripts */6 * * * *| Mistake | Why It Hurts | Solution |
|---|---|---|
| Running everything in main session | Blocks you, no parallelism | Use sessions_spawn for long tasks |
| No memory files | Agent forgets everything | Create daily files, update MEMORY.md |
| Exposing secrets in skills | Security risk | Use env vars, keep configs separate |
| Ignoring skill docs | Misuse, errors | Always read SKILL.md first |
| Too many cron jobs | Credit burn, noise | Batch tasks, use heartbeats instead |
| Wrong model for job | Waste money | Match model tier to task complexity |
Complete this before "going live":
npm install -g openclaw)openclaw gateway start)