Skip to content

Financial services

Every AI call in the bank through one gateway you run

Apps, agents, coding tools, batch jobs and vendor products all reach their models through a Spanway gateway inside your network. Each call has an owner, a budget, guardrails and a record your auditors can check, and your egress firewall makes the gateway the only way out.

Contact sales

Opens a short form that emails sales@spanway.ai from your mail app. No commitment.

Reference architecture

What goes through Spanway, and what stays where it is

AI traffic goes through the gateway. Everything else keeps using the API gateway or service mesh you already trust.

Reference architecture for a bankInside the bank's network, five kinds of AI traffic go to the Spanway gateway: in-house apps that change only their base URL and key, agents and their MCP tool calls, developer and coding tools, batch and back office AI jobs, and vendor products that accept a custom endpoint or key. The gateway runs as a self-hosted compiled image, uses the FIPS image where required, and applies a key per app and agent, single sign-on, allowed models, budgets, guardrails, the audit log, request logs and kill switches. Next to it, inside the network, run the services it depends on: the bank's Postgres for keys, the audit log and request logs, Redis or Valkey for limits and budgets, the identity provider for single sign-on and SCIM, a secret store such as Vault, CyberArk or a cloud KMS, and the SIEM. Internal MCP servers are reached inside the network. The network egress firewall blocks direct calls to model provider domains, so only the gateway reaches the model providers, under the bank's own contracts and keys, and the external MCP servers the bank allows. Payments, core banking, card processing, trading and ordinary REST APIs stay on the bank's API gateway or service mesh. SaaS products whose built-in AI calls their own models are governed by contract.AI traffic in the bankIn-house appsAgents and MCP toolsDeveloper toolsBatch and back officeVendor productsSpanway gatewaySelf-hosted compiled imageFIPS image where requiredKey per app and agentSSOAllowed modelsBudgetsGuardrailsAudit logRequest logsKill switchEgress firewallDirect calls to provider domains areblocked. Only the gateway gets through.Model providers and external MCPYour own contracts and keysAlso inside your networkInternal MCP servers, your Postgres,Redis or Valkey, identity provider,secret store and SIEMStays on your API gatewayPayments, core banking, cards, tradingand ordinary REST APIsSaaS with built-in AICalls its own models, governed by contract
Every AI call in the bank goes through the gateway, and the egress firewall makes it the only way out to a model provider. Internal tools and the services the gateway depends on stay inside your network, and traffic that is not AI stays on the API gateway or service mesh you already run.

Routes through Spanway

  • In-house apps

    Apps that call a model through the OpenAI or Anthropic API format switch by changing the base URL and the key. The code that builds prompts and reads answers stays the same.

  • Agents and MCP tool calls

    Agents send their model calls, A2A messages and MCP tool calls through the gateway, so each agent has its own identity, budget and record of which tools it used.

  • Developer and coding tools

    Coding agents such as Claude Code and Codex, and scripts built on the provider SDKs, sign in to the gateway instead of holding provider keys on laptops.

  • Batch and back office jobs

    Scheduled summaries, document extraction and other bulk AI jobs run through the same keys and budgets, including the batch API, so overnight work is counted and capped like everything else.

  • Vendor products that allow it

    A product that lets you set a custom model endpoint or bring your own key points at the gateway, so its AI use falls under your controls and your provider contracts.

Stays where it is

  • Traffic that is not AI

    Payments, core banking, card processing, trading and ordinary REST APIs stay on the API gateway or service mesh you already run. Spanway does not sit in those paths and nothing about them changes.

  • SaaS with built-in AI

    A SaaS product whose built-in AI calls its own models cannot be routed through your gateway. Govern it the way you govern the vendor, through the contract, data processing terms and vendor risk review.

Five steps

Make the gateway the only path to a model

These five steps turn the gateway from an option into the only route, so a new app or a forgotten script cannot reach a provider on its own.

  1. 1

    Block direct provider domains at the network egress

    Add the model provider domains to your firewall or egress proxy deny list, with the gateway as the only exception. From then on an app that tries to call a provider directly fails, and the gateway is the only way out. An egress allowlist inside the gateway also limits the hosts it may connect to, while your firewall rule stays the outer boundary. Egress allowlist

  2. 2

    Give every app, team and agent its own virtual key

    Each key carries its owner, the models it may call, a budget and rate limits. Provider keys stay inside the gateway, so a leaked virtual key can be blocked or rotated without touching your provider contracts. Virtual keys

  3. 3

    Put people behind single sign-onEnterprise

    Staff sign in to the Admin UI and the CLI through your identity provider with OIDC or SAML, and SCIM keeps users and groups in step with your directory, so leaving the bank removes access. Without a license single sign-on stops at 5 users, so a bank rollout needs the Enterprise license for this step. Single sign-on

  4. 4

    Turn on guardrails for personal data and prompt injection

    Mask or block personal data before it leaves the bank, such as names, phone numbers, card numbers and bank account numbers, and check prompts for injection attempts. Policies attach guardrails to everyone or to the teams and models that need them. Personal data masking

  5. 5

    Keep the audit log and request logs for as long as you mustEnterprise

    Every model call is written to the request logs with its key, team, model, tokens and cost. With the Enterprise license every management change is also written to a hash-chained audit log, and retention periods keep both for the time your regulators and internal audit expect, then purge them on schedule. Audit logs

This pattern assumes the Enterprise license. Steps 3 and 5 need it for single sign-on beyond 5 users, SCIM, the audit log and retention periods.

Controls

What regulators and internal audit ask for

Each question an examiner or your internal audit team usually asks, and the control that answers it. Some of these need an Enterprise license, and the linked docs say which.

They ask forWhat Spanway gives you
Audit trailWho changed what and when, with the value before and after, for keys, teams, models, guardrails, settings and more. Rows are hash-chained, so an edit made directly in the database shows up when the chain is verified, and they stream to your SIEM. Needs the Enterprise license. Audit logs
RetentionA retention period for request logs, audit logs and the other stored records, purged on a schedule you set. Prompts and responses are not stored unless you turn that on. Needs the Enterprise license. Retention
Data protectionPersonal data masked or blocked before it reaches a provider, zero data retention and no-training rules per key, team or organization, a required region for each request, and data subject export and erasure. Data policy routing
Model risk evidenceEvals run test sets against every model you serve, on a schedule and before a change ships, with human review and red teaming. Results and an evidence bundle give your model risk and audit teams material for their own assessment. It does not certify anything on its own. Evals
Access controlA virtual key per app, team and agent with allowed models and budgets, single sign-on and SCIM for people, custom roles built from a permission catalogue, and IP allow-lists. Single sign-on beyond 5 users, SCIM and custom roles need the Enterprise license. Custom roles
Kill switchesBlock a key and its requests are refused with a 401. Stop an agent with its kill switch, which blocks every key bound to it and halts its workflow steps. Block one tool for a team or a key without touching the rest. Agent kill switch
Third-party riskYou keep your own contracts and keys with each model provider, so prompts never pass through Spanway. Images and charts are signed and come with a signed SBOM, and the license key is checked offline with no telemetry. Verify signatures and SBOMs
Operational resilienceStateless replicas behind your load balancer, fallbacks to another deployment or provider when one fails, rate limits that fail closed when Redis is down, and readiness and drain probes for rolling upgrades. Reliability
CryptographyThe spanway-ai-fips image runs all encryption, hashing and TLS through the OpenSSL FIPS provider 3.1.2, which holds FIPS 140-3 certificate #4985. The certificate covers that cryptographic module, not Spanway as a product. FIPS 140-3 image

Spanway does not hold a security certification and does not make your deployment compliant on its own. It gives you the controls and the records, and your own assessment decides how they meet your obligations.

Deployment

Runs inside the bank's network

You run the gateway on your own servers or in your own cloud accounts. Nothing passes through Spanway on the way to a model.

  • The gateway runs in your own network from compiled, signed container images with no shell, as an unprivileged user. Keys, request logs and the audit log stay in your own Postgres, and prompts go only to the model providers, guardrail services and log destinations the bank turns on, while the egress allowlist refuses everything else. What Spanway stores
  • Where FIPS validated cryptography is required, the spanway-ai-fips image runs all encryption, hashing and TLS through the OpenSSL FIPS provider 3.1.2, which holds FIPS 140-3 certificate #4985. The certificate covers that cryptographic module, not Spanway as a product. The FIPS build is the all-in-one image, deployed with the spanway-helm chart, Docker or Compose. The componentised chart and the Terraform stacks have no FIPS variant yet. FIPS 140-3 image
  • Use the bank's own provider contracts and keys, including private endpoints for providers that offer them. The license key is checked offline inside the image, there is no telemetry, and an air-gapped switch turns off every optional outbound fetch. Air-gapped mode
  • Helm charts and Terraform for AWS, GCP and Azure run the same signed, compiled release at the same version, with health and drain probes, autoscaling, read replicas and schema migrations that run before any traffic is served. Deployment options

See how the gateway is deployed from a first container on a laptop to a production cluster.

Next step

Plan the rollout with us

Tell us which apps, agents and tools you want to bring under the gateway first, and we will walk through the architecture, the controls your auditors expect and a trial license for your own environment.

Contact sales

Opens a short form that emails sales@spanway.ai from your mail app. No commitment.

Run it yourself. Start today.

Start the gateway, track and cap spend on every request, and add SSO, audit logs and custom SLAs when it goes org-wide.

Request the free install guide

Starter is free with no license key. A short form emails hello@spanway.ai from your mail app and we reply with the install guide for your setup.

Contact sales

Opens a short form that emails sales@spanway.ai from your mail app. No commitment.