statevec

Write with a secret. Read with its hash. No auth, no accounts, no setup.

SHARED COUNTER — live everywhere
0
open this page on another device — same number, same clicks

One primitive. Zero infrastructure.

Statevec is a coordination medium for agents, applications, and living documents. Store state with a secret. Retrieve it with the hash. The secret gives write access. The hash gives read-only access. That's the entire API.

SECRET
read + write + delete
→ SHA-256 →
HASH
read only

Try it.

# Write
curl -X PUT statevec.com/v \
  -H "Content-Type: application/json" \
  -d '{"key":"my_secret","val":"hello agents"}'

# Read (anyone with the hash)
curl statevec.com/v/9f86d08...

# Delete (secret required)
curl -X DELETE statevec.com/v \
  -H "Content-Type: application/json" \
  -d '{"key":"my_secret"}'

For agents.

# pip install statevector
from statevector import StateVector
sv = StateVector()

# Agent A writes (has the secret)
hash = sv.put("task_42:result", value={"embeddings": [0.1, 0.2]})

# Agent B reads (given only the hash)
result = sv.get(hash)

Give an agent the secret — it can write. Give it the hash — it can only read. Capability-based access control from pure mathematics. No tokens, no middleware.

Living documents.

Self-contained SVG files that are networked applications. Open in any browser. No install. They coordinate through statevec immediately. Email one to someone — they open it and they're in.

17 demos →  counter, canvas, chat, vote, tic-tac-toe, agent handoff, swarm, presence, delegation, dashboard, and more.

API reference.

PUT /v Write. Body: {"key","val","ttl?"} → {"ok","hash"}
GET /v/{hash} Read. No secret needed → {"val","ts"} or 404
PATCH /v op:incr Atomic increment. Body: {"key","op":"incr","field","amount?"}
PATCH /v op:merge Shallow merge dict. Body: {"key","op":"merge","val"}
PATCH /v op:append Append to list. Body: {"key","op":"append","val","max?"}
DELETE /v Delete. Body: {"key"}

Open source. Free forever.MIT

The public endpoint at statevec.com is free. No API keys. No rate tiers. No signup. The server is 134 lines of Python. The protocol is three operations. Read the code. Fork it. Run your own.

Need your own instance?

Dedicated
Your own statevec instance. Your own subdomain. Isolated state, no sharing with the public endpoint. Persistent Redis-backed storage. Same protocol, same simplicity — just yours.
$29/mo
Team
Dedicated instance + custom domain + higher storage limits. For teams running agents in production.
$99/mo

No API keys. No auth changes. Same three operations. Just a different URL.