# Give Hermes Agent a Long-Term Memory on Upstash Redis

DevFeed: [Give Hermes Agent a Long-Term Memory on Upstash Redis](<https://devfeed.tech/articles/give-hermes-agent-a-long-term-memory-on-upstash-redis-129331.md>)

Original publisher: [Read original article](<https://upstash.com/blog/hermes-agent-memory-upstash-redis>)

Author: Cahid Arda Oz

Published: 2026-11-06T00:00:00Z

Content type: article

Language: en

Sources: [Upstash](<https://devfeed.tech/sources/upstash.md>)

Topics: [hermes-agent](<https://devfeed.tech/topics/hermes-agent.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [chat](<https://devfeed.tech/tags/chat.md>), [free](<https://devfeed.tech/tags/free.md>), [hermes](<https://devfeed.tech/tags/hermes.md>), [hermes-agent](<https://devfeed.tech/tags/hermes-agent.md>), [memory](<https://devfeed.tech/tags/memory.md>), [redis](<https://devfeed.tech/tags/redis.md>), [search](<https://devfeed.tech/tags/search.md>)

## AI overview

upstash-hermes-memory extends Hermes Agent's small built-in memory files by storing memories and session transcripts in Upstash Redis. Before each turn it uses hybrid search to add the three most related memories; after the turn it appends new messages to the transcript. Chat transcripts can be searched with fuzzy full-text matching, while Redis Search creates embeddings without a separate embedding model or vector database. Built-in memory remains active and is synchronized to Redis when facts are added, corrected, or removed. The integration uses one Redis Search index, so it can run on Upstash's Free plan; sharing the database with the TypeScript AgentKit integration requires a plan that allows more than one index. Setup requires a Redis REST URL and token, entered through `hermes memory setup` or configured manually after installing the Python package. The article says the main agent writes memory, while subagents, cron jobs, and context flushes can read it.

## Source excerpt

upstash-hermes-memory gives Hermes Agent long-term memory and searchable chat history on Upstash Redis. It recalls related memories on every turn and runs on the Free plan.