Skip to main content

Memora

The Cloudflare Zero Trust of agent state.

Your security stack watches the network. Nothing watches what your agents tell each other.

Memora is the missing layer — Byzantine-fault-tolerant shared memory where one compromised agent is mathematically unable to fork the state of the rest, and every write is signed, attributable, and exactly replayable.

pip install memora-swarm

You aren't paying for message delivery. You're paying for mathematical certainty that a single compromised agent can't fork the swarm.

Why

When you run many agents against one shared memory, that memory is your weakest link. A single agent that gets prompt-injected, goes rogue, or simply malfunctions can write poison that every other agent then reads and trusts. Plain key-value stores (Redis, etc.) have no defense — last write wins, no matter who wrote it.

Memora replaces that shared store with an engine that is correct under adversarial writers:

  • CRDTs — concurrent writes merge deterministically; the swarm never forks, no locks.
  • Trust-weighted aggregation — numeric contributions are combined by a robust mean that down-weights outliers instead of averaging them in.
  • Byzantine conviction (ACFA) — an agent that says different things to different peers (equivocation) is detected and evicted. Up to f malicious agents in a group of ≥ 2f+3 cannot move the agreed result. Based on the ACFA paper: arXiv:2607.10305.

Every write is signed by a self-certifying node identity and appended to a replayable log — so any state is attributable and auditable after the fact.

Quickstart

import memora_swarm as memora

# One key is the whole engine. Get a free key at https://memora.optitransfer.ch
db = memora.Blackboard(
    "./swarm.memora",
    node_id="agent_12",
    api_key="opti_sk_...",
)
db.connect("research-swarm")   # join a room; every agent in it shares one memory

# Shared key/value state — CRDT-merged. get() returns the set of current values.
db.put("best_hypothesis", "H3")
print(db.get("best_hypothesis"))            # -> ['H3']

# Byzantine-tolerant numeric aggregation: submit, then resolve the agreed result.
#   resolve(round, f) -> (aggregate_vector, acfa_root, convicted_node_ids)
db.submit_tensor("reward_estimate", [0.71, 0.68, 0.73], round=1)
vector, acfa_root, convicted = db.resolve(round=1, f=1)
print(vector, "convicted:", convicted)      # poisoners are evicted, not averaged in

That's it — no server to run. Your key connects you to the hosted relay, which does the CRDT merge, trust-weighting and Byzantine aggregation for you.

Use it with your stack

Memora is a plain shared-memory backend, so it drops under the agent frameworks you already use (LangChain, CrewAI, AutoGen). See the docs for copy-paste adapters: https://memora.optitransfer.ch/docs

Pricing

25,000 semantic ops free on signup — unlimited agents, the full engine, no feature gates. An "op" is a semantic state transition (a put or a submit_tensor); keepalive, sync and reads are never billed. At 85% of the free allowance you're prompted to add a card so nothing stops mid-run; after that it's metered at $0.35 / 1,000 ops ($0.20 / 1,000 above 2M/mo). The same key upgrades in place — your swarm never re-keys.

Links

Made under the optitransfer.ch umbrella.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

memora_swarm-0.1.3-cp39-abi3-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.9+Windows x86-64

memora_swarm-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl (1.9 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ x86-64

memora_swarm-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

memora_swarm-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file memora_swarm-0.1.3-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: memora_swarm-0.1.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memora_swarm-0.1.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 49d88f636d2bc5e74be82adbb3b4ff817a3a059bb2e8c1c0c7a7e9ac9e0bfb9d
MD5 e8b3dcbd09dd227adabd71ebb5649362
BLAKE2b-256 1c40f8a4f5def370ab4ccb74382577a7b96d5e1deed969398a80e71a0fc31437

See more details on using hashes here.

File details

Details for the file memora_swarm-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for memora_swarm-0.1.3-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5be3fa5adf5e9fa91f84635c9e9ca06f963d2a100fb5533b0a64233709d9f2b8
MD5 4b441fbb8c25d72c5ce1fd14c98b7bf3
BLAKE2b-256 85515e939870753f1936b58e72cb1a5dc41d561b32d3f7d8448c3d974e720ea1

See more details on using hashes here.

File details

Details for the file memora_swarm-0.1.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for memora_swarm-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77713832677b847e7131e574e26aa6c0eb08ca1006279bab534337fe641eb408
MD5 05a9a8a4316cbc4ead766023cce0a29d
BLAKE2b-256 7217dba639a772cfc092ce575937e6177f92ac478ce3284728cffddca646f85e

See more details on using hashes here.

File details

Details for the file memora_swarm-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for memora_swarm-0.1.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 851f7326760efc73ed40a53754edb18c027ed6f8b55e2de79be269c368f39bff
MD5 4e22f50eeeff2f58aebbc6730d48b253
BLAKE2b-256 d1e74596fd8cb346b06caf2480022a14d4d55ee1cf28f5079bbb34f820d430c2

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

4 files

This release

0.1.3 This release

4 files

0.1.2

4 files

0.1.0

4 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page