memcell
Official Python SDK for MemCell—persistent cognitive memory and reasoning substrate for AI coding agents.
Installation
pip install memcell
# or
uv add memcell
# or
poetry add memcell
Quickstart
Asynchronous Client (AsyncMemCell)
import asyncio
from memcell import AsyncMemCell
async def main():
async with AsyncMemCell(api_key="mc_live_...") as memory:
# Pre-flight recall before an agent acts
recall = await memory.recall(
namespace="acme/devops",
query="how to deploy the canary pipeline"
)
print(recall.prompt_context)
# In-flight scoped execution with automatic reinforcement
devops = memory.scope("acme/devops", subject="pipeline:canary")
result = await devops.wrap_execution(
action="deploy_canary",
external_ref="ci:run:1049",
fn=lambda ctx: print("Deploying with context:", ctx.prompt_context)
)
asyncio.run(main())
Synchronous Client (MemCell)
from memcell import MemCell
memory = MemCell(api_key="mc_live_...")
recall = memory.recall(
namespace="acme/backend",
query="database connection pool configuration"
)
for statement in recall.statements:
print(f"[{statement.kind}] {statement.title} (confidence: {statement.confidence})")
OAuth 2.0 Machine-to-Machine (M2M)
from memcell import AsyncMemCell
memory = AsyncMemCell(
client_id="client_xyz",
client_secret="secret_xyz",
scope="memory:read:acme/* memory:write:acme/backend"
)
# Automatically handles token exchange and proactively refreshes before expiration!
Rate Limiting & Resilience
from memcell import AsyncMemCell
memory = AsyncMemCell(
api_key="mc_live_...",
max_retries=3,
on_rate_limit_warning=lambda warning, response: print(f"Warning: {warning}")
)
# Automatically performs jittered exponential backoff respecting server Retry-After!
License
Apache-2.0 © MemCell
Metadata
Release files for memcell 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| memcell-0.1.1.tar.gz | 12.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| memcell-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.0 kB
Release files / memcell-0.1.1.tar.gz
| Download URL | memcell-0.1.1.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
392d16f5b5a856ad8df13dff80fe4736800a2d7dcc3f9811eb8bc93e0528d8f5
|
|
BLAKE2b-256 checksum How to use checksums |
43c20081bcddea4ed6517aea531e0dd393dff64d16effeb758b771f3b3739708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 17, 2026.
Transparency logRelease files / memcell-0.1.1-py3-none-any.whl
| Download URL | memcell-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c22300ef576771136723862c200750de1884686e3fd06b004769662498605ee
|
|
BLAKE2b-256 checksum How to use checksums |
6213034913072a207bf7eac694ddfb6977b34e796a30b2ae21e018c845e878fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 17, 2026.
Transparency logSecurity for memcell 0.1.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 2 files in this release have been uploaded with provenance metadata.
Attestation for memcell-0.1.1.tar.gz
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 Sep 17, 2026.
Transparency logA 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.