Skip to content

Persistent memory for any AI model. One API for ChatGPT, Claude, Gemini, Grok, and 90+ models.

License

Notifications You must be signed in to change notification settings

John-Rood/memoryrouter-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

MemoryRouter

Persistent memory for any AI model. One API that adds long-term memory to ChatGPT, Claude, Gemini, Grok, and 90+ other models.

🌐 Homepage · 📚 Documentation · 🎮 Dashboard


Quick Start

1. Get your Memory Key

Sign up at memoryrouter.ai and grab your memory key from the dashboard.

2. Make a request

curl https://api.memoryrouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MEMORY_KEY" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Remember that my favorite color is blue."}]
  }'

3. It remembers

curl https://api.memoryrouter.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MEMORY_KEY" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "What is my favorite color?"}]
  }'

The AI now remembers your favorite color is blue — across sessions, devices, and even different models.


Features

  • Drop-in replacement — Works with your existing code, just change the base URL
  • Works with any model — OpenAI, Anthropic, Google, xAI (90+ models)
  • Automatic memory — No manual embedding or retrieval code
  • Cross-model memory — Start with GPT, continue with Claude
  • Bring your own keys — Use your existing API keys, we just add memory

Supported Providers

Provider Prefix Example Models
OpenAI openai/ gpt-4o, gpt-4-turbo, o1, o3
Anthropic anthropic/ claude-sonnet-4, claude-opus-4
Google google/ gemini-2.0-flash, gemini-2.5-pro
xAI x-ai/ grok-2, grok-3

See the full model list in our docs.


Use Cases

  • AI Assistants — Build assistants that remember user preferences
  • Customer Support — Bots that know customer history
  • Personal AI — Apps that learn and adapt over time
  • Multi-session Apps — Maintain context across conversations

Links


License

MIT

About

Persistent memory for any AI model. One API for ChatGPT, Claude, Gemini, Grok, and 90+ models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published