Skip to main content

Matriosha

Encrypted, auditable, model-agnostic, local-first AI memory for agents.

Hold AI accountable. Own your data.

PyPI Python License

Install

Matriosha supports Python 3.11, 3.12, 3.13, and 3.14.

python3 -m pip install matriosha

If your environment already points pip to Python 3.11+, this also works:

pip install matriosha

Quickstart

Initialize an encrypted local vault:

matriosha --mode local vault init

Remember text:

matriosha --mode local memory remember "Important launch context" --tag launch

Remember a file:

matriosha --mode local memory remember --file ~/Documents/agent-notes/launch-context.md --tag launch

Search semantically:

matriosha --mode local memory search "What is the launch motto?"

Verify the audit trail and vault integrity:

matriosha audit verify
matriosha vault verify
matriosha vault verify --deep

Connect an agent locally

Generate a local-only token:

matriosha token generate my-agent --local --scope write --expires 30d

Connect a local desktop agent:

matriosha agent connect --local --name my-agent --kind desktop --token <token>

List local agents:

matriosha agent list --local

Treat generated tokens like passwords. Tokens are shown once.

Optional custom vault location

Set MATRIOSHA_HOME before initializing a vault if you want a predictable local memory directory:

export MATRIOSHA_HOME=./memory
matriosha --mode local vault init

Local and managed modes

Local mode is offline-first and does not require authentication.

Managed mode is optional and is designed for cloud-backed operational workflows such as login, workspace, sync, policy, quota, token workflows, and agent workflows.

matriosha auth login
matriosha --mode managed status

For local-only token and agent setup, use --local on token and agent commands.

Why Matriosha?

AI agents are gaining longer memories, but many memory systems are opaque, vendor-bound, or difficult to verify.

Matriosha keeps AI context outside the model provider and makes it:

  • Encrypted: vault data is protected with modern cryptography.
  • Auditable: local audit events and vault integrity can be verified.
  • Model-agnostic: memory is not tied to one AI vendor.
  • Local-first: start offline, then opt into managed workflows when needed.
  • Agent-ready: local, managed, desktop, server, and CI agent workflows are supported.

Security model

  • Argon2id passphrase hardening
  • AES-256-GCM authenticated encryption
  • SHA-256 and Merkle-root integrity checks
  • Local audit verification
  • Ed25519 signature-ready workflows
  • Local-only tokens for local agent access

Requirements

  • Python >=3.11,<3.15
  • A Unix-like shell for the examples, such as Terminal on macOS, Linux shells, or WSL/Git Bash on Windows

Agent setup guide

For interactive VM or local-machine setup, use the public JSON guide:

This guide is designed so AI agents can help users install, initialize, verify, and connect Matriosha safely.

Metadata

Release files for matriosha 2.0.5

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

Source distribution (sdist)

Source distribution for matriosha 2.0.5
File Size Uploaded Provenance Actions
matriosha-2.0.5.tar.gz 175.7 kB Without provenance Details for matriosha-2.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matriosha 2.0.5
File Interpreter ABI Platform Actions
matriosha-2.0.5-py3-none-any.whl Python 3 none any Details for matriosha-2.0.5-py3-none-any.whl

Total release size: 413.2 kB

Release files / matriosha-2.0.5.tar.gz

Download URL matriosha-2.0.5.tar.gz
Size 175.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f6322430f9daf1961bd58ee03b1ed919f6076dd28e94c82cf449f7e55462453
BLAKE2b-256 checksum
How to use checksums
30a88b8d707cc360509d620455221c6bf12f9d652fe5be2de376b8bf9dacc139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / matriosha-2.0.5-py3-none-any.whl

Download URL matriosha-2.0.5-py3-none-any.whl
Size 237.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc6dc829360617c76e8a3bfeec8bd69634650b53c7a762b1fb33502290c6058b
BLAKE2b-256 checksum
How to use checksums
47723bf1f2fab8c84201b2aab80999b7b617d0548d9e1a28598ec77eccc30a72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for matriosha 2.0.5

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