Registry / ai-ml / oc-piloci

oc-piloci

JSON →
library0.3.120pypypiunverified

A self-hosted multi-user LLM memory service designed for Raspberry Pi 5. Implements MCP (Model Context Protocol) for persistent memory management across sessions. Supports multiple backends (SQLite, PostgreSQL) and provides REST and MCP APIs. Current version 0.3.120, actively developed.

pip install oc-piloci
INSTALL
IMPORT
SIG · OC-PILOCI
O
oc-piloci
ai-mlpythonv0.3.120
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OCPilociClient
from piloci import OCPilociClient
from oc_piloci import OCPilociClient

Initialize client with an in-memory SQLite backend, store and retrieve memories.

import os from oc_piloci import OCPilociClient, MemoryConfig # Use environment variable for API key api_key = os.environ.get("PILOCI_API_KEY", "your-api-key") config = MemoryConfig(backend="sqlite", db_path=":memory:") client = OCPilociClient(api_key=api_key, config=config) # Store a memory client.store("user:123", "Bot: Hello!", "What did the bot say?") # Retrieve memories memories = client.retrieve("user:123", "bot greeting") print(memories)
Debug
Known issues
breakingPython 3.11 minimum; will fail with ImportError on 3.10 or lower.
fix
Upgrade to Python 3.11+.
affects: <=3.10
gotchaClient must be configured with a MemoryConfig before store/retrieve; default config may use PostgreSQL requiring external setup.
fix
Always provide a MemoryConfig with explicit backend and settings.
affects: all
deprecatedThe 'user' parameter in store() is being renamed to 'namespace' in v0.4.0.
fix
Use keyword argument 'namespace' instead of 'user' when upgrading.
affects: 0.3.x
Upgrade
Version history
0.3.120latest on PyPI · released Jun 7, 2026
Audit
Dependencies
numpyoptionalMemory embedding computations
psycopg2-binaryoptionalPostgreSQL backend support
Agent activity
9 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

oc-piloci — pip install oc-piloci · libregistry