HTTP/1.1 402 PAYMENT REQUIRED agent402.base.eth · BASE · SOLANA · POLYGON · ARBITRUM · MONAD · CELO · AVALANCHE · STELLAR · ALGORAND · ROBINHOOD · USDC · USDG
Agent402 / tools / Agent memory & coordination

Agent memory & coordination

The stateful layer a stateless agent can't build for itself: durable wallet-keyed KV with TTL, atomic counters/locks, shared namespaces other agents can reach (grants), a tamper-evident audit log, and similarity recall. The payment is the identity - no signup.

11 tools in this category. ← All tools

Memory write

$0.002 · POST /api/memory

Persistent key-value memory for agents, scoped to the paying wallet. Your x402 payment IS your authentication: the walle…

Memory read

$0.001 · GET /api/memory

Read from a wallet-scoped namespace. ?key=… returns the stored value; omit key to list keys. Reads your own namespace by…

Memory counter

$0.001 · POST /api/memory/incr

Atomically increment (or decrement) a numeric key and return the new value - a coordination primitive for counters, lock…

Memory compare-and-set

$0.001 · POST /api/memory/cas

Atomically write (or release) a key only if its current value equals `expected` - the coordination primitive for distrib…

Memory grant

$0.002 · POST /api/memory/grant

Share your namespace with another wallet so different agents can coordinate through it. Grant read or readwrite access t…

Memory revoke

$0.001 · POST /api/memory/revoke

Revoke a previously granted wallet's access to your namespace.

Memory grants list

$0.001 · GET /api/memory/grants

List the wallets you've granted access to your namespace, with their mode and expiry.

Memory audit log

$0.001 · GET /api/memory/log

Tamper-evident history of every change to a namespace - an append-only, hash-chained audit log the server attests to (pr…

Memory remember

$0.003 · POST /api/memory/remember

Store a piece of text for later similarity recall - a per-wallet semantic index an agent cannot host in-session. Returns…

Memory recall

$0.002 · POST /api/memory/recall

Recall remembered text by similarity to a query (ranked by cosine similarity), not by exact key. Returns the top-k match…

Memory forget

$0.001 · POST /api/memory/forget

Delete a remembered document by id from the recall store.