Skip to content

Memory

Full-text search across all indexed memory and knowledge files.

bash
curl "http://localhost:3000/api/memory/search?q=database+migrations&limit=5" \
  -H "X-API-Key: your-key"

Query Parameters

ParameterTypeDefaultDescription
qstringSearch query (required)
limitinteger10Maximum results

Response

json
[
  {
    "source": "users/admin/memory/2026-03-15.md",
    "text": "## Migrations\n\nWe use sqlx for database migrations...",
    "line_start": 15,
    "line_end": 28
  }
]

Response Fields

FieldTypeDescription
sourcestringFile path relative to the data directory
textstringMatching text chunk
line_startintegerFirst line of the chunk in the source file
line_endintegerLast line of the chunk

Reindex

POST /api/memory/reindex

Rebuild the FTS5 search index. Run this after manually editing files in .starpod/db/.

bash
curl -X POST http://localhost:3000/api/memory/reindex \
  -H "X-API-Key: your-key"

Response

json
{
  "status": "ok"
}

Released under the MIT License.