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.2-cp39-abi3-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.9+Windows x86-64

memora_swarm-0.1.2-cp39-abi3-manylinux_2_34_x86_64.whl (1.7 MB view details)

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

memora_swarm-0.1.2-cp39-abi3-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

memora_swarm-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: memora_swarm-0.1.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.6 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.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 895cfaace2d55763d30003cdc21274487bcb7f09366f9ebb74694c8e94f21dff
MD5 0203458cc189af33afd70537f4eca322
BLAKE2b-256 89f312f1c39580cb470b94be3df6378245abc278c3b4c0c0cb2abc19d5cc650d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for memora_swarm-0.1.2-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8da782a561ca46247f2de96912f25f35216f92588d9c28ead956e8cb69aa80ad
MD5 1818a9e2739848b43637735c9f0da095
BLAKE2b-256 67b3f7a12f8aab5d535881ebcd0e640fcd2284b70f39472f9ff7385db1ff449c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for memora_swarm-0.1.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 485f4b1f1bc049447f3c3d50aba4457dfbb36fb7bc2d0a5b2e2aa7eabc89bdcc
MD5 9cbf97d65ce8db7257e9eebff958db98
BLAKE2b-256 f38c90086d7e18bdd7c18d7eb236d58001a715b603404bc848ca92af7ab1507a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for memora_swarm-0.1.2-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9a234e3c039193e4ea7b3196f537eb4e6c7005546466246e03550e01e3306400
MD5 39ab8ead570e994778cfa974ad51b6a7
BLAKE2b-256 2c00f463fa27839c31630960db7b7c6b40526de6e554a705a1a9e4c514e95fe0

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

4 files

0.1.3

4 files

This release

0.1.2 This release

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