services / agent-memory
utilityoperational · 6 ms
Agent Memory (Key-Value Store)
Persistent memory for AI agents without an account: store JSON under a key and read it back in a later run, or share it with other agents. Your first write creates a store and returns its secret (mem_...); pass it as store on every later call. Operations: set (with optional if_version for safe concurrent updates), get, get_many, delete, list (prefix, tag, paging), search (words in keys and values), append (rolling list such as a log or task queue, oldest items drop off), incr (atomic counter). Up to 64 KB per value, 1000 keys and 5 MB per store, kept 1 to 365 days (default 30, renewed on every write). One price per operation.
Run free trial ↗3 free calls per day with the example input. Paid: $0.002 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| op | set | get | get_many | delete | list | search | append | incr | Default: set if value is given, get if key is given, else list |
| store | string | Store secret from an earlier call (mem_...). Omit on your first write to create a store |
| key | string | |
| keys | array | For get_many and delete |
| value | object,array,string,number,boolean | Any JSON value, up to 64 KB (set, append) |
| tags | array | |
| if_version | integer | set only if the current version matches (0 = key must not exist) |
| by | number | incr step, default 1 |
| max_items | integer | append: keep at most this many items, default 100, max 1000 |
| prefix | string | |
| tag | string | |
| query | string | search: words that must all appear in key or value |
| with_values | boolean | list: include values |
| after | string | list: continue after this key |
| limit | integer | |
| ttl_days | integer = 30 |
Output
| Field | Type | Description |
|---|---|---|
| op | string | |
| store | string | Only when a new store was created: keep this secret |
| key | string | |
| found | boolean | |
| value | any | |
| version | integer | |
| written | boolean | |
| conflict | boolean | |
| items | array | |
| store_usage | object |