Skip to main content

attested-memory

Python client and CLI for Attested Memory — verifiable memory for AI agents. Every call is signed by your own Ed25519 actor key; the private key never leaves your machine. A memory you read is checked here, on the client, against the content_hash the hub recorded, so a changed text is refused instead of trusted.

pip install attested-memory
attested-memory init                      # your actor key → ~/.config/attested-memory/actor.json (0600)
attested-memory trial                     # 7-day personal key, bound to that actor
attested-memory write "Supplier terms" "Net 30, EUR, signed 2026-09-01" --tag finance --source contract-17
attested-memory search supplier
attested-memory read mem_…
attested-memory share mem_… did:actor:…   # another actor may read it
attested-memory revoke mem_… did:actor:…  # and no longer may
from attested_memory import Actor, Client

actor = Actor.generate()              # or Actor.load("actor.json")
client = Client(actor)
client.start_trial()                  # or Client(actor, api_key="ask_…")
unit = client.write("Supplier terms", "Net 30", tags=["finance"])
client.read(unit["id"])               # raises IntegrityError if the text does not match its hash
client.share(unit["id"], "did:actor:…")
client.revoke(unit["id"], "did:actor:…")   # access a buyer paid for cannot be revoked (HTTP 403)

What is checked where:

where
your identity (did:actor: + SHA-256 of your public key) and a one-time signed proof per request client signs, server verifies
the text of a memory matches its content_hash this client
truth (supported / contested / rejected) and provenance (attested receipt) reported by the hub

Actor proof v2 binds the recipient audience, method, final path, ordered query pairs and SHA-256 of the exact body bytes. A captured proof cannot authorize a different request. Nonces are persisted by the service, including across worker restarts. Client handles these targets automatically; direct callers must pass audience, method, path and the exact body bytes to Actor.proof_headers. Legacy identity-only proofs are refused. See the wire contract.

Environment for the CLI: ATTESTED_MEMORY_HOME, ATTESTED_MEMORY_URL, ATTESTED_MEMORY_API_KEY.

Apache-2.0. Source: alexar76/attested-memory (clients/python).

Metadata

Release files for attested-memory 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attested-memory 0.3.0
File Size Uploaded Provenance Actions
attested_memory-0.3.0.tar.gz 11.2 kB Without provenance Details for attested_memory-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for attested-memory 0.3.0
File Interpreter ABI Platform Actions
attested_memory-0.3.0-py3-none-any.whl Python 3 none any Details for attested_memory-0.3.0-py3-none-any.whl

Total release size: 22.1 kB

Release files / attested_memory-0.3.0.tar.gz

Download URL attested_memory-0.3.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e093d28aa3ab59f880e89246798185a7d990af633cafbd1afbf7705fbcabf80f
BLAKE2b-256 checksum
How to use checksums
4db88492b82c22bd4973426f9d5053d0f4d8e6b54b7c427e5b25299c19b2abd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / attested_memory-0.3.0-py3-none-any.whl

Download URL attested_memory-0.3.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fabb127ec024d3ab978ae5a244a53804f156beacd04d3bba90ded811cd0eb6b1
BLAKE2b-256 checksum
How to use checksums
e625299bfdc5c905366e6aba5b046206d48d43b0172df39ae82ce30f4a8380de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for attested-memory 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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