# Agent Memory Save: Key-Value Store for Agents

> Agent Memory Save: Key-Value Store for Agents is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Persists a text or JSON value under a named key in a private namespace so an AI agent can retrieve it later across sessions.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/memory/set?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-save-key-value-44ca1871
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CzekBpxqwewQ-F4JxPMqT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-agent-memory-save-key-value-44ca1871
```

Example prompt: Remember that the user prefers dark mode and their preferred currency is EUR — store that under the key 'user_preferences' in my namespace 'agentsecret-namespace-7742' for the next 30 days.

## When to prefer this

Choose this endpoint when an AI agent needs to persist small pieces of text or JSON (facts, preferences, state, results) between separate runs or tool calls without setting up a database. It is ideal for lightweight, short-lived state (up to 30 days) where eventual consistency (up to 1-minute read lag) is acceptable. Prefer this over in-context memory when data must survive across sessions or agent restarts.

## Known failure modes

- Namespace not provided or shorter than 16 characters — request rejected
- Key exceeds 200 characters — validation error
- Value exceeds 8,000 characters — request rejected
- Days parameter out of 1–30 range — validation error or default used
- Eventual consistency lag — a read on another node may not reflect this write for up to 60 seconds
- Payment failure via x402 — call not charged, not executed

## How this service works

Save a value (up to 8,000 characters of text or JSON) under a key in your own namespace, so an agent can remember facts, preferences or task state between runs. Overwrites an existing key; expires after 1 to 30 days (default 30). Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to persist what an agent learned for a later call to memory_get.

## Output

Returns a JSON object confirming whether the value was saved (saved: true), the key name, the size of the stored value in bytes, the ISO timestamp when it was last updated, and the ISO timestamp when it will expire.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "namespace",
  "key",
  "value"
 ],
 "properties": {
  "key": {
   "type": "string",
   "description": "The key, up to 200 characters"
  },
  "days": {
   "type": "string",
   "description": "Days to keep it, 1 to 30 (default 30)"
  },
  "value": {
   "type": "string",
   "description": "The text or JSON to save, up to 8,000 characters"
  },
  "namespace": {
   "type": "string",
   "description": "Your namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string"
  },
  "size": {
   "type": "number"
  },
  "saved": {
   "type": "boolean"
  },
  "expiresAt": {
   "type": "string"
  },
  "updatedAt": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-agent-memory-save-key-value-44ca1871/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
