What is OpenClaw?
OpenClaw (formerly ClawdBot/Moltbot) is a popular open-source AI agent project that reached over 68,000 GitHub stars in 2026. Unlike a conventional chatbot, it is a personal assistant that can carry out tasks. Local execution- Your data stays on your device; you don’t have to upload it to the cloud.
- You retain control of privacy and data security.
- OpenClaw can operate your computer, not just talk about what to do.
- It can automate email, calendar, and file management tasks.
- Connect more than ten platforms, including WhatsApp, Telegram, Discord, and Slack.
- Manage your communications from one place.
- Keep context and preferences across sessions.
- As the assistant learns your habits, it can handle recurring tasks more efficiently.
- The software is open source. Bring your own model API key.
- You can run it for free and control it yourself.
- You: “Organize the files on my desktop.”
- Assistant: “I suggest creating folders, then sorting the files by type…”
- You: “Organize the files on my desktop.”
- OpenClaw renames, sorts, and moves the files: “Done! I sorted 47 files into five folders by file type.”
Getting started
Step 1: Check the prerequisites
System requirements:- Operating system: macOS, Linux, or Windows with WSL.
- Node.js: v22 or later.
- Model API key: use a key for Claude, GPT, or Gemini, or a key from an aggregator such as GeekAI.
Step 2: Install OpenClaw
On macOS or Linux, install OpenClaw with npm:Step 3: Run the setup wizard
The wizard walks you through these settings:
- Select a provider (Anthropic, OpenAI, or custom). For GeekAI, select the custom provider and enter the GeekAI base URL.
- Enter your API key: paste your GeekAI API key.
- Enter a GeekAI chat model ID, such as
gpt-5.3-codex,claude-sonnet-4-6, orgemini-3.1-pro-preview. Copy the exact ID from the model marketplace. - Select a messaging platform, such as Telegram, Discord, or WhatsApp.
- Configure system permissions. Start in sandbox mode.
Step 4: Start your first conversation
Start OpenClaw:
If chat returns Model context window too small (4096 tokens), edit ~/.openclaw/openclaw.json. Add contextWindow and maxTokens to the model configuration, as in this example:
Step 5: Understand the core concepts
Gateway A gateway connects OpenClaw to the outside world:- Messaging gateways: Telegram, Discord, and WhatsApp.
- API gateway: the HTTP API.
- CLI gateway: command-line interaction.
- Each skill defines a set of tasks.
- Install third-party skills from ClawHub.
- You can also write custom skills.
- Your preferences and habits.
- Context from previous conversations.
- Important information and tasks.
- Sandbox Mode restricts access to the filesystem, network, and shell.
- Full Access Mode grants full permissions. Use it with care.
Practical skills
Step 6: Install and use skills
Browse the ClawHub marketplace, or use these commands:Step 7: Connect Google Workspace
OpenClaw can manage Gmail, Google Calendar, and Google Docs. To configure the integration:- Create a Google Cloud project.
- Visit
console.cloud.google.com. - Create a project.
- Enable the Gmail, Google Calendar, and Google Drive APIs.
- Create a service account.
- Under IAM & Admin → Service Accounts, create a service account.
- Download its JSON key file.
- Configure OpenClaw.
- Authorize access.
Step 8: Schedule tasks with cron
OpenClaw can run tasks automatically on a schedule. For example, ask it to create a daily briefing:Step 9: Configure persistent memory
OpenClaw’s memory system retains your preferences. Teach your assistant about yourself For example, tell OpenClaw:Advanced applications
Step 10: Write a custom skill
Define skills in YAML or Markdown. Basic skill structure Create~/.openclaw/skills/my-first-skill.yaml:
Step 11: Manage multiple agents
Run separate OpenClaw instances with different configurations for different purposes. Create and switch between agents:- Work agent: connect company email and project management tools.
- Personal agent: manage your calendar and household tasks.
- Experimental agent: test new features and skills.
Step 12: Isolate OpenClaw with a Docker sandbox
A Docker sandbox provides the strongest isolation of the options described here. Configure the sandbox:- Filesystem access to specified directories.
- Network access using a configurable allowlist.
- System command execution.
- CPU and memory usage.
