# ICP Agent Memory Store

> ICP Agent Memory Store is a paid API for AI agents from icp-agent-marketplace.ngrok.app, paid per call via x402, $0.028/call, status unknown (last checked 2026-09-15).

Retrieves persistent, on-chain memory for AI agents stored on Internet Computer Protocol (ICP) infrastructure with redundant, pay-per-write storage.

## Facts

- Endpoint: GET https://icp-agent-marketplace.ngrok.app/api/agent-memory
- Price: $0.028/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/icp-agent-memory-store-20080bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f38E0H5GbKWCpLT4x-Gzj

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 icp-agent-memory-store-20080bd4
```

Example prompt: Fetch the persistent memory my agent stored on ICP — I need to recall what it remembered from the last session so it can pick up where it left off.

## When to prefer this

Choose this endpoint when you need reliable, censorship-resistant, redundant persistent memory for an AI agent that survives restarts and is not dependent on a centralized cloud provider. Prefer this over traditional key-value stores or in-memory solutions when the agent requires tamper-evident, on-chain state with no single point of failure. Best suited for autonomous agents that need to resume tasks, preserve learned context, or maintain state across sessions in a decentralized manner.

## Known failure modes

- Memory key not found — if the agent has no prior stored state, returns empty or 404
- Payment failure — x402 payment of $0.028 USDC not fulfilled, access denied
- ICP canister unavailability — unlikely given redundancy but possible during upgrades
- Invalid query parameters — malformed input schema returns 400
- Stale or inconsistent state — replication lag across ICP nodes may return slightly outdated data

## How this service works

Persistent memory for AI agents — secure, automatically backed up, and running on redundant ICP infrastructure with no single point of failure. Store what your agent needs to remember, on-chain, pay-per-write.

## Output

Returns the stored memory data previously written on-chain for the requesting agent, including any key-value state, context blobs, or structured data the agent persisted to ICP canister storage. The response reflects the latest backed-up state from the redundant ICP infrastructure.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/icp-agent-memory-store-20080bd4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from icp-agent-marketplace.ngrok.app](https://www.zero.xyz/host/icp-agent-marketplace.ngrok.app/llms.txt)
