Get your own AI agent with personality, memory, and Telegram access in under 30 minutes
Turn what you learned into a concrete stack decision.
01AI Agent ToolboxBuild autonomous AI agents that can read, write, and actWant the shortlist in your inbox?
Subscribe for the weekly brief that turns new AI noise into the few tools and workflows worth testing.
Curated bundles that help you move from this guide into a working stack.
Guide
Choosing Models for OpenClaw
Which LLM to use as your agent's brain — free options, paid upgrades, and cost-saving tricks
Guide
Your First Win: 5 Projects to Build with AI
Concrete, achievable projects that build confidence — from portfolio site to AI agent
Guide
Claude Cowork + Claude Agents: Your First Setup
How to use Claude as a real AI coworker — not just a chat window — with agents that take action on your behalf
OpenClaw is a local AI agent framework that runs on your machine. Unlike ChatGPT or Claude's web interface where you talk to a generic AI, OpenClaw lets you create an agent with:
Think of it as the difference between renting an apartment (ChatGPT) and owning a house (OpenClaw). You control everything.
Before installing, make sure you have:
node -vInstall OpenClaw globally:
npm install -g openclaw
Verify the installation:
openclaw --version
You should see a version number. If you get "command not found", try closing and reopening your terminal.
Run the setup wizard:
openclaw init
This creates the ~/.openclaw/ directory and walks you through initial configuration:
18789. Press Enter to accept unless you have a conflict.After setup, your directory structure looks like:
~/.openclaw/
├── openclaw.json # Main configuration
├── workspace/ # Your agent's personality files
├── agents/ # Agent configurations
├── identity/ # Device authentication
└── logs/ # Operation logs
Start the OpenClaw gateway:
openclaw gateway
On first boot, OpenClaw reads the BOOTSTRAP.md file in your workspace. This is a first-run conversation that helps you set up your agent's personality:
The agent will write its own IDENTITY.md and SOUL.md based on your answers. After this first conversation, BOOTSTRAP.md is no longer needed.
The fastest way to interact with your agent is via Telegram.
@BotFather/newbotbot, e.g., myai_agent_bot)123456789:ABCdefGHIjklMNOpqrSTUvwxYZopenclaw channels telegram setup
Paste your bot token when prompted. OpenClaw will configure the Telegram channel.
OpenClaw uses an allowlist to control who can talk to your bot:
openclaw channels telegram allow <your-telegram-user-id>
To find your Telegram user ID, search for @userinfobot on Telegram and send /start.
Run a quick health check:
openclaw status
You should see:
Try these interactions with your agent via Telegram:
Another process is using that port. Either:
# Find and kill the process
lsof -i :18789
kill -9 <PID>
# Or change the port in openclaw.json
# Edit gateway.port to a different number (e.g., 18790)
~/.openclaw/agents/main/agent/auth-profiles.jsonopenclaw gateway)~/.openclaw/logs/ for error messagesopenclaw gateway (stop and start again)# Reinstall OpenClaw
npm install -g openclaw
# Or if using bun
bun install -g openclaw
After setup, your ~/.openclaw/workspace/ directory contains the files that define your agent. These are all editable markdown files:
| File | Purpose |
|------|---------|
| IDENTITY.md | Agent's name, personality, emoji |
| SOUL.md | Core philosophy and behavior rules |
| USER.md | Information about you (auto-updated) |
| AGENTS.md | Workspace-level instructions |
| MEMORY.md | Curated long-term memory |
| TOOLS.md | Local environment notes |
| HEARTBEAT.md | Periodic check-in configuration |
Learn more about each file in our .md Files Explained guide.
Now that your agent is running:
IDENTITY.md and SOUL.mdYour agent is alive. Now make it yours.