🗃️ KV Store

Key-Value Store for AI Agent State

Per-agent state. Compare-and-set. No database to run.

What it does

Give every agent its own namespaced key-value store. Read and write JSON values with optional TTL expiry and compare-and-set (CAS) tokens for safe concurrent updates. State is isolated per agent and per tenant.

Why agents need this

Get started in 30 seconds

One API call. No SDK. No configuration.

cURL

curl -X PUT "https://www.agent-utils.com/v1/kv/state/last-seen" \
  -H "x-agent-id: poller" -H "x-api-key: agutil_agt_…" \
  -H "content-type: application/json" \
  -d '{
    "value": { "event_id": "evt_42" },
    "ttl_seconds": 86400
  }'

Python

import requests

resp = requests.put(
    "https://www.agent-utils.com/v1/kv/state/last-seen",
    headers={
        "x-agent-id": "poller",
        "x-api-key": "agutil_agt_…",
        "content-type": "application/json",
    },
    json={
        "value": {"event_id": "evt_42"},
        "ttl_seconds": 86400,
    },
)
assert resp.status_code == 200

JavaScript

const res = await fetch("https://www.agent-utils.com/v1/kv/state/last-seen", {
  method: "PUT",
  headers: {
    "x-agent-id": "poller",
    "x-api-key": "agutil_agt_…",
    "content-type": "application/json",
  },
  body: JSON.stringify({
    value: { event_id: "evt_42" },
    ttl_seconds: 86400,
  }),
});

Use cases

Conversation memory

Store per-user chat context so an agent picks up exactly where the last turn left off

Cursor tracking

Remember the last-processed event ID so a polling agent never reprocesses or skips work

Feature flags & config

Agents read live config values per namespace without a redeploy or a separate config service

Idempotency keys

Store request fingerprints with TTL so retried agent actions do not double-execute

AgentUtils vs. alternatives

Traditional tools like Redis, DynamoDB, Upstash Redis require SDK integration, credential management, and infrastructure setup. AgentUtils replaces all of that with a single HTTP call.

AgentUtilsAlternatives
Setup time30 secondsHours to days
SDK requiredNo (REST API)Yes
Credentials to manage1 API keyMultiple keys/tokens
InfrastructureZero-configProvision + configure

Related tools

All AgentUtils tools

Start building for free

500 free API calls per month. No credit card required.