Author & Creator: Rishabh Raj (@Rishabhraj06)
License: Private / Proprietary
OpenAI-compatible local HTTP bridge for the AGY CLI, with a local searchable archive of conversations and an MCP server that lets AGY search that archive as a tool.
- Node.js 22.5+ (tested with Node 24.21.0; uses built-in
node:sqliteandprocess.loadEnvFile). - The AGY CLI installed and signed in. By default, the API expects it at
~/.local/bin/agy. - No third-party npm dependencies are required.
- SQLite FTS5 must be available in the Node SQLite build.
-
Open a terminal in the project directory.
-
Create your local configuration file from the template:
Windows PowerShell:
Copy-Item .env.example .env -
Open
.envand change settings as needed. -
Start the API:
npm start
The server listens at http://127.0.0.1:8788.
GET /v1/memory/statsโ index and archive counts.GET /v1/memory/datesโ dates containing archived messages.POST /v1/memory/searchโ global full-text search.POST /v1/memory/grepโ literal substring search.POST /v1/memory/readโ read a matching message plus nearby messages.POST /v1/memory/ingestโ import a conversation.
agy mcp add --type stdio agy-memory "$(command -v node)" "$PWD/memory-mcp.mjs"
agy mcp list
