SPM — StellarPath Memory Operating System Docs

Quickstart

Published Last reviewed Applies to SPM-Polaris

Give your agent a lasting memory in three steps: create a key, choose how requests reach your model provider, and verify what happened.

1. Create an SPM key

Sign in at https://app.spmos.ai, open API Keys, and create a key. It is shown once.

Recommended scopes:

Your key's scopes set the strongest memory access it can use. A single request can temporarily use less, never more.

2. Choose how requests reach your provider

Option A — Hosted Provider Proxy

The simplest path: SPM forwards your requests, and your dashboard shows token savings and receipts for every request.

  1. In the console, open Settings → Providers.
  2. Choose a preset provider and the models you want, or add a Custom upstream with its Base URL, API style, key, and optional headers.
  3. Store it. Provider secrets are stored by SPM and never shown again.

Point your OpenAI-compatible client at SPM instead of the provider:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.spmos.ai/v1",
    api_key="spm_live_...",
)

response = client.chat.completions.create(
    model="your-configured-model",
    messages=[{"role": "user", "content": "Remember that our deploy window is Friday."}],
)
print(response.choices[0].message.content)

Option B — Local Proxy (provider key stays on your machine)

Use this when your agent supports a custom Base URL and you do not want to store the provider key in SPM. The Local Proxy runs on your machine and sends the provider key directly to your provider; only memory lookups and eligible saved text use hosted SPM.

Requirements: Node.js >=22.15, an SPM key, and an upstream provider key.

npm install --global @spmos/local-proxy@0.1.2
spm setup
spm doctor
spm start

In another terminal:

export SPM_LOCAL_PROXY_TOKEN="$(spm config token)"
spm print-config codex   # or: spm print-config claude

See Local Proxy before using custom headers or query parameters.

Option C — MCP memory tools

Use MCP when the agent should save and find memories explicitly, without changing how it sends model requests:

[mcp_servers.spm]
url = "https://api.spmos.ai/mcp"
headers = { Authorization = "Bearer spm_live_..." }

The production server name is SPM and the tools are exactly remember, recall, read, delete, and status.

3. Verify what happened

4. When will I see savings?

Savings appear when a conversation is long enough that its older parts are already stored as memory and can stop being resent. Short or new conversations correctly show no reduction — there was nothing safe to remove yet. This is expected behavior, not a malfunction.

Next steps