Bring your own provider
After this page you can point https://api.spmos.ai/v1 at your own provider with a credential, API style and model.
Choose credential custody
Choose Hosted Provider Proxy or Local Proxy for credential custody.
Hosted Provider Proxy stores the key in SPM’s encrypted vault. Requests go through SPM to the provider, with gateway receipts. SPM routes requests to allowed models.
Local Proxy stores the key in local configuration and sends requests through the loopback Local Proxy. You manage local process security. It has no hosted gateway receipts; your downstream harness sends the model.
Preserve the provider API style
SPM keeps requests and responses in the configured native style. It does not translate dialects:
- OpenAI Chat Completions:
POST /v1/chat/completions - OpenAI Responses:
POST /v1/responses - Anthropic Messages:
POST /v1/messages
Configure a hosted provider
Each active configuration has one upstream Base URL, credential, API style, optional custom headers and query parameters, default model, and allowed_models[].
- An explicit model routes to its owning configuration; without one, SPM uses the default channel/model for that API style.
- Two active configurations cannot claim the same model within one
tenant(the account boundary for active configurations) and API style. - One configuration can serve several models.
Settings includes presets and models.dev auto-admitted providers. Auto-admission requires an HTTPS endpoint, documented credential variable, and chat-capable model. Requests remain HTTPS-only, public-IP-pinned, and SSRF-checked. Incomplete entries are discovery-only; presets do not live-fetch /models.
Add a custom provider
Choose Custom for a self-hosted gateway, regional provider, enterprise proxy, or provider without a preset. Enter:
- HTTPS Base URL
openai_compatibleoranthropic_messagesAPI style- provider key
- default model and allowed models
- optional custom headers and query parameters
Only Custom channels support Fetch models. SPM temporarily uses the vault credential on the server, returns model identifiers, and never returns the credential to the browser. If no model-list endpoint exists, enter a model ID manually.
Custom probes and forwarding enforce HTTPS and public-address DNS pinning.
Describe stored data
Unknown provider JSON fields and valid diagnostic headers pass through. SSE event order and response/item/part IDs are preserved. The memory observer records only visible assistant text, not reasoning, thinking, redacted thinking, function/tool arguments, or partial JSON.
Revoking or deleting a provider stops authentication and routing; deleting one frees its plan slot. The upstream provider controls retention, training opt-out, regional processing, and account settings. Review its terms before sending sensitive content.