# Human-like Memory OpenClaw Plugin

Canonical website: https://plugin.human-like.me

The OpenClaw plugin adds long-term memory to OpenClaw with automatic recall, automatic storage, and agent-callable memory tools.

## Install

```bash
openclaw plugin install human-like-mem
```

## Configure API Key

Create an API key in the Dashboard under `API Keys`, then configure the plugin:

```bash
openclaw config set plugins.entries.human-like-mem.config.apiKey "mp_your_key_here"
```

## Enable as Memory Engine

```bash
openclaw config set plugins.slots.memory human-like-mem
```

## Restart and Verify

```bash
openclaw plugin status human-like-mem
```

## How It Works

- Before response: the plugin retrieves relevant memories and injects them into agent context.
- After response: the plugin caches the conversation and flushes memory by turn threshold or timeout.
- Agent tools: the agent can call `memory_search` and `memory_store` to query or save memories on demand.

## Optional Configuration

| Parameter | Default | Description |
| --- | --- | --- |
| `timeoutMs` | `15000` | Request timeout in milliseconds. |
| `turnThreshold` | `5` | Number of conversation turns before auto-flush. |
| `autoFlushTimeout` | `300000` | Auto-flush timeout in milliseconds. |
| `memoryLimitNumber` | `6` | Maximum memories returned per search. |

## Troubleshooting

1. If you see `API key not configured`, run:

   ```bash
   openclaw config set plugins.entries.human-like-mem.config.apiKey "mp_xxx"
   ```

2. If status shows `unavailable`, make sure `plugins.slots.memory` is set to `human-like-mem`.

3. If you see request timeout logs, increase `timeoutMs`, for example:

   ```bash
   openclaw config set plugins.entries.human-like-mem.config.timeoutMs 30000
   ```

## Related Docs

- REST API integration: https://plugin.human-like.me/docs/api.md
- Hermes Agent integration: https://plugin.human-like.me/docs/hermes.md
