# Set up OpenClaw memory search with Ollama

Canonical: https://cwyn.com/pages/openclaw-guide-first-ollama-memory-search.html
Last updated: 2026-11-19T12:30:28-05:00

OpenClaw operations guide

Short answer. Connect OpenClaw Memory Core to an Ollama embedding model and verify that search returns a note from your test agent’s workspace. Use a local test Gateway with one agent and the built-in Memory Core backend. Start Ollama on that host and download the nomic-embed-text embedding model in Ollama before opening the wizard.

Last updated November 19, 2026

The [OpenClaw Complete Setup Pack](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit ($14.95). Use its memory checklist to record what the agent can recall in a fresh session.

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.

By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5

## 1. Prepare an embedding model on the Gateway host

Use a local test Gateway with one agent and the built-in Memory Core backend. Start Ollama on that host and download the `nomic-embed-text` embedding model in Ollama before opening the wizard. This setup uses Ollama to index and search notes. You can keep your current chat model.

## 2. Set up the memory provider

Run the [memory setup wizard](https://docs.openclaw.ai/cli/configure#memory-section) on the Gateway host. Choose `ollama` and enter `nomic-embed-text` as the model. On a local server that requires no authentication, choose Use existing credentials / no key. Save after the embedding check passes. If it fails, check that Ollama is running and has the model before you try again.

```
openclaw configure --section memory
```

## 3. Add one test note

In the test agent’s workspace, create `memory/orchard-test.md` with the line `The orchard locker is called Violet Compass.` Use a made-up note so you know exactly which file should appear. [Memory Core indexes Markdown notes](https://docs.openclaw.ai/concepts/memory-builtin#how-indexing-works) under the workspace’s `memory/` directory.

## 4. Check embedding readiness from the Gateway

For an installed local service, run `openclaw gateway restart` after saving. Open [Memory → Overview → Test](https://docs.openclaw.ai/cli/memory#memory-status) in the Control UI and check embedding readiness there. The wizard saves the settings. Indexing runs separately. See the [Gateway restart reference](https://docs.openclaw.ai/cli/gateway/restart-and-supervision) for service details.

## 5. Search for the note and read the source path

Run the [memory search command](https://docs.openclaw.ai/cli/memory#memory-search) with the Gateway running. Look for `memory/orchard-test.md` in the results. If indexing is still settling, let it finish and search again.

```
openclaw memory search "What is the name of the orchard locker?"
```

[Get your free CWYN Score](https://cwyn.com/pages/score.html)

## Related guides

- [OpenClaw Ollama setup: connect your first local model](https://cwyn.com/pages/openclaw-guide-first-local-ollama-model.html)
- [OpenClaw memory index stale: test whether new notes are searchable](https://cwyn.com/pages/openclaw-guide-memory-index-stale.html)
- [OpenClaw memory embedding quota exhausted: test keyword or local search](https://cwyn.com/pages/openclaw-guide-memory-embedding-quota.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [Check your OpenClaw AGENTS.md](https://cwyn.com/score/setup-file-checker/?profile=openclaw)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)
