Skip to content

Sizing storage for OpenClaw memory and skills

How big to make the OpenClaw workspace volume — a breakdown of what lives under ~/.openclaw/, how memory, skill caches, browser profiles, and logs grow over 30 days, 90 days, and a year of real use.

You provisioned a 20 GB workspace disk because that was the default tier on the panel, and now three months later the agent is failing skill installs with ENOSPC while the daily session JSONL is silently truncating. The numbers you need for an OpenClaw IaaS deployment are not the numbers anyone gives you in the install docs — the README tells you the gateway runs on 18789 (github.com/openclaw/openclaw) and that the workspace is ~/.openclaw/workspace, but it does not tell you that the browser-control profile alone can hit 2 GB after a week of agentic browsing or that the persistent-memory vector store grows linearly with chat volume. This article does.

What it is

OpenClaw’s workspace is a single directory tree under ~/.openclaw/ (or wherever OPENCLAW_HOME points, on an IaaS deployment usually /var/lib/openclaw/). It contains everything the agent needs between restarts — config, session transcripts, persistent memory, skill code and caches, browser profiles, cron jobs, the dashboard’s session store, and the channel pairing state (github.com/openclaw/openclaw). Nothing useful lives outside it. A backup of /var/lib/openclaw/ and /etc/openclaw/openclaw.env is a complete backup of the agent.

The sizing question therefore reduces to: how big does that tree get?

Baseline — a fresh install

A clean OpenClaw install with no sessions, no skills installed beyond the bundled set, no channels paired, occupies a small footprint on disk. The directory looks like this immediately after openclaw onboard:

/var/lib/openclaw/
├── .openclaw/
│   ├── openclaw.json          ~4 KB    main config
│   ├── workspace/
│   │   ├── AGENTS.md          ~8 KB    persona bootstrap
│   │   ├── SOUL.md            ~6 KB    voice + tone
│   │   ├── TOOLS.md           ~5 KB    tool-use rules
│   │   ├── IDENTITY.md        ~3 KB    self-description
│   │   ├── USER.md            ~2 KB    user profile stub
│   │   └── skills/            ~0       (empty)
│   ├── agents/<agentId>/
│   │   └── sessions/          ~0       (empty)
│   ├── cron/
│   │   └── jobs.json          ~1 KB    empty job list
│   └── channels/              ~0       (no pairings yet)
└── .cache/                    ~0       (no npm cache yet)

Total on disk after openclaw onboard: under 1 MB. The npm global install lives at /usr/lib/node_modules/openclaw/ and consumes ~150-200 MB on its own, but that is not on the workspace volume — it is on the OS disk under whatever path npm root -g reports (npm docs — npm root).

What grows, and how fast

Five things grow on the workspace volume during real use. They grow at very different rates.

1. Session transcripts (JSONL)

Each interactive session is appended to ~/.openclaw/agents/<agentId>/sessions/<sessionId>.jsonl. Every turn — user message, model reply, tool call, tool result — is one line. A casual back-and-forth chat with no tool calls runs ~2-5 KB per turn. An agentic session with browser automation, shell calls, and file reads can run 20-80 KB per turn because tool results (especially page content) get embedded.

Usage patternTurns/dayAvg turn sizeDaily growth90-day total
Light personal use (a few chats, simple skills)305 KB150 KB13 MB
Power-user with cron + integrations20015 KB3 MB270 MB
Heavy agentic — browser automation, code work50040 KB20 MB1.8 GB

The transcripts are append-only and never rotated by default. After a year, a heavy agentic user can be sitting on 6-8 GB of JSONL alone.

2. Persistent memory + vector store

The persistent-memory subsystem is pluggable — common backends are an embedded LanceDB store, an external Honcho server, or a flat-file QMD store, configured under memory in openclaw.json (github.com/openclaw/openclaw). For the in-process LanceDB default, embeddings sit at ~/.openclaw/workspace/memory/lance/ and grow with the number of indexed memory chunks.

BackendPer-chunk overhead30 days light90 days heavy
LanceDB (embedded)~3 KB (chunk + 1024-dim vector)~150 MB~2.5 GB
QMD flat-file~1.5 KB (text + minimal index)~80 MB~1.4 GB
Honcho (external)n/a on this host~5 MB pointers~50 MB pointers

If you go the Honcho route, the memory is not local — the workspace stays small but you depend on the Honcho server’s storage. See the project’s memory-engine docs (github.com/openclaw/openclaw).

3. Skill code and on-disk caches

A skill is a directory at ~/.openclaw/workspace/skills/<skill>/ with a SKILL.md file and optional code. Most skills are small — a handful of KB. The exceptions are skills that cache state to disk:

Skill typeCache patternTypical size after 90 days
Vanilla markdown skill (no cache)None5-20 KB
API integration with response cacheJSON files in skill/.cache/50-500 MB
Embedding-based RAG skillLocal vectors per source500 MB - 5 GB
Local LLM / model-running skillModel weights, GBs10-50 GB

A “documents” skill that ingests a few hundred PDFs and embeds them locally can hit a few GB on its own. If you run any local-model skills (Ollama, llama.cpp, MLX), the weights are usually on a separate path outside the workspace — but verify, because some skills bundle weights under skill/models/.

4. Browser-control profile

Browser automation uses a managed Chromium profile, by default under ~/.openclaw/workspace/.cache/browser-profile/. The profile persists logins (so the agent does not have to re-auth every run) and accumulates the same junk a normal browser profile does — service-worker storage, HTTP cache, IndexedDB, cookies, downloaded files in ~/.openclaw/workspace/downloads/.

Browser usageProfile size afterNotes
Light (a few sites a week)200-400 MB after 30 daysMostly cache, can be wiped
Active (daily agentic browsing)1-2 GB after 30 daysBundled service-worker caches dominate
Heavy + downloads5+ GB after 90 daysDownloads directory grows unbounded

Set a periodic prune on ~/.openclaw/workspace/.cache/browser-profile/Default/Cache/ and the downloads/ directory if you do not want this growing forever.

5. Logs and journald

If the systemd unit logs to journal (it should — see the unit in Deploying OpenClaw on a Virtuozzo Hybrid Server VM), the OpenClaw logs are subject to journald’s rotation policy. On Ubuntu 24.04 the default cap is 10% of the volume that holds /var/log/journal/, max 4 GB — meaning the OS disk, not the workspace (freedesktop.org — systemd-journald.service). If you redirect logs to a file under the workspace via StandardOutput=append:/var/lib/openclaw/openclaw.log, you own the rotation policy yourself, and it will grow without a logrotate config.

Reference: workspace size by use pattern

Combining all five, here is the rough budget to plan against. These are the totals on the workspace volume, not the OS disk.

ProfileAfter 30 daysAfter 90 daysAfter 1 year
Light personal — a few chats/day, 2-3 skills, no browser automation200 MB600 MB2-3 GB
Personal power-user — cron, integrations, occasional browsing1.5 GB4 GB12-15 GB
Heavy agentic — daily browser automation, RAG skill, code work5 GB15 GB40-50 GB
Pro/team — multiple users via shared channel, RAG over docs10 GB30 GB80-120 GB

The recommendation in Deploying OpenClaw on a Virtuozzo Hybrid Server VM is a 50 GB workspace disk, which sits comfortably in the personal-power-user envelope with multi-year headroom. For pro/team use, double that and plan to grow.

Chat history vs vector store — the breakdown

A useful split to keep in mind when you look at a disk-usage report on a busy install:

/var/lib/openclaw/.openclaw/
├── agents/<agentId>/sessions/      <- raw chat history, JSONL, append-only
└── workspace/memory/               <- distilled, embedded memory
    ├── lance/                      <- vector store
    └── chunks/                     <- canonical text chunks

The session transcripts are the raw, unfiltered record — every turn the agent ever had, including failed tool calls and abandoned reasoning. The memory directory is what the persistence layer chose to keep — facts, profile updates, context summaries — embedded and queryable.

Two practical consequences:

  • Transcripts are not memory. You can prune old .jsonl files without losing the agent’s persistent memory. The agent does not read sessions back at every turn — it queries the memory store.
  • Memory is not transcripts. Deleting ~/.openclaw/workspace/memory/ loses what the agent “knows” about you even if every session JSONL is intact. Both directories matter for backup; only the memory directory matters for the agent’s continuity of self.

How to check actual usage

# Total workspace footprint
du -sh /var/lib/openclaw/

# Per-top-level directory
du -sh /var/lib/openclaw/.openclaw/*/

# Biggest skill caches
du -sh /var/lib/openclaw/.openclaw/workspace/skills/*/ | sort -hr | head

# Session transcript total
du -sh /var/lib/openclaw/.openclaw/agents/*/sessions/

# Vector store
du -sh /var/lib/openclaw/.openclaw/workspace/memory/

# Browser profile
du -sh /var/lib/openclaw/.openclaw/workspace/.cache/browser-profile/ 2>/dev/null

If any one of those is surprising, that is the line to investigate first.

When to resize

If df -h /var/lib/openclaw/ shows the volume above 75% full, plan a resize for the next maintenance window. On a Virtuozzo Hybrid Server VM the workspace disk is its own qcow2 — resizing is a prlctl set <vm> --device <hdd> --size N plus a guest-side parted resizepart and resize2fs (docs.virtuozzo.com — Virtuozzo Hybrid Server). On a generic IaaS VPS the panel grows the volume and the guest steps are the same.

If the problem is one specific subdirectory — a runaway skill cache, the browser profile, an orphaned session JSONL — fix the cause first. Resizing a volume to absorb a broken skill is not a fix.

Sources


Last verified on OpenClaw current.

Scope an OpenClaw deployment with us.