# Connect Ditto to OpenClaw

> Install the Ditto ClawHub skill, create an OpenClaw API key, and verify that OpenClaw can use your Ditto memory through the Ditto CLI.

---

OpenClaw uses Ditto through a ClawHub skill that calls the [Ditto CLI](/docs/ditto-cli). This is separate from MCP setup.

## Before You Start

You need OpenClaw installed and running.

You can create your Ditto account during the connection flow.

## Install The Skill

Install Ditto from ClawHub:

```bash
openclaw skills install ditto
```

You can inspect the public skill page first: [Ditto on ClawHub](https://clawhub.ai/ditto/ditto).

The skill installs the Ditto CLI as part of setup. If you need to verify or repair the CLI directly, use the [Ditto CLI docs](/docs/ditto-cli).

## Create A Key

1. Open [app.heyditto.ai/connect/openclaw](https://app.heyditto.ai/connect/openclaw).
2. Sign in.
3. Create a new key and copy it.
4. Log the CLI in if OpenClaw asks you to do it manually:

```bash
ditto login <paste-key>
```

The app connect page for this integration is [app.heyditto.ai/connect/openclaw](https://app.heyditto.ai/connect/openclaw).

## Verify

Check the CLI can reach Ditto:

```bash
ditto status
```

Then make a real account-backed request:

```bash
ditto subjects "test" --output json
```

OpenClaw can now use Ditto memory when the conversation calls for it. See [Ditto CLI verification](/docs/ditto-cli#verify) for the standalone command output shape.

## Troubleshooting

| Symptom                                               | Fix                                                                                                                                                             |
| ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `openclaw skills install ditto` cannot find the skill | Confirm OpenClaw is using ClawHub skill sources, then open [clawhub.ai/ditto/ditto](https://clawhub.ai/ditto/ditto) to confirm the public listing is reachable. |
| `ditto: command not found`                            | Re-run the OpenClaw skill install. If it still fails, use the manual repair steps in [Ditto CLI troubleshooting](/docs/ditto-cli#troubleshooting).              |
| `error: no Ditto API key configured`                  | Create a key at [app.heyditto.ai/connect/openclaw](https://app.heyditto.ai/connect/openclaw), then run `ditto login <key>`.                                     |
| Requests fail after working previously                | Run `ditto status`. If the key was revoked, rotate it with `ditto logout` followed by `ditto login <new-key>`.                                                  |

## Reference Links

- [OpenClaw docs](https://docs.openclaw.ai/)
- [ClawHub docs](https://documentation.openclaw.ai/clawhub)
- [Ditto skill on ClawHub](https://clawhub.ai/ditto/ditto)
- [Ditto CLI](/docs/ditto-cli)