Skip to main content

agentmemory-native

AgentMemory for Python, without installing .NET: the AgentMemory library compiled with Native AOT into one shared library, with a small Python binding (ctypes, standard library only). It recalls a person's memories from Neo4j and, in the writing profiles, turns what they say into facts and preferences.

It is the memory behind a voice assistant: a speech server recalls before each reply and saves after the person's turn, within a time limit it sets (about 100 ms a recall with a local embedding model).

Requirements

  • CPython 3.10 or newer on one of: Linux x86-64 or ARM64 with glibc 2.34 or newer (Ubuntu 22.04+, Debian 12+), macOS on Apple silicon, or Windows x64. Each wheel carries the library built and tested on that platform.
  • Neo4j 5.26 with the AgentMemory schema.
  • An OpenAI-compatible embeddings endpoint (for example Ollama with bge-m3), and for writing, an OpenAI-compatible chat model.

Install

pip install agentmemory-native

Recall

import agentmemory_native as am

config = {
    "schemaVersion": 1,
    "profile": "read_only",
    "owner": {"mode": "fixed", "id": "user-42"},
    "store": {"uri": "bolt://localhost:7687", "username": "neo4j", "password": "your-password"},
    "embedding": {"dimensions": 1024, "model": "bge-m3",
                  "endpoint": {"url": "http://localhost:11434/v1/embeddings"}},
}

with am.MemoryClient(config) as memory:
    result = memory.get_context(session_id="conversation-1", query="Where do I work?",
                                max_facts=10, max_preferences=5, min_score=0.7,
                                max_entities=10, max_relationships=10, time_windows=True)
    for fact in result.facts:
        print(fact.subject, fact.predicate, fact.object)

Recall reads one owner's memory only. AsyncMemoryClient offers the same calls for asyncio.

Remember

With the explicit_write or learning profile, a writer (any OpenAI-compatible chat model) and a state directory for the write journal, memory.remember(source_id=..., session_id=..., text=..., occurred_at=...) saves what the person said and returns a receipt: what was kept, and whether recall can find it yet. Forgetting and erasing an owner are calls of their own.

The contract

Requests and results are JSON documents, versioned (ABI 1, schema version 1). The full contract, the error codes and the configuration are in native/CONTRACT.md.

Licence

MIT. The wheel carries the licences of the packages compiled into the library (licenses/THIRD-PARTY-NOTICES.txt) and a manifest of the library's build (agentmemory_native/_native/MANIFEST.json); the binding refuses a library whose bytes differ from it.

Metadata

Release files for agentmemory-native 0.2.1

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

Built distributions (wheels)

Table of built distributions (wheels) for agentmemory-native 0.2.1
File Actions
agentmemory_native-0.2.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for agentmemory_native-0.2.1-py3-none-win_amd64.whl
agentmemory_native-0.2.1-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for agentmemory_native-0.2.1-py3-none-manylinux_2_34_x86_64.whl
agentmemory_native-0.2.1-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for agentmemory_native-0.2.1-py3-none-manylinux_2_34_aarch64.whl
agentmemory_native-0.2.1-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details for agentmemory_native-0.2.1-py3-none-macosx_12_0_arm64.whl

Total release size: 37.7 MB

Release files / agentmemory_native-0.2.1-py3-none-win_amd64.whl

Download URL agentmemory_native-0.2.1-py3-none-win_amd64.whl
Size 9.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1612c5554579affff7097e925151e6a7eab5af76842bfc1936f18c8bbedfd6e9
BLAKE2b-256 checksum
How to use checksums
0249fd37f30fef6161744cb5b9d1e48c83a9939c599fc6205098ed30d1191daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / agentmemory_native-0.2.1-py3-none-manylinux_2_34_x86_64.whl

Download URL agentmemory_native-0.2.1-py3-none-manylinux_2_34_x86_64.whl
Size 10.0 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cc22e4d52f7f5ee83fd95ce723c009b68645b2b47478fd48ab2ca6d70449f474
BLAKE2b-256 checksum
How to use checksums
b855f6ec275fd1db3cd0bdf412a0e0ac687485e801aa3820fb2e3511c8da5128
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / agentmemory_native-0.2.1-py3-none-manylinux_2_34_aarch64.whl

Download URL agentmemory_native-0.2.1-py3-none-manylinux_2_34_aarch64.whl
Size 9.4 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0f5be264d08b27c7520d35d2f623b44629450c3342a89383ed9973fbd32eda2c
BLAKE2b-256 checksum
How to use checksums
a6fbc18351e4538fce098203a70e66ce9a1a0c9b86a5bfa7b347b6d951c82bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / agentmemory_native-0.2.1-py3-none-macosx_12_0_arm64.whl

Download URL agentmemory_native-0.2.1-py3-none-macosx_12_0_arm64.whl
Size 9.0 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
10d1f543781a255fc977cda3e26e2d17e0b8bb400bd8ca9c24fce091813151c4
BLAKE2b-256 checksum
How to use checksums
c21ecfc7091870dac8c8dd744524298c5ad0fafde0f6f52c79700fcd5d51d638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for agentmemory-native 0.2.1

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for agentmemory_native-0.2.1-py3-none-win_amd64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

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