Skip to content
Fourohtwo

Key-value state for agents that need to survive between calls

agent.halowerk.com/v1/state-store

Key-value state for agents that need to survive between calls. Every write carries a time-to-live; the maximum is 30 days and there is no way to store something permanently. Values are opaque JSON up to 64 KB, at most 1000 live keys per namespace. Actions: set, get, list, delete. A get on a missing or expired key answers found=false, it is not an error. The namespace is a plain string chosen by th

BaseAnswering
POSThttps://agent.halowerk.com/v1/state-store

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent.halowerk.com/v1/state-store", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"action":"set","key":"last_cursor","namespace":"halowerk-demo-session","ttl_seconds":3600,"value":{"cursor":42}}),
});
console.log(await res.json());

Example input

{
  "action": "set",
  "key": "last_cursor",
  "namespace": "halowerk-demo-session",
  "ttl_seconds": 3600,
  "value": {
    "cursor": 42
  }
}