SPM — StellarPath Memory Operating System Docs

SPM Documentation

Published Last reviewed Applies to SPM-Polaris

SPM — StellarPath Memory Operating System gives your AI agent a memory that lasts across sessions — while you keep the model provider you already use.

SPMOS.ai is the official website and canonical public source for SPMOS.

What that means for you:

Current production behavior

The hosted gateway combines evidence-gated recall, automatic capture, deterministic history compression, reversible fold summaries for eligible long histories, receipts, and tenant-scoped deletion. These decisions are independent: recall can work while compression is safely bypassed.

SPM never edits provider-managed reasoning or tool state merely to save tokens. Responses requests with previous_response_id, and histories containing protected reasoning/tool state, may be forwarded in full. The response exposes why through x-spm-continuity-state and the hosted receipt.

The memory service is hosted. You choose where your provider credential lives:

Path Provider credential Model traffic Memory traffic
Hosted Provider Proxy Stored securely by SPM Through api.spmos.ai Through SPM
Local Proxy In a protected configuration on your machine Directly from Local Proxy to your provider Memory lookup and eligible saved text still use hosted SPM
MCP No provider credential needed Your agent keeps its existing model path MCP tools call hosted SPM

Local Proxy is a credential-custody option, not an offline or self-hosted edition of SPM.

Three ways to use SPM

Interface Endpoint Best for
Provider Proxy https://api.spmos.ai/v1 OpenAI- or Anthropic-compatible apps that want hosted forwarding, smaller prompts, receipts, and memory
MCP https://api.spmos.ai/mcp Codex, Claude Code, and other MCP clients that want explicit memory tools
Local Proxy http://127.0.0.1:8765 Harnesses that support a custom Base URL while the provider key stays on your machine

Hosted interfaces accept an spm_live_... key. Local Proxy gives your harness a separate local token; neither the provider key nor the SPM key is exposed to the harness.

What happens to a hosted request

  1. SPM authenticates your key and applies your plan and provider settings.
  2. It looks for saved memory that genuinely helps with the current request.
  3. For eligible long conversations, SPM can omit older exchanges after source-readiness checks. Compression is not a universal losslessness guarantee: tool outputs can also be elided, and stored text is not a guarantee of complete semantic recall.
  4. SPM forwards the request in the configured provider's API dialect and streams the response back.
  5. Hosted request receipts provide request metadata and memory-processing outcomes. Token-savings views are separate: the receipt lookup API does not return per-request token counts or a signed request receipt. Signed purge receipts and read tokens serve different purposes.

Start here