0 credits · free forever

AI Agent Memory API — Persistent State, Free

Every AI agent session starts with a blank slate. Your agent learns something, computes something, decides something — and then the session ends and it's all gone. The next run, it starts over. Here's how to fix that without provisioning a database, configuring Redis, or writing a single line of infrastructure code.

Why agents forget

Context windows are not memory. They're working memory for one session. When the session ends, everything in the context window evaporates. This causes problems that compound over time:

The obvious fix is Redis or DynamoDB. But you have to provision it, configure access, write read/write code, handle TTL, and maintain it. For an agent prototype, that's a full infrastructure decision before you've validated anything.

0cr · FREE FOREVER

All Slopshop memory operations — set, get, delete, list, search, queue push/pop, counter increment, graph operations — are permanently free on every plan, including the free tier. Not a trial. Not a feature gate. Free.

Three memory layers

Slopshop provides three distinct memory primitives, each suited to different patterns:

Key-Value Store
0 credits

Arbitrary JSON values keyed by string. Supports TTL, namespacing, and list operations. The right choice for session state, user preferences, and computed results.

Knowledge Graph
0 credits

Named entities and typed relationships. Store what your agent learns as a graph — nodes, edges, properties. Query by entity or relationship type.

Hive State
2 credits/write

Shared workspace state for multi-agent systems. Multiple agents reading and writing the same named state space, with channel-based access control.

Key-value: store and retrieve state

The simplest case. Store anything as JSON under a key, retrieve it in any future session, on any machine, with any LLM, as long as you use the same API key.

Store a result — end of sessioncurl
curl -X POST https://slopshop.gg/v1/memory-set \
  -H "Authorization: Bearer demo_key_slopshop" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "agent:research:transformer-papers",
    "value": {
      "papers": ["arxiv:2401.00001", "arxiv:2401.00042"],
      "summary": "Key insight: sparse attention reduces quadratic complexity",
      "fetched_at": "2026-03-26T10:00:00Z",
      "confidence": 0.88
    },
    "ttl": 604800
  }'

# Response: { "ok": true, "stored": true, "credits_used": 0 }
Retrieve it — next session, different LLM, same keycurl
curl -X POST https://slopshop.gg/v1/memory-get \
  -H "Authorization: Bearer demo_key_slopshop" \
  -d '{"key": "agent:research:transformer-papers"}'

# Returns the full value you stored, including metadata.
# The agent using GPT-4o today gets what the Claude agent
# stored last week. Cross-LLM memory, zero configuration.

Knowledge graph: store what your agent learns

When your agent is researching, it's not just accumulating facts — it's building a web of entities and relationships. A knowledge graph is the right structure for that. Store Person, Company, Concept, Paper nodes and the typed edges between them.

Add entities and a relationshipcurl
curl -X POST https://slopshop.gg/v1/graph-add \
  -H "Authorization: Bearer demo_key_slopshop" \
  -d '{
    "nodes": [
      {"id": "vaswani_2017", "type": "Paper", "props": {"title": "Attention Is All You Need", "year": 2017}},
      {"id": "concept_attention", "type": "Concept", "props": {"name": "Self-Attention Mechanism"}}
    ],
    "edges": [
      {"from": "vaswani_2017", "to": "concept_attention", "type": "INTRODUCES", "props": {"significance": "foundational"}}
    ]
  }'
Query the graph — next sessioncurl
curl -X POST https://slopshop.gg/v1/graph-query \
  -H "Authorization: Bearer demo_key_slopshop" \
  -d '{
    "start": "concept_attention",
    "direction": "incoming",
    "edge_type": "INTRODUCES",
    "depth": 2
  }'

# Returns: all papers that introduced or built on self-attention,
# up to 2 hops from the concept node. The graph grows each
# session as the agent discovers new relationships.

Cross-LLM, cross-device, cross-session

Memory in Slopshop is keyed to your API key, not to a model or a session. That means:

Compared to Redis and DynamoDB

Factor Redis (managed) DynamoDB Slopshop Memory
Setup time 30–60 min (VPC, auth, client) 20–40 min (IAM, table design) 0 — your API key is already the auth
Cost (prototype scale) ~$15–30/mo (smallest instance) ~$1–5/mo + provisioning complexity $0 — permanently free
Knowledge graph Not native (RedisGraph deprecated) Not native (use Neptune separately) Built-in, free
Cross-LLM access Yes, with custom client per framework Yes, with SDK per framework Yes, same HTTP call from any context
TTL support Yes Yes Yes, per-key TTL in seconds
MCP-native No — custom MCP tool required No — custom MCP tool required Yes — Claude Code sees memory tools natively

Full list of free memory operations

memory-set
0 credits

Store any JSON value with optional TTL. Overwrites if key exists.

memory-get
0 credits

Retrieve a value by key. Returns null if not found or expired.

memory-delete
0 credits

Remove a key and its value immediately, regardless of TTL.

memory-list
0 credits

List all keys matching a prefix. Paginated. Supports namespace traversal.

memory-search
0 credits

Semantic search over stored values. Returns ranked results by relevance.

memory-counter
0 credits

Atomic increment/decrement. Use for run counts, version numbers, rate tracking.

queue-push / pop
0 credits

FIFO and LIFO queues per named key. Coordinate sequential tasks between agents.

graph-add
0 credits

Add nodes and typed edges to the knowledge graph for this API key.

graph-query
0 credits

Traverse the graph from any node with configurable depth and edge type filters.

Using memory from Claude Code (MCP)

Add Slopshop to Claude Code's MCP config and all memory tools become native Claude tools. No curl, no HTTP — Claude calls memory_set, memory_get, graph_query the same way it uses any other tool.

Claude Code — claude_desktop_config.jsonjson
{
  "mcpServers": {
    "slopshop": {
      "command": "npx",
      "args": ["-y", "slopshop-mcp"],
      "env": {
        "SLOPSHOP_API_KEY": "your_key_here"
      }
    }
  }
}

// Claude now has memory_set, memory_get, graph_add,
// graph_query, queue_push, queue_pop as native tools.
// 0 credits. No database to maintain.

Memory is free forever

Sign up, get 500 credits for paid tools, and unlimited free memory. No credit card required.

$ npm install -g slopshop
$ slopshop signup
✓ Memory enabled. 0 credits. No database needed.