SuperAPIAI Directory

alethech

github.com · AI agents

alethech is a reference implementation of a verifiable memory continuity protocol for AI agents. It uses Ed25519 to sign memory commits, organizes history through a hash-linked DAG, supports key rotation and guarantees reachability, and can encapsulate verified history into encrypted .aleth files for transfer between compatible runtimes and devices. The project is local-first, does not call LLMs, does not depend on a blockchain, and relies only on cryptography and click. It provides 9 CLI commands, a read-only MCP stdio bridge, byte-level consistency verification across Python/TypeScript/Rust, and a test suite with mutation protection.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · 浏览器扩展

About this tool

alethech is a reference implementation of a verifiable agent continuity protocol. The name derives from the Greek aletheia (disclosure, unconcealment) and techne (craft), meaning "the craft of revealing that memory has not been modified after signing." The project is under the MIT license, published on PyPI, and the current version is 0.9.5.

Purpose: to provide cryptographically verifiable, portable memory continuity for AI agents. It does not prove that what an agent claims is true; it only proves that memory commits were signed by the claimed identity, and reveals whether they were modified after signing, the recorded signing timestamps, provenance relationships, and whether the chain of custody is intact.

Main capabilities:

  • Use Ed25519 to sign memory commits, with SHA-256 hash linking forming a DAG.
  • Support key rotation, and maintain identity continuity through cutoff_head reachability guarantees.
  • Encapsulate verified history into an encrypted .aleth container (scrypt + AES-256-GCM), which can be opened byte-exactly across Python, Rust, and TypeScript implementations.
  • Provide 9 CLI commands: init, commit, evidence, verify, export, import, migrate, key rotate, key revoke.
  • Provide a read-only MCP stdio bridge (python -m alethech.mcp_memory or the installed alethech-mcp); credentials and paths are provided through configuration, not as tool parameters.
  • Include a test suite with mutation protection paths, covering cryptographic primitives, JCS RFC 8785 canonicalization, signing and tamper detection, checkpoint and rollback detection, import hardening, and more.
  • Cross-language consistency verification: the Python, Rust, and TypeScript implementations use the same test vectors, and CI runs three-runtime consistency tests.

Usage:

  • Installation: pip install alethech.
  • Development or use of the portable memory skill: requires Python 3.10+ and an Agent Skills host that supports scripts; the first save automatically creates encrypted local memory, with no API key, account, LLM model download, server, or MCP configuration required; subsequent memory operations can run offline.
  • Chat capture: use the browser extension toolbar icon to capture a loaded conversation, and after review create an encrypted .aleth with a new local identity and recovery code Files; files can be carried to another device, chat, or IDE. The extension imports only on request and inserts selected context into an empty chat editor; it never sends. For any client that supports text, context.txt can be exported. MCP clients can use the local read-only memory connector. A single offline alethech.html can also open or create files, with no extension installation or account registration required.
  • Portable encrypted memory: .aleth containers can be transferred by drag and drop and may carry an encrypted operation signing key so history can continue on another device, but they do not contain root.key and recovery.key.

Use cases: AI agent workflows that need to carry verifiable memory between devices or runtimes; local-first scenarios that need to audit memory integrity and provenance; exposing verified memory context to compatible clients via MCP.

Limitations:

  • Does not prove that what an agent claims is true.
  • Cannot detect rollback without an external checkpoint.
  • Local working storage is unencrypted; only portable .aleth containers are encrypted.
  • Does not delegate permissions between agents.
  • Does not call any LLM.
  • Rendered chat capture cannot obtain provider-hidden memory or conversation history that is not loaded.
  • The protocol core is not a hosted retrieval platform; portable skills add local encrypted memory workflows and bounded lexical recall.
  • Unrelated to the old memex project; does not include Docker, automatic updates, LLM calls, or required cloud services.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools