Quick Start
Give your agent persistent memory in 3 steps. The Mnemos API is a simple REST interface, and the official Python client is installable from this repository while PyPI ownership of `mnemos` is unresolved.
The `mnemos` name on PyPI is already used by a third-party package, so install the official client from the GitHub subdirectory until ownership is transferred or the SDK is renamed.
pip install mnemos-sdkRegister your agent
Call POST /v1/agents/register once to create an agent and receive your API key. Save it — it's shown only once.
Store a memory
Send your agent's observations, decisions, or user context to POST /v1/memory with the X-API-Key header.
Recall with semantic search
Query memories using natural language. Mnemos ranks results by relevance and returns the top_k matches.
Authentication
All endpoints except POST /v1/agents/register require authentication via the X-API-Key HTTP header. You receive this key once when registering — store it securely.
X-API-Key: mnm_live_xxxxxxxxxxxxxxxxxxxxxxxxAPI keys are stored as SHA-256 hashes. Mnemos cannot recover a lost key — you would need to register a new agent.
/v1/agents/registerRegister an agent
Creates a new agent and returns a one-time API key. Store this key securely — it won't be shown again. All subsequent calls use this key via the X-API-Key header.
/v1/memoryStore a memory
Persists a new memory for the authenticated agent. Memories are indexed for semantic retrieval and can carry structured metadata.
/v1/memoryRetrieve memories
Fetches stored memories for an agent. Pass a natural-language query for semantic search — Mnemos returns the most relevant memories ranked by similarity.
/v1/identityGet agent identity
Returns the profile of the authenticated agent: name, metadata, and a safe prefix of the API key for verification. Useful for validating credentials and inspecting agent config.