You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idea: Transparent memory layer via OpenAI-compatible proxy
I've been experimenting with adding semantic long-term memory to nanobot without touching the core — by inserting an OpenAI-compatible memory proxy between nanobot and the LLM provider.
Architecture
nanobot (baseUrl: localhost:8100/v1)
|
v
Memory Proxy (e.g. agent-cli memory proxy)
| 1. Intercepts /v1/chat/completions
| 2. Embeds user message -> ChromaDB vector search
| 3. Injects relevant memories into system prompt
| 4. Forwards augmented request to real LLM
| 5. Extracts new facts from response -> stores as markdown
v
LLM Provider (OpenRouter, OpenAI, etc.)
The proxy is agent-cli (pip install "agent-cli[memory]"). It stores memories as human-readable markdown files + ChromaDB for vector search, with built-in git versioning. Embeddings can run locally via Ollama (nomic-embed-text) so no extra API cost.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Idea: Transparent memory layer via OpenAI-compatible proxy
I've been experimenting with adding semantic long-term memory to nanobot without touching the core — by inserting an OpenAI-compatible memory proxy between nanobot and the LLM provider.
Architecture
The proxy is agent-cli (
pip install "agent-cli[memory]"). It stores memories as human-readable markdown files + ChromaDB for vector search, with built-in git versioning. Embeddings can run locally via Ollama (nomic-embed-text) so no extra API cost.Setup
agent-cli memory proxy \ --memory-path ~/.nanobot/workspace/memory-proxy \ --openai-base-url https://openrouter.ai/api/v1 \ --embedding-base-url http://localhost:11434/v1 \ --embedding-model nomic-embed-text \ --port 8100Then in nanobot config:
{ "baseUrl": "http://localhost:8100/v1", "model": "google/gemini-2.5-flash-preview" }What works
Concerns
Questions
Would love to hear if anyone has experimented with similar setups.
Beta Was this translation helpful? Give feedback.
All reactions