Skip to main content

Local-first agentic memory SDK. SQLite-backed five-tier hierarchical schema, FTS5 search, multi-tenant, with self-learning skill detection and local memory linter. Foundation of the Sibyl Memory Plugin family.

Project description

sibyl-memory-client

Local-first agentic memory SDK. The foundation of the Sibyl Memory Plugin family.

A small Python library that gives any AI agent durable memory across sessions, stored in a SQLite database on the user's own computer. No round-trip to anyone's cloud. Organized by what kind of thing it is, not one fuzzy similarity bucket.

pip install sibyl-memory-client

Quickstart

from sibyl_memory_client import MemoryClient

memory = MemoryClient.local("~/.sibyl-memory/memory.db")

# Remember a fact (entity)
memory.set_entity("project", "atlas", {"status": "active", "owner": "jane"})

# Recall it
print(memory.get_entity("project", "atlas"))

# Record what happened (journal)
memory.write_event(acted=["deployed atlas v1.2 to staging"])

# Search across everything
results = memory.search_entities("atlas")

Why this exists

Most agent-memory products store everything on someone else's servers, treat every piece of information the same way, and quietly forget the important things when you need them most. This SDK solves all three:

  • Local-first. Memory lives in a SQLite database in ~/.sibyl-memory/. No cloud round-trip for any operation.
  • Organized by kind. Five separate tiers: state, entities, journal, reference, archive: each recalled the way it should be recalled.
  • Benchmarked. The Sibyl Memory Plugin (built on this SDK) sits at #2 globally on the LongMemEval Oracle benchmark when paired with Claude Opus 4.6. Methodology open at blog.sibylcap.com/longmemeval-v2.

The five tiers

Intent Tier API
What you're working on right now HOT state set_state(key, body) / get_state(key)
Things the agent knows about WARM entities set_entity(kind, name, body) / get_entity
What happened, in time order COLD journal write_event(...) / read_events(...)
Documents you look up by name REFERENCE set_reference(key, body) / get_reference
Frozen things, kept but out of the way ARCHIVE archive_entity(kind, name)
Search across everything FTS5 search_entities(query)

What's in v0.4.x

  • The full five-tier memory model and the API surface above.
  • Cross-tier FTS5 search across entities, state, reference, and journal tiers.
  • Multi-tenant isolation: one machine can hold separate memory for separate identities.
  • Self-learning module (paid-tier): the agent watches your patterns and proposes reusable skills.
  • Memory linter (paid-tier): a health check on the local database.
  • Tier gating: free-tier callers get clear errors pointing at the upgrade page; paid-tier callers get full access.
  • Uniform millisecond timestamp precision across all tiers (v0.4.3).

Tier model

Free tier is generous on purpose. You can build real things with it. Paid plans add self-learning, the linter, and remove the 2 MB local cap. Full plan comparison at docs.sibyllabs.org/memory/tiers.

Documentation

Full docs: docs.sibyllabs.org/memory/. Install guide: docs.sibyllabs.org/memory/install.

License

MIT. Published on PyPI at pypi.org/project/sibyl-memory-client.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sibyl_memory_client-0.4.5.tar.gz (64.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sibyl_memory_client-0.4.5-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file sibyl_memory_client-0.4.5.tar.gz.

File metadata

  • Download URL: sibyl_memory_client-0.4.5.tar.gz
  • Upload date:
  • Size: 64.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sibyl_memory_client-0.4.5.tar.gz
Algorithm Hash digest
SHA256 028699ba2b4b7b0e4e7345675ef8c4faa8c26bf1cfe0d353e0d2512454c33d38
MD5 63cc4df4b7c30a394deb3c18e5ab6e3f
BLAKE2b-256 db46fa2aa416d7a486af9bdcafee8c66e3ca6b55a9238ac124b1fb42380f3e7e

See more details on using hashes here.

File details

Details for the file sibyl_memory_client-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for sibyl_memory_client-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6bf7b724ca75f76b61b782daa761c5ed562314100e8541a394c812af205fd1f1
MD5 fb1c1b6d45eb3a55d47bb55238a41886
BLAKE2b-256 585d9dd561906260a99660c0a484f89c48b7ac84384e15940e7352c87d082303

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page