Mnemom Gateway
The Mnemom Gateway is a transparent AI gateway that sits between your application and any LLM provider. It provides the full Mnemom trust stack out of the box: verifiable AP-Traces, real-time AIP integrity checks, policy enforcement from the alignment card’scapabilities and enforcement sections, Safe House protection configured via the protection card, and verification against the agent’s alignment card. Your prompts and responses pass through unchanged. Your API keys never leave your machine.
Authenticate
Log in to your Mnemom account:This opens a browser-based login flow and stores your auth token in
~/.mnemom/auth.json.Your provider API keys are not sent to Mnemom. Only SHA-256 hashes are used to identify your agent. The hash cannot be reversed to recover your key.
Make an API call
Use the gateway URL instead of the provider’s direct URL. Include the The gateway supports all three providers at their standard paths:
x-mnemom-agent header to name your agent — it will be auto-created on first call. No registration step needed.| Provider | Gateway Path | Direct Equivalent |
|---|---|---|
| Anthropic | gateway.mnemom.ai/anthropic/* | api.anthropic.com/* |
| OpenAI | gateway.mnemom.ai/openai/* | api.openai.com/* |
| Gemini | gateway.mnemom.ai/gemini/* | generativelanguage.googleapis.com/* |
View traces
After making API calls through the gateway, view what was traced:Use
Output
mnemom logs --agent my-agent -l 20 to show more entries.View your alignment card
See the alignment card assigned to your agent:Customize it by publishing your own card:
Explore the dashboard
Your agent’s data is available at mnemom.ai/dashboard once you are logged in. The dashboard shows:
- Conscience timeline — A chronological view of every trace, integrity checkpoint, and enforcement action
- Alignment card — Your agent’s declared values and boundaries
- Integrity scores — AIP verdict history and trend analysis
- Drift alerts — Notifications when behavior diverges from declared alignment
- Enforcement log — Records of nudges and blocks (if enforcement is enabled)
Named agents
If you run multiple agents behind the same API key, use thex-mnemom-agent header to give each one a distinct identity. The provider path stays unchanged — the gateway hashes SHA256(apiKey + '|' + agentName) to derive a unique agent ID.
Supported providers
| Provider | Models | Thinking / AIP Support | Auth Header |
|---|---|---|---|
| Anthropic | Claude Opus 4.6, Opus 4.5, Sonnet 4.5 | Full (thinking blocks analyzed directly) | x-api-key |
| OpenAI | GPT-5.2, GPT-5.2 Pro, GPT-5 | Via reasoning summaries (reduced confidence) | Authorization: Bearer |
| Gemini | Gemini 2.5 Pro, Gemini 3 Pro | Full (thought parts analyzed directly) | x-goog-api-key |
AIP compatibility
| Provider / Model | AIP Support | Method |
|---|---|---|
| Anthropic reasoning models (Opus, Sonnet) | Full | Thinking blocks analyzed directly |
| OpenAI GPT-5 Thinking series | Partial | Reasoning summaries (reduced confidence) |
| Gemini 2.5/3 with thinking | Full | Thought parts analyzed directly |
| Non-reasoning models | Tracing only | Synthetic clear verdict |
| Legacy OpenAI (o3/o4-mini) | Unsupported | Reasoning encrypted |
What gets traced
The Mnemom Gateway builds AP-Traces that record:- Action — What the agent did (type, name, category)
- Decision — What alternatives were considered and why one was selected
- Escalation — Whether the agent escalated to a human and why
- Verification — Whether the trace is consistent with the agent’s declared Alignment Card
- Integrity — Real-time AIP analysis of thinking blocks, with verdict (
clear/review_needed/boundary_violation)
What is NOT stored
Enforcement modes
The Mnemom Gateway supports three enforcement modes when an integrity violation is detected:| Mode | Behavior |
|---|---|
observe | Detect violations, record them, take no action (default) |
nudge | Detect violations, inject feedback into the agent’s next request via system prompt. The agent sees it and can self-correct. |
enforce | Hard block with HTTP 403 for non-streaming requests. Falls back to nudge for streaming. |
Next steps
- View protocol overview to understand how AAP, AIP, and CLPI work together
- Set up policy enforcement to define governance rules for your agent’s tool usage
- Explore concepts to understand Alignment Cards, traces, and integrity
- CLPI overview to understand the governance layer (policy enforcement, trust recovery, on-chain anchoring)
- Read about enforcement for detailed enforcement mode documentation
- Self-host if you need full data residency control