Agent memory

Persistent memory your agents can retrieve, correct and forget.

Give each agent, user or task its own namespace and restricted key. Store facts and episodes, recall by text, filters or vectors, and update or delete them by id. Your application decides what to remember; SkimmerDB stores and retrieves it.

0.8mswarm query p50, on real S3
Scopedkeys per user or agent
806Ban idle namespace in object storage
$0compute for a sleeping memory

From recorded runs, with how each was measured, on the benchmarks page.

A namespace per agent, user or task

The first write makes it; nothing to provision. Unlimited namespaces on pro. An idle one is a few hundred bytes in object storage and no compute, so quiet users do not each need a running process.

Recall that doesn’t guess

Use literal and regex search for names, order numbers and stack traces; inspect the partial flag before treating results as complete. Add embeddings when meaning matters: vector search narrowed by text and metadata runs in the same query, on the same copy.

Durable before it answers

A write is acknowledged only once it is in object storage. Use wait: true when the next step needs it searchable on the serving server, and handle uncertain write outcomes as described in the durability guide.

Remember, then recall

Memories are documents: an id, text, metadata, and an embedding if you have one. Writing an id again replaces it, so an agent can correct what it knows.

remember
MEM=https://api.skimmerdb.com/v1/namespaces/mem-user-4812

# Use a write key restricted to this namespace.
curl -sS $MEM/docs -H "Authorization: Bearer $KEY" -d '{
  "wait": true,
  "docs": [{"id": "pref-editor",
    "text": "Prefers Neovim; dislikes auto-format on save",
    "meta": {"kind": "preference", "session": 31}}]}'

# Correct the same memory by writing its id again.
curl -sS $MEM/docs -H "Authorization: Bearer $KEY" -d '{
  "wait": true,
  "docs": [{"id": "pref-editor", "text": "Prefers VS Code",
    "meta": {"kind": "preference", "session": 32}}]}'
recall
MEM=https://api.skimmerdb.com/v1/namespaces/mem-user-4812

# After the update: pref-editor matches VS Code, not Neovim.
curl -sS $MEM/search -H "Authorization: Bearer $KEY" -d '{
  "q": "VS Code", "filter": {"kind": "preference"}}'

# Forget the memory, then check the result.
curl -sS $MEM/delete -H "Authorization: Bearer $KEY" \
  -d '{"ids": ["pref-editor"], "wait": true}'
curl -sS $MEM/search -H "Authorization: Bearer $KEY" \
  -d '{"q": "VS Code"}'

Storage and retrieval, with memory policy in your app

Your application chooses which facts to extract, whether to summarize an episode, and when a memory expires. SkimmerDB provides persistence and retrieval; writing a conversation does not automatically turn it into curated facts.

Use stable ids for corrections, metadata for source and time, and explicit deletes for forgetting. Retrieved content is data for your agent to evaluate, not instructions that should override its rules.

Add semantic recall through hosted or provider embeddings, then check how text and filters narrow vector candidates. For access boundaries, run the two-tenant walkthrough. New to SkimmerDB? The quickstart writes two documents and finds them every way, with the answer each step should give.

Agents connect themselves

SkimmerDB is a remote MCP server. The user signs in once with OAuth, picks the namespaces and read or write, and the agent gets tools to search, write, count and run SQL over its memory. Every connection has its own revocable key.

  • Scoped. A key or connection can be limited to mem-agent-7-*; everything else looks like it doesn’t exist.
  • Capped. Rate, queries and writes a period, per key, so one runaway agent can’t run up the bill.
  • Metered. Every answer reports what it cost: warm or cold, object-store reads, CPU.
connect
# Claude Code: the agent gets search, write_documents, count, sql_query...
claude mcp add --transport http skimmerdb https://api.skimmerdb.com/mcp

# or a key that can only touch its own memories, read and write
curl https://api.skimmerdb.com/v1/keys -H "Authorization: Bearer $ADMIN" -d '{
  "name": "agent 7", "scope": "write", "namespaces": ["mem-agent-7-*"]}'

Memory patterns

User memoryOne namespace per end user (mem-user-4812). Preferences, facts and past answers, recalled by text, filter or vector.
Episodic logEvery turn or tool call as a document with session and kind in metadata. Search lists newest first; a cursor pages back through history.
Task scratchpadA namespace for one task, written as the agent works and dropped when it’s done. Nothing runs for it while it sleeps.
Shared team memorySeveral agents read one namespace with read-only keys, while one writer curates it. Keys can be limited to a prefix like team-a-*.
Memory that analytics can readThe same documents answer SQL: GROUP BY over kinds, sessions or tools, with text predicates. See agent analytics.
In production: Cachejay

Cachejay, a Mac app that remembers what you’ve seen on screen and said in calls, keeps every account’s library in its own SkimmerDB namespace. ChatGPT and Claude search it through Cachejay’s remote MCP server, from a laptop or a phone.

Questions

What is agent memory?

Long-term memory for an AI agent is what it saved in earlier sessions (facts about a user, preferences, past steps and their results) and can look up later. SkimmerDB stores each agent’s or user’s memory as documents in its own namespace and recalls them by exact text, regex, metadata filters or vector similarity.

Do I need a vector database for agent memory?

Not only one. Embeddings find things that mean the same, but they blur exact tokens such as names, ids, order numbers and error codes. SkimmerDB does both on one copy: exact and regex search with exact counts, and vector search that can be narrowed by text and filters in the same query.

How much does an idle agent’s memory cost?

An idle namespace accrues storage at $0.10 per GB-month on pro; the paid account has a $10 monthly minimum that usage counts against. Queries, writes, cold reads and hosted embeddings add usage when active. The free plan includes 1 GB with limits.

How fast is recall?

About 0.8 ms at the median for a warm query on real S3 in our benchmarks, and tens of milliseconds for a namespace read cold from object storage. Every answer reports whether it was warm or cold and how many object-storage reads it made.

Can an agent use it directly?

Yes. SkimmerDB is a remote MCP server with OAuth: Claude, Claude Code, ChatGPT, Cursor and Codex connect to https://api.skimmerdb.com/mcp, and the user picks which namespaces the agent may use and whether it may write. The REST API and Python and TypeScript clients do the same from your own code.

How do I keep one agent or user from reading another’s memory?

Give each its own namespace and a key limited to it (or to a prefix such as mem-user-4812-*), read-only if it only recalls. A namespace outside a key’s reach answers exactly like one that doesn’t exist.

What happens if a server fails mid-write?

Nothing acknowledged is lost: a write is answered only once it is stored in object storage, and servers keep nothing that isn’t also there. A fresh server on an empty disk was serving again in about 0.3 s in our recovery benchmark, with every acknowledged document there.

Give every agent a memory

Free up to 1 GB stored and 100k queries a month. No card to start.