AI MEMORY IN 2 LINES OF CODE
Add persistent memory, chat history, user profiles, records, and live context to your AI app without building memory infrastructure yourself.
Try the live demo to watch memory persist across sessions. Works with OpenAI, Anthropic, and Gemini.
My name
Try Live Demo
Type a fact about yourself and open the demo again to see memory persist across sessions.
Preview Code
cURL
# Example cURL request
Node.js
const mnx = new Mnexium(
openai: ProviderConfig(api_key=os.environ["OPENAI_KEY"]),
model="gpt-4o-mini",
learn=true,
recall=true,
history=true,
);
const alice = mnx.subject("user_123");
const res = await alice.process("My name is Alex");
See the difference
Without Mnexium
Request 1
{ "messages": [{ "role": "user", "content": "I'm allergic to peanuts and vegetarian" }] }
Request 2 — new session
{ "messages": [{ "role": "user", "content": "Suggest dinner recipes" }] }
Response
“Here are some recipes: Chicken stir-fry, Pad Thai with shrimp…”
Recipes contain meat & peanuts
With Mnexium
Request 1
{ "messages": [{ "role": "user", "content": "I'm allergic to peanuts and vegetarian" }], "mnx": { "learn": true } }
Request 2 — new session
{ "messages": [{ "role": "user", "content": "Suggest dinner recipes" }], "mnx": { "recall": true } }
Response
“Since you’re vegetarian and allergic to peanuts, here are safe recipes: Mushroom risotto, Veggie pad thai with cashews…”
Your AI Doesn’t Remember.
Now It Can.
Mnexium adds memory and context across sessions, users, and models.
Your Apps & Agents
Mnexium sits between your app and model, adding memory and context to every request.
Give Your AI a Memory
- Memory: Learns facts, preferences & context across sessions.
- Context: Injects history, records & live data directly to your AI.
Same memory layer across all models
Drop-in integration
Add Memory to Any AI in 2 Lines
Your AI stays the same. It just starts remembering.
Advanced usage
cURL
# Search memories by semantic similarity
curl -G "mnexium.com/api/v1/memories/search" \
-H "x-mnexium-key: $MNX_KEY" \
--data-urlencode "subject_id=user_123" \
--data-urlencode "q=favorite food"
Node.js
const alice = mnx.subject("user_123");
const results = await alice.memories.search("favorite food");
Python
alice = mnx.subject("user_123")
results = alice.memories.search("favorite food")
Pricing Plans
Free
- Price: $0
- Up to ~100 users
- Requests: 10,000 / month
- AI Memory: 1,000 / month
Builder
- Price: $29/month
- Launch production AI apps that remember thousands of users
- Requests: 250,000 / month
- AI Memory: 7,500 / month
Growth
- Price: $149/month
- Designed for scaling apps with consistent traffic
- Requests: 2,000,000 / month
- AI Memory: 100,000 / month
Enterprise
- Price: Custom
- For high-volume teams with custom requirements
More than Memory
Mnexium gives your AI memory, state, integrations, and structured context, everything it needs to build real applications.
Why teams choose Mnexium
| Mnexium | DIY Stack | Vector DB | LLM | |
|---|---|---|---|---|
| Time to build | Minutes | Weeks+ | Days | None |
| Completeness | Full | Partial | Partial | None |
| Memory | ✓ | ✓ | ✗ | ✗ |
| Persistent memory | ✓ | ✓ | ✗ | ✗ |
| Fact extraction | ✓ | ✗ | ✗ | ✗ |
| Semantic recall | ✓ | ✗ | ✓ | ✗ |
| Application Layer | ✓ | ✓ | ✗ | ✗ |
| Chat continuity | ✓ | ✗ | ✗ | ✗ |
| Platform | ✓ | ✗ | ✗ | ✗ |
Frequently Asked Questions
How do I integrate Mnexium with my existing code?
Install our Node.js SDK (@mnexium/sdk) or Python SDK (mnexium) or just add an mnx object to your existing cURL/HTTP calls. We support OpenAI's Chat Completions and Responses APIs across all approaches.
What is a memory and how does versioning work?
A memory is a structured record. When new memories conflict with existing ones, the old memory is marked as 'superseded' while the new one becomes 'active'. You can visualize the full evolution chain with Memory Graphs.
What are User Profiles?
Profiles are defined and AI-generated summaries of a user. They provide an overview of preferences, facts, and context—useful for personalizing responses without loading all individual memories.