> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw

### 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.

**Taking action**

* OpenClaw can operate your computer, not just talk about what to do.
* It can automate email, calendar, and file management tasks.

**Cross-platform messaging**

* Connect more than ten platforms, including WhatsApp, Telegram, Discord, and Slack.
* Manage your communications from one place.

**Persistent memory**

* Keep context and preferences across sessions.
* As the assistant learns your habits, it can handle recurring tasks more efficiently.

**Free and open source**

* The software is open source. Bring your own model API key.
* You can run it for free and control it yourself.

**OpenClaw versus a conventional AI assistant**

A conventional assistant such as ChatGPT:

* You: “Organize the files on my desktop.”
* Assistant: “I suggest creating folders, then sorting the files by type…”

OpenClaw:

* 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.”

This illustrates the difference between a chatbot that suggests steps and an agent that performs them.

### 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.

Check your environment:

```bash theme={null}
# Check the Node.js version.
node --version

# If your version is older than v22, upgrade it (Debian/Ubuntu example).
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
```

#### Step 2: Install OpenClaw

On macOS or Linux, install OpenClaw with npm:

```bash theme={null}
# Install OpenClaw globally.
npm install -g openclaw

# Verify the installation.
openclaw --version
```

### Step 3: Run the setup wizard

```bash theme={null}
# Start the setup wizard.
openclaw onboard
```

![OpenClaw setup wizard](https://static.geekai.co/storage/2026/02/28/image-20260228220400205.png)

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](https://geekai.co/user/api_keys).
* Enter a GeekAI chat model ID, such as `gpt-5.3-codex`, `claude-sonnet-4-6`, or `gemini-3.1-pro-preview`. Copy the exact ID from the [model marketplace](https://geekai.co/models).
* Select a messaging platform, such as Telegram, Discord, or WhatsApp.
* Configure system permissions. Start in sandbox mode.

![Configure a custom provider in OpenClaw](https://static.geekai.co/storage/2026/02/28/image-20260228220747794.png)
![Set the provider base URL and API key](https://static.geekai.co/storage/2026/02/28/image-20260228220851531.png)

#### Step 4: Start your first conversation

Start OpenClaw:

```bash theme={null}
# Start OpenClaw.
openclaw

# Alternatively, open the web dashboard.
openclaw dashboard
```

![Chatting in OpenClaw through GeekAI](https://static.geekai.co/storage/2026/03/02/image-20260302171601787.png)

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:

```json theme={null}
{
  "geekai": {
  "baseUrl": "https://geekai.co/api/v1",
  "apiKey": {
    "source": "env",
    "provider": "default",
    "id": "GEEKAI_API_KEY"
  },
  "api": "openai-completions",
  "models": [
    {
      "id": "gpt-5.3-codex",
      "name": "gpt-5.3-codex (Custom Provider)",
      "reasoning": false,
      "input": [
        "text"
      ],
      "cost": {
        "input": 0,
        "output": 0,
        "cacheRead": 0,
        "cacheWrite": 0
      },
      "contextWindow": 16000,
      "maxTokens": 400000
    }
  ]
  }
}
```

Save the settings and retry the chat.

For help with installation or configuration, join the **GeekAI user group**:

![GeekAI user group QR code](https://static.geekai.co/image/geekai_wechat_group.png)

#### 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.

**Skills**

Skills extend OpenClaw's capabilities, much like plugins or apps:

* Each skill defines a set of tasks.
* Install third-party skills from ClawHub.
* You can also write custom skills.

**Memory**

OpenClaw remembers:

* Your preferences and habits.
* Context from previous conversations.
* Important information and tasks.

**Sandbox**

Sandbox mode protects your computer by limiting OpenClaw's system access:

* Sandbox Mode restricts access to the filesystem, network, and shell.
* Full Access Mode grants full permissions. Use it with care.

Explore the workspace:

```bash theme={null}
# Inspect the OpenClaw working directory.
ls ~/.openclaw

# View the configuration file.
openclaw config list

# List installed skills.
openclaw skills list

# Run a security audit.
openclaw security audit
```

### Practical skills

#### Step 6: Install and use skills

Browse the [ClawHub marketplace](https://clawhub.geekai.co), or use these commands:

```bash theme={null}
# Search for skills.
openclaw skills search email

# View a skill's details.
openclaw skills info @author/skill-name
```

Install commonly used skills:

```bash theme={null}
# Install the email management skill.
openclaw skills install @openclaw/email-manager

# Install the calendar management skill.
openclaw skills install @openclaw/calendar

# Install the file organization skill.
openclaw skills install @openclaw/file-organizer

# Install the web search skill (Tavily instead of Brave).
openclaw skills install @openclaw/tavily-search
```

#### Step 7: Connect Google Workspace

OpenClaw can manage Gmail, Google Calendar, and Google Docs.

To configure the integration:

1. Create a Google Cloud project.

* Visit `console.cloud.google.com`.
* Create a project.
* Enable the Gmail, Google Calendar, and Google Drive APIs.

2. Create a service account.

* Under **IAM & Admin → Service Accounts**, create a service account.
* Download its JSON key file.

3. Configure OpenClaw.

```bash theme={null}
openclaw config set integrations.google.enabled true
openclaw config set integrations.google.credentialsPath "/path/to/credentials.json"
```

4. Authorize access.

```bash theme={null}
openclaw integrations google authorize
```

#### Step 8: Schedule tasks with cron

OpenClaw can run tasks automatically on a schedule.

For example, ask it to create a daily briefing:

```bash theme={null}
Every morning at 8:00, send me a briefing with:
1. Today's weather
2. My calendar for the day
3. The number of unread emails
4. An encouraging quote
```

OpenClaw creates a recurring cron job for the briefing.

Inspect and manage scheduled tasks:

```bash theme={null}
# List scheduled tasks.
openclaw cron list

# View task details.
openclaw cron show <task-id>

# Disable a task.
openclaw cron disable <task-id>

# Delete a task.
openclaw cron delete <task-id>
```

#### Step 9: Configure persistent memory

OpenClaw's memory system retains your preferences.

**Teach your assistant about yourself**

For example, tell OpenClaw:

```bash theme={null}
Remember these details about me:
- My name is [your name].
- I work as [your occupation].
- My working hours are Monday through Friday, 9:00–18:00.
- I prefer concise replies.
- I communicate in Chinese.
- My time zone is GMT+8.
```

Check what is stored:

```bash theme={null}
# Inspect the memory file.
cat ~/.openclaw/memory/long-term.json

# Alternatively, ask in chat:
What do you remember about me?
```

### Advanced applications

#### Step 10: Write a custom skill

Define skills in YAML or Markdown.

**Basic skill structure**

Create `~/.openclaw/skills/my-first-skill.yaml`:

```yaml theme={null}
name: "Daily news digest"
description: "Find and summarize today's technology news"
version: "1.0.0"
triggers:
  - "today's news"
  - "technology news"

steps:
  - action: web_search
    query: "latest tech news today"
    max_results: 5

  - action: summarize
    content: "{{search_results}}"
    style: "bullet_points"

  - action: respond
    message: "Today's technology news digest:

{{summary}}"
```

**Install the custom skill**

```bash theme={null}
# Reload skills.
openclaw skills reload

# Test the skill.
openclaw skills test "Daily news digest"
```

#### Step 11: Manage multiple agents

Run separate OpenClaw instances with different configurations for different purposes.

Create and switch between agents:

```bash theme={null}
# Create a work agent.
openclaw create-agent work
openclaw config --agent work set ai.model "claude-sonnet-4.6"

# Create a personal agent.
openclaw create-agent personal
openclaw config --agent personal set ai.model "gpt-5.3"

# Switch agents.
openclaw switch-agent work
openclaw switch-agent personal

# List all agents.
openclaw list-agents
```

Example uses:

* 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:

```bash theme={null}
# Install Docker if needed.
# macOS: download Docker Desktop.
# Linux: sudo apt install docker.io

# Configure OpenClaw to use a Docker sandbox.
openclaw config set sandbox.mode "docker"
openclaw config set sandbox.docker.image "openclaw/sandbox:latest"

# Test the sandbox.
openclaw sandbox test
```

The Docker sandbox restricts:

* Filesystem access to specified directories.
* Network access using a configurable allowlist.
* System command execution.
* CPU and memory usage.

#### Step 13: Control a browser

OpenClaw can control a browser to perform multi-step tasks on websites.

Enable browser control:

```bash theme={null}
# Install the browser control plugin.
openclaw plugins install @openclaw/browser-control

# Configure the browser.
openclaw config set browser.enabled true
openclaw config set browser.headless false  # Show the browser window.
```

Example requests:

```bash theme={null}
Open GitHub in the browser, search for "openclaw", and tell me the first three results.
```

```bash theme={null}
Search Amazon for mechanical keyboards. Find the three highest-rated products and record their prices.
```

### Step 14: Connect other tools

Linear (project management):

```bash theme={null}
# Install the Linear skill.
openclaw skills install @openclaw/linear

# Configure the API key.
openclaw config set integrations.linear.apiKey "YOUR_LINEAR_API_KEY"
```

Example request:

```bash theme={null}
Create a high-priority Linear task called "Fix the login page bug".
```

Obsidian (notes):

```bash theme={null}
# Install the Obsidian skill.
openclaw skills install @openclaw/obsidian

# Set the Obsidian vault path.
openclaw config set integrations.obsidian.vaultPath "/path/to/obsidian/vault"
```

Example request:

```bash theme={null}
Create an Obsidian note titled "Learning OpenClaw".
```

#### Step 15: Tune your configuration

Performance settings:

```bash theme={null}
# Configure caching.
openclaw config set cache.enabled true
openclaw config set cache.ttl 3600

# Configure concurrent requests.
openclaw config set ai.maxConcurrentRequests 3

# Set the timeout.
openclaw config set ai.timeout 30000
```

Cost controls:

```bash theme={null}
# Set a daily API call limit.
openclaw config set ai.dailyLimit 1000

# Set a monthly budget in US dollars.
openclaw config set ai.monthlyBudget 50

# Inspect usage statistics.
openclaw stats usage
openclaw stats cost
```

Logging and debugging:

```bash theme={null}
# Enable detailed logs.
openclaw config set logging.level "debug"

# View logs.
openclaw logs

# View logs from a specified time onward.
openclaw logs --since "2026-02-20"

# Export logs.
openclaw logs --export logs.txt
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.