Find a file
sohamd22 91a2aa5fdb create memory adding option in vercel sdk (#484)
### TL;DR

Added support for automatically saving user messages to Supermemory.

### What changed?

- Added a new `addMemory` option to `wrapVercelLanguageModel` that accepts either "always" or "never" (defaults to "never")
- Implemented the `addMemoryTool` function to save user messages to Supermemory
- Modified the middleware to check the `addMemory` setting and save the last user message when appropriate
- Initialized the Supermemory client in the middleware to enable memory storage

### How to test?

1. Set the `SUPERMEMORY_API_KEY` environment variable
2. Use the `wrapVercelLanguageModel` function with the new `addMemory: "always"` option
3. Send a user message through the model
4. Verify that the message is saved to Supermemory with the specified container tag

### Why make this change?

This change enables automatic memory creation from user messages, which improves the system's ability to build a knowledge base without requiring explicit memory creation calls. This is particularly useful for applications that want to automatically capture and store user interactions for future reference.
2025-10-11 03:45:06 +00:00
.github/workflows feat: ai sdk language model withSupermemory (#446) 2025-10-10 05:10:03 +00:00
apps Merge pull request #475 from Mikethebot44/feature/add-memory-dialog-ux 2025-10-10 20:40:52 -07:00
packages create memory adding option in vercel sdk (#484) 2025-10-11 03:45:06 +00:00
.gitignore fix: raycast org selection based api key creation (#447) 2025-10-03 07:56:41 +00:00
.npmrc New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00
biome.json feat: layout design with theme improvements (#443) 2025-10-01 21:59:54 +00:00
bun.lock feat: ai sdk language model withSupermemory (#446) 2025-10-10 05:10:03 +00:00
CLAUDE.md change /memories to /documents, remove unwanted dependency, biome format 2025-09-15 19:02:24 -07:00
CONTRIBUTING.md fix(docs): repo links and spell checks 2025-10-08 17:06:53 -07:00
LICENSE Update LICENSE 2025-08-16 20:01:44 -07:00
logo.svg chore: new README with archival notice 2025-05-18 18:54:06 +05:30
package.json feat: ai sdk language model withSupermemory (#446) 2025-10-10 05:10:03 +00:00
README.md fix(docs): repo links and spell checks 2025-10-08 17:06:53 -07:00
turbo.json Enhanced Text Editor and format fixes with biome (#371) 2025-08-21 08:40:44 -07:00

supermemory Logo
supermemory

Features

Core Functionality

How do i use this?

Go to app.supermemory.ai and sign into with your account

  1. Start Adding Memory with your choice of format (Note, Link, File)
supermemory
  1. You can also Connect to your favourite services (Notion, Google Drive, OneDrive)
supermemory
  1. Once Memories are added, you can chat with Supermemory by clicking on "Open Chat" and retrieve info from your saved memories
supermemory
  1. Add MCP to your AI Tools (by clicking on "Connect to your AI" and select the AI tool you are trying to integrate)
supermemory

Support

Have questions or feedback? We're here to help:

Contributing

We welcome contributions from developers of all skill levels! Whether you're fixing bugs, adding features, or improving documentation, your help makes supermemory better for everyone.

Quick Start for Contributors

  1. Fork and clone the repository
  2. Install dependencies with bun install
  3. Set up your environment by copying .env.example to .env.local
  4. Start developing with bun run dev

For detailed guidelines, development setup, coding standards, and the complete contribution workflow, please see our Contributing Guide.

Ways to Contribute

  • 🐛 Bug fixes - Help us squash those pesky issues
  • ✨ New features - Add functionality that users will love
  • 🎨 UI/UX improvements - Make the interface more intuitive
  • ⚡ Performance optimizations - Help us make supermemory faster

Check out our Issues page for good first issue and help wanted labels to get started!

Updates & Roadmap

Stay up to date with the latest improvements: