SPM SPM Docs

Authentication & API keys

The one credential your agents need

Agents authenticate to SPM with a single API key. They never receive your Supabase session or provider keys:

Authorization: Bearer spm_live_...

Anthropic-dialect clients may send the same key in x-api-key; both are accepted.

What a key resolves to

Before processing memory, the gateway resolves each request key into a fenced identity:

Keys are stored as peppered hashes. The gateway does not log them, and request receipts contain no key material.

Scopes

Keys and console-issued tokens carry least-privilege scopes:

Scope Allows
memory:write Store memory (MCP remember, ingest)
memory:read Recall and read memory
memory:delete Delete memory and purge sources
receipt:read Query request receipts

After a Supabase sign-in, the web backend issues short-lived capability tokens for console operations. This credential domain is separate from agent keys, so a leaked agent key cannot open the console.

Hygiene