Back to Documentation

Memphora Cookbook

Practical tutorials and recipes for building with Memphora

Quick Start: Your First Memory

Learn the basics of storing and retrieving memories with Memphora.

5 min
Beginner
from memphora_sdk import Memphora

# Initialize Memphora
memory = Memphora(
    user_id="user123",
    api_key="your-api-key-here"
)

# Store your first memory
memory.store("I love Python programming")

# Search for memories
results = memory.search("What do I love?")
for mem in results:
    print(mem['content'])

Steps to Follow

  1. 1.Get your API key from the dashboard
  2. 2.Install the SDK (pip install memphora or npm install memphora)
  3. 3.Initialize Memphora with your user_id and api_key
  4. 4.Store memories using memory.store()
  5. 5.Search memories using memory.search()

Ready to Build?

Start building smarter AI applications with persistent memory today.