Sgraal SDKs
Official open-source SDKs for Sgraal — vendor-neutral memory immune system for AI agents.
Each SDK wraps the public POST /v1/preflight endpoint and returns a four-band decision (USE_MEMORY / WARN / ASK_USER / BLOCK) so your agent can act on its memory only when the memory is reliable.
| SDK | Language | Install | Status | Source |
|---|---|---|---|---|
| langchain-sgraal | Python | pip install langchain-sgraal |
Production | ./langchain-sgraal/ |
| mem0-sgraal | Python | pip install mem0-sgraal |
Production | ./mem0-sgraal/ |
| openai-sgraal | Python | pip install openai-sgraal |
Production | ./openai-sgraal/ |
| crewai-sgraal | Python | pip install crewai-sgraal |
Production | ./crewai-sgraal/ |
| autogen-sgraal | Python | pip install autogen-sgraal |
Production | ./autogen-sgraal/ |
| sgraal-rag | Python | pip install sgraal-rag |
Production | ./sgraal-rag/ |
| @sgraal/mcp | TypeScript / Node | npm install @sgraal/mcp |
Production | ./mcp/ |
| llamaindex-sgraal | Python | source-available — not yet on PyPI | Beta | ./llamaindex-sgraal/ |
| haystack-sgraal | Python | source-available — not yet on PyPI | Beta | ./haystack-sgraal/ |
| semantic-kernel-sgraal | Python | source-available — not yet on PyPI | Beta | ./semantic-kernel-sgraal/ |
What is Sgraal?
Sgraal is the immune system for AI agent memory. It evaluates whether your agent's memory state is reliable enough to act on, returning a risk score and a recommended action: proceed, warn, ask the user, or block.
Learn more at sgraal.com:
- Tutorial — 5-minute walkthrough including the 3 decision bands
- API reference — full endpoint contract
- Threat model — what Sgraal catches, doesn't replace, and complements
- Zero-Knowledge preflight — /v1/preflight/zk for GDPR / HIPAA / data-residency contexts
Status legend
- Production — substantive integration with tested wrapper surface and field-tested patterns.
- Beta — thinner integration (typically <50 LOC); functional but a smaller wrapper surface. Re-classified per the project's SDK tier reframe.
License
All SDKs in this repo are licensed under Apache 2.0. See LICENSE.
All SDKs are wrappers for the paid Sgraal API. Calibrated scoring requires a Sgraal account. Get one at sgraal.com.
