How Gemini stores memory

Gemini's memory is less structured than ChatGPT's or Claude's. Rather than automatically saving preferences from conversations, Gemini relies mainly on a manual "Instructions" system: things you explicitly tell it to remember through Settings and Help > Instructions for Gemini.

If you haven't touched those settings, you might not have much stored. That's okay. You can write your preferences from scratch and use this guide to seed OpenClaw properly.

How OpenClaw handles memory

OpenClaw stores memory as plain text files on your computer. The key file is MEMORY.md, which lives in your workspace folder and gets loaded into every conversation with your agent.

It's simple and transparent. The catch is that recall isn't guaranteed. OpenClaw does its best to reference what's in the file, but it makes its own judgment call about when that information is relevant.

Why trimming matters

Even if Gemini doesn't hand you back a huge export, you still want to be deliberate about what goes into MEMORY.md. OpenClaw reads that file on every single message you send. Every word in there costs you tokens on your LLM API, even if most of it isn't relevant to what you're asking right now.

People who've tried pasting in everything they can think of usually come to the same conclusion: treat MEMORY.md like a business card, not a biography. Name, location, a few key projects, core preferences. The stuff that's almost always relevant no matter what you're talking about. Everything else is just noise that slows down responses and runs up your API bill.

The sweet spot is around 20-30 entries. If Gemini only gave you 15 good ones, that's perfectly fine. Less is more here.

Step 1: Export your Gemini memory

Start by checking what Gemini has stored. Go to Settings and Help > Instructions for Gemini.

Then open a Gemini conversation and paste this prompt:

Export prompt for Gemini
I'm switching to a different AI assistant and need to bring my preferences with me. Please list everything you know about me, including: - Any "Saved Info" entries you have stored - Instructions I've given you about how to respond (tone, format, style preferences) - Personal details: name, location, job, family, interests - Projects, goals, and recurring topics we've discussed - Tools, languages, and frameworks I use - Preferences and corrections I've made to your behavior - Anything else you've learned about me from our conversations Output everything in a single code block so I can easily copy it. Do not summarize or omit anything.

If Gemini gives a short response, follow up with: "Are there any other preferences or details you've picked up from our past conversations?"

If Gemini says it doesn't have any saved info, write your preferences by hand. A few lines covering your role, projects, and how you like responses is enough.

Step 2: Trim it in the ImportMemory editor

Paste whatever Gemini gave you into the ImportMemory editor. Cut things like:

Keep: your current role, response preferences, key tools, and standing instructions. Aim for 20-30 entries.

Step 3: Paste it into MEMORY.md

Open ~/.openclaw/workspace/MEMORY.md and paste your trimmed memory with clear headers:

## Identity
- Name: [your name]
- Location: [city, country]
- Role: [job title]

## Active Projects
- [Project name]: [brief description]

## Preferences
- Keep responses concise
- Use bullet points for lists
- Skip the disclaimers

Save and restart with openclaw gateway.

Quick check: Ask your agent "What do you know about me?" after restarting. If it reflects the file, you're set.

Tips for a better result

OpenClaw is evolving fast. The exact file paths and commands in this guide may change as OpenClaw ships updates. But the core principle holds regardless: any memory that gets loaded into every conversation should be trimmed to the essentials. Less noise means better responses and lower costs, no matter how the tool works under the hood.

Frequently asked questions

Does Gemini have as much stored memory as ChatGPT or Claude?

Usually less. Gemini relies mainly on things you've explicitly saved through Instructions. If you haven't used that feature much, you may not have a lot to export.

Will my Gems work in OpenClaw?

No. Gems are custom Gemini personas specific to the platform. If you want similar functionality in OpenClaw, recreate it using OpenClaw's Skills system.

Does this delete my Gemini data?

No. The export prompt just asks Gemini to display what it knows. Your saved instructions and conversation history stay intact.