Security & architecture

Built for transparency, not assumptions.

How SwitchRouter routes inference traffic, protects workspace credentials, accounts for every credit, and separates implemented controls from planned enterprise capabilities.

No prompt persistence by default

SwitchRouter processes prompts and completions transiently in memory to route requests to upstream providers and does not persist prompt or response bodies in our database by default. We never train models on customer traffic.

Operational telemetry only

To power billing, rate limiting, and console observability, we record metadata: timestamps, model ID, upstream route metadata, input/output token counts, latency, HTTP status codes, and client attribution headers.

Hashed workspace API keys

Workspace API keys are scoped to a single workspace, hashed at rest (never stored in plaintext), revocable immediately from the console, and excluded from application logs.

Deterministic PostgreSQL ledger

Balances and settlements are maintained in PostgreSQL using integer kobo accounting (no floating-point money math). Credits are held during in-flight requests and released if an upstream call fails or disconnects.

PCI-DSS delegated payments & signed webhooks

Payment instruments are processed by licensed payment providers (such as Paystack). SwitchRouter never stores raw card numbers or CVVs and verifies payment webhooks via cryptographic HMAC signatures.

Multi-protocol, multi-provider gateway

The gateway exposes OpenAI Chat Completions (/v1/chat/completions), Anthropic Messages (/v1/messages), and OpenAI Responses (/v1/responses), routing across configured upstream providers with capability validation and fallback where alternate deployments exist.


Upstream routing

Multi-provider architecture and upstream data handling.

SwitchRouter decouples model identity from underlying serving deployments. Requests may traverse direct provider APIs, cloud platforms, inference clouds, or routing aggregators depending on the model and active routing configuration.

Provider LayerSupported IntegrationsRole in Gateway
Cloud PlatformsAWS Bedrock, Microsoft Azure (when configured via OpenAI-compatible endpoints)Used for enterprise-hosted foundation and open-weights deployments.
Inference CloudsTogether AI, DeepInfra, and configured OpenAI-compatible inference hostsUsed for high-throughput open-weights coding and reasoning models.
Routing AggregatorsOpenRouterUsed to expand model coverage and provide alternate fallback routes where configured.
Direct Provider IntegrationsOpenAI, Google Gemini, DeepSeek, and other direct OpenAI-compatible provider APIsUsed where direct provider credentials and endpoints are configured.

Honest disclosure on upstream terms: SwitchRouter prioritizes commercial API endpoints that state they do not train on API traffic, but data handling and retention by independent upstream hosts remain governed by each provider's respective terms. If your organization requires restricted upstream provider pinning, email [email protected].


Current posture

Implemented today vs. planned roadmap.

We document our security and compliance posture plainly without inflating certifications or SLAs.

Available today

Implemented in production across SwitchRouter Connect and API.

  • TLS encryption in transit across web, API, and upstream calls
  • Workspace-scoped, hashed API keys with instant revocation
  • Zero prompt/completion persistence in SwitchRouter storage by default
  • Per-request IDs (x-switchrouter-request-id) and audit-grade credit ledger

Planned / Not yet certified

Not claimed today; scoped with Enterprise early-access partners.

  • Formal SOC 2 Type II / ISO 27001 third-party audit reports
  • HIPAA Business Associate Agreements (BAA)
  • Self-serve SAML SSO / SCIM provisioning
  • Public real-time status page and contractual financial SLAs

Start building with SwitchRouter.

Connect your app or coding agent in seconds. Route across frontier models through one endpoint — then launch your app and start building what's next.

Start building