> For the complete documentation index, see [llms.txt](https://www.openclawbook.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.openclawbook.xyz/en/ch10-advanced-techniques/10.3-customization-and-common-questions.md). Agents can also search and read this documentation through its [MCP server](https://www.openclawbook.xyz/~gitbook/mcp).

# 10.3 Customization and Common Questions

> **Generated by**: Claude Opus 5 (claude-opus-5\[1m]) **Token usage**: Input \~170,000 tokens, Output \~9,000 tokens (this section) **Source baseline**: `v2026.3.9` (`v2026.3.8-170-g665f67726`)

***

## 10.3.1 Choosing Your Extension Mechanism

Four ways to extend OpenClaw, in increasing order of cost. **Pick the cheapest one that works** — most customization needs the first.

| Mechanism      | Cost                            | Use when                                    |
| -------------- | ------------------------------- | ------------------------------------------- |
| **Skill**      | A Markdown file                 | You want the agent to know a procedure      |
| **Hook**       | A shell script or HTTP endpoint | You want something to happen on an event    |
| **MCP server** | A separate process              | You want tools from an existing ecosystem   |
| **Plugin**     | A TypeScript package            | You need a new channel, or deep integration |

### Skills first

A skill is a folder with a `SKILL.md`:

```markdown
---
name: deploy-staging
description: Deploy the current branch to staging
---

# Deploy to Staging

1. Confirm the VPN is connected: `ping staging.internal`
2. Run tests: `npm test`
3. Deploy: `./ops/deploy-staging.sh`
4. Verify: check https://staging.example.com/health

Never deploy from a branch with uncommitted changes.
```

Drop it in `<workspace>/skills/deploy-staging/` and it's available.

**Only the name and description are in the system prompt; the body loads on demand** (§6.2.4). That's what makes 52 bundled skills affordable — the always-on cost is a few dozen tokens each, and the full procedure only enters context when it's relevant.

The practical consequence: **write descriptions for selection, not for humans.** "Deploy the current branch to staging" is a good description. "Deployment helper" is not — the agent has to guess.

### Hooks when you need events

```json5
{
  hooks: {
    entries: [
      {
        event: "session.start",
        command: "~/bin/log-session-start.sh",
      },
    ],
  },
}
```

Hooks fire on lifecycle events (§30.3). Use them for logging, notifications, and side effects — not for shaping the agent's reasoning, which is what skills and `AGENTS.md` are for.

### MCP when the tool already exists

```json5
{
  mcp: {
    servers: {
      "my-tools": { command: "node", args: ["./my-mcp-server.js"] },
    },
  },
}
```

Worth it when someone has already built what you need. Not worth it for a tool you'd write yourself in twenty lines — that's a skill plus `exec`.

### Plugins last

A plugin is only necessary for a new channel or an integration needing internals. It's also the highest-cost option in every sense: TypeScript, a build step, and **full in-process trust with no capability restriction** (§21.5.6).

If you're writing one, §33.4 and §34.6 cover the contract.

## 10.3.2 Common Questions

### "The agent isn't replying in a group"

Almost always `requireMention` — the agent stays quiet unless addressed. Check:

```bash
openclaw channels status
```

Then confirm the group is in `groups.allow` and that `groupPolicy` isn't blocking it.

### "It replied to the wrong thing" / "responses feel out of order"

Messages arriving during a turn are **queued, not dropped** (§18.6). Three semantics exist:

| Semantic   | Behavior                                            |
| ---------- | --------------------------------------------------- |
| `steer`    | Injected into the running turn — changes its course |
| `followup` | Queued as the next turn                             |
| `collect`  | Batched into one turn                               |

If you sent a correction mid-turn and it took effect immediately, that was steering working as designed.

### "Why is it slow to start replying?"

Model latency plus, on the first turn, session bootstrap (loading `SOUL.md`, `AGENTS.md`, `MEMORY.md`, skill metadata). Subsequent turns in the same session are faster.

If it's consistently slow, check whether `MEMORY.md` has grown large (§10.1.2) — it's injected every time.

### "It used the wrong model"

Check the degradation chain. If the primary model errored, the runtime fell back (§20.6). Six independent degradation chains exist, and they're silent by design — the point is that a transient failure doesn't become your problem.

```bash
openclaw usage              # shows which models actually ran
```

### "Costs are higher than expected"

Usual culprits, in order:

1. **Scheduled jobs and heartbeat on an expensive model** — they run constantly (§8.2.3);
2. **A large `MEMORY.md`** — a per-request tax on every session;
3. **Too many skills enabled** — metadata for all of them is always in the prompt;
4. **Subagent polling** — if the agent is polling despite the prompt forbidding it (§9.2.1), each poll is a full turn.

```bash
openclaw usage cost
```

### "Do I need to restart after a config change?"

Most config is re-read. Channel credentials and plugin changes need a restart:

```bash
openclaw gateway restart
```

### "How do I move to a new machine?"

```bash
rsync -av ~/.openclaw/ newmachine:~/.openclaw/
rsync -av ~/openclaw-workspace/ newmachine:~/openclaw-workspace/
```

That's it — **because memory and personality are files** (§10.1.1). If the workspace is in git, it's a `git clone`.

### "Something is broken and I don't know what"

```bash
openclaw doctor            # environment and configuration checks
openclaw security audit    # security posture
openclaw gateway status    # is it running
openclaw channels status   # per-channel connection state
```

`doctor` first. It catches the majority of setup problems, including the platform-specific service quirks in Appendix F.2.

## 10.3.3 Where to Go Next

You've finished Part I — the practical layer. Everything above is usable without reading a line of source.

The rest of the book is the implementation:

| If you want to understand…             | Go to                 |
| -------------------------------------- | --------------------- |
| How the gateway multiplexes one port   | Ch. 11–13, Appendix G |
| Channels and the plugin contract       | Ch. 14, 19, 33–34     |
| The agent runtime and context assembly | Ch. 15–18             |
| Model routing and degradation          | Ch. 20                |
| Tools, skills, hooks                   | Ch. 22, 29–30         |
| Memory internals                       | Ch. 28                |
| Security implementation                | Ch. 32                |
| **The engineering picture as a whole** | **Ch. 43–45**         |

> **If you read only one more part, make it Part XI (Ch. 43–45).** Chapters 11–42 explain how each subsystem works; Part XI explains **why the codebase looks the way it does** — the recurring design themes (§44), the transferable patterns, and an honest list of what's weak (§45). That's the part that transfers to code you write yourself.

***

## Section Summary

1. **Four extension mechanisms, increasing in cost: skill, hook, MCP server, plugin — pick the cheapest that works.** Most customization needs a skill.
2. **A skill's name and description are always in the prompt; the body loads on demand** — which is what makes 52 bundled skills affordable, and why **descriptions should be written for selection, not for humans**.
3. **Hooks are for side effects, not for shaping reasoning** — that's what skills and `AGENTS.md` are for.
4. **Plugins are the last resort**: TypeScript, a build step, and **full in-process trust with no capability restriction**.
5. **A silent group is almost always `requireMention`**; out-of-order replies are usually steering working as designed — messages during a turn are queued, not dropped.
6. **Cost overruns come, in order, from**: expensive models on scheduled jobs, a bloated `MEMORY.md`, too many enabled skills, and subagent polling.
7. **Migration is `rsync`, because memory and personality are files** — or `git clone` if the workspace is versioned.
8. **`openclaw doctor` first** for anything broken; it catches most setup problems.
9. **If you read one more part, read Part XI** — Ch. 11–42 explain how the subsystems work, Ch. 43–45 explain **why the codebase looks the way it does**, which is the part that transfers to your own code.
