agent-memory helps an AI app remember what happened before. It keeps chat history, stores facts, and helps the app find past context when needed. It uses TypeScript, SQLite, vector search, and fact extraction to manage memory in a simple way.
This project fits apps that need:
- Conversation history
- Long-term memory
- Semantic search
- Fact storage
- Context retrieval
- Support for tools like OpenAI, Anthropic, and LangChain
Use this on a Windows PC with:
- Windows 10 or Windows 11
- A modern browser
- Internet access
- About 200 MB of free disk space
- Permission to download and open files
If you plan to use it inside your own app, you may also need:
- Node.js 18 or later
- npm or pnpm
- SQLite support
Go to the project page here:
If the page gives you a downloadable package or release file, download it to your PC, then open the file or place it in your project folder as needed. If you are using it as a library, follow the steps below to add it to your app.
-
Open your project folder.
-
Open Command Prompt or PowerShell.
-
Run:
npm install agent-memory
-
Wait for the install to finish.
-
Add the library to your app code.
-
Download the project from the link above.
-
Unzip the file if needed.
-
Open the folder in File Explorer.
-
Open Command Prompt in that folder.
-
Run:
npm install
-
Run the project with the command shown in the repo files, such as:
npm run dev
or
npm start
agent-memory keeps data in SQLite, which stores information in one local file on your machine. That makes it easy to keep chat history and saved facts in one place.
It can store:
- Recent messages
- Long-term facts
- Searchable embeddings
- Agent notes
- Context for later use
This setup works well for local apps and desktop tools that need fast access to old data.
When your app asks a question, agent-memory can search stored memory and find the most useful items. It uses vector search to match meaning, not just exact words.
That helps with:
- Finding past chat details
- Pulling up related facts
- Reusing old context
- Keeping responses on topic
agent-memory can read conversation text and pull out useful facts. For example, if a user says they live in Berlin or prefer short replies, the library can save that for later use.
This helps your app remember:
- User names
- Preferences
- Important dates
- Goals
- Project details
The goal is to keep memory useful without making the app repeat the same questions.
- Install the library in your project.
- Create a memory store.
- Save new chat messages.
- Extract facts from user text.
- Search memory when you need old context.
- Send the best matches back to your AI model.
A chatbot can use agent-memory to do this:
- A user says they run a small shop.
- The app saves that fact.
- The user asks a follow-up question two days later.
- The app searches memory.
- The chatbot remembers the shop detail and gives a better answer.
This is useful for:
- Customer support bots
- Personal assistants
- Research tools
- Knowledge apps
- Agent workflows
This repository is related to:
- AI agents
- Memory systems
- Chatbots
- Embeddings
- Knowledge bases
- RAG
- Semantic search
- SQLite
- TypeScript
- OpenAI
- Anthropic
- LangChain
agent-memory is meant for local and app-level storage. It keeps memory in a form your app can use later. If you add your own user data, store it with care and keep access limited to the right people.
You can connect agent-memory to many AI workflows. It works well when your app needs:
- Short chat memory for the current session
- Long-term memory across sessions
- Fact lookup before each response
- Search by meaning instead of exact text
- A simple local database layer
If you want the fastest path on Windows:
- Open the link at the top.
- Download the project from GitHub.
- Install Node.js if you do not have it.
- Open the folder in Command Prompt.
- Run npm install.
- Run the project command in the repository.
- Connect it to your app or test script.
If Windows does not open the file or folder:
- Right-click the folder and choose Open in Terminal
- Check that Node.js is installed
- Make sure you are in the correct folder
- Try running the command again
- Re-download the project if the file looks broken
Use agent-memory when you want an AI app to:
- Remember past chats
- Save facts from user messages
- Search old context
- Keep answers steady across sessions
- Use local storage instead of a remote service
For most Windows users, the process is:
- Open the GitHub page.
- Get the source or release package.
- Unzip the files.
- Install the needed tools.
- Run the setup command.
- Start the app or link the library into your project.
After download, you may see files like:
- package.json
- README.md
- src
- dist
- tsconfig.json
- SQLite-related files
These files help the project build and run in a TypeScript setup.
The usual flow is:
- User sends a message.
- The app stores the message.
- The app pulls out key facts.
- The app searches older memory.
- The app sends the best context to the model.
- The model gives a better reply.
This keeps the app from acting like every message is new.
Open the GitHub page, download the project, and run it on your Windows PC from the files in the repository