sealedmind — Python SDK
Encrypted, capability-gated AI memory on 0G — Python edition.
pip install sealedmind
import asyncio
from sealedmind import SealedMind
async def main():
client = SealedMind(api_key="sm_...") # get one at sealedmind.io/developer
mind = await client.create_mind("my-agent")
await client.remember(mind.id, content="user prefers vegetarian meals")
result = await client.recall(mind.id, query="what does the user prefer to eat?")
print(result.answer)
print("attested in:", result.attestation.enclave)
await client.aclose()
asyncio.run(main())
Or just hit the TEE inference gateway directly (no Mind needed):
from sealedmind import SealedMind
client = SealedMind(api_key="sm_...")
content, att = await client.chat(
[{"role": "user", "content": "Summarize the patient's recent activity"}]
)
print(content)
print(att.chat_id, att.verified, att.enclave)
Endpoints exposed
| Method | What it wraps |
|---|---|
client.create_mind(name) |
POST /v1/minds |
client.list_minds() |
GET /v1/minds |
client.get_mind(id) |
GET /v1/minds/:id |
client.remember(id, content=...) |
POST /v1/minds/:id/remember |
client.recall(id, query=...) |
POST /v1/minds/:id/recall |
client.grant_capability(id, ...) |
POST /v1/minds/:id/capabilities |
client.list_capabilities(id) |
GET /v1/minds/:id/capabilities |
client.revoke_capability(id, capId) |
DELETE /v1/minds/:id/capabilities/:capId |
client.audit_log(id) |
GET /v1/minds/:id/audit |
client.chat(messages) |
POST /v1/inference/chat |
client.verify_attestation(chatId) |
POST /v1/attestations/verify |
Already on 0G Memory?
Use the addon instead — drop-in for KVStorageInterface:
pip install evermemos-sealedmind
export MEMSYS_ENTRYPOINTS_FILTER=core,sealedmind
export KV_STORAGE_TYPE=sealedmind
Auth
Get an API key:
- Visit
sealedmind.io/developer - Connect your wallet, sign a SIWE message
- Copy the
sm_*key - Pass it to
SealedMind(api_key=...)or setSEALEDMIND_API_KEYenv var
License
MIT — see the monorepo at https://github.com/SealedMind/SealedMindMonoRepo
Metadata
Release files for sealedmind 0.1.0
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 | Actions |
|---|---|---|---|---|
| sealedmind-0.1.0.tar.gz | 6.2 kB | Without provenance | Details for sealedmind-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sealedmind-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sealedmind-0.1.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / sealedmind-0.1.0.tar.gz
| Download URL | sealedmind-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0912721f455f4897b4a35fd0be1497dde75cae8cf6bf3d20da1db49a2959f6cd
|
|
BLAKE2b-256 checksum How to use checksums |
92da340b72e893d830299998722d4f272cd81245f4f76d4076f95a3eeb56876c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / sealedmind-0.1.0-py3-none-any.whl
| Download URL | sealedmind-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a9e043ba5c2b6eb9c7018e4a4b529b80a22b68d8fa40ecc0af1f7f02a353bb4
|
|
BLAKE2b-256 checksum How to use checksums |
9dc0e4918c9e0864768be570a6d26321a30fb3507fe895ebf61e15ecf51daed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for sealedmind 0.1.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.