Skip to content

Deploy

Three commands to a running gateway, the same release in production

Try the whole gateway on a laptop with three commands, then run the same signed, compiled release on one server, on Kubernetes or in your own AWS, GCP or Azure account. It all runs inside your network.

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.

Shortest path

From nothing to a first answer

Three commands start the gateway with its own database, and one more line puts your provider key in the env file so the gateway can call the model. The first start creates the database and applies the schema, which takes about a minute. Then add a model and send a request.

Start the gateway in dev mode

docker pull registry.spanway.ai/spanway/spanway-ai-dev:<version>
printf 'SPANWAY_MASTER_KEY=sk-%s\nSPANWAY_SALT_KEY=sk-%s\n' \
  "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > spanway-dev.env
echo 'ANTHROPIC_API_KEY=your-provider-key' >> spanway-dev.env
docker run -d --name spanway-dev -p 127.0.0.1:4000:4000 \
  --env-file spanway-dev.env -v spanway-dev:/var/lib/spanway/dev \
  registry.spanway.ai/spanway/spanway-ai-dev:<version>

Add a model and send a request

export SPANWAY_API_KEY="$(sed -n 's/^SPANWAY_MASTER_KEY=//p' spanway-dev.env)"
curl -X POST http://localhost:4000/model/new \
  -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
  -d '{"model_name": "claude-sonnet-5-5", "spanway_params": {"model": "anthropic/claude-sonnet-5-5",
       "api_key": "os.environ/ANTHROPIC_API_KEY"}}'
curl http://localhost:4000/v1/chat/completions \
  -H "Authorization: Bearer $SPANWAY_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-5-5",
       "messages": [{"role": "user", "content": "Say hello in one line."}]}'

Applications then switch by changing their base URL and key, because the gateway speaks the OpenAI and Anthropic API formats. No provider account yet? The dev mode guide adds a model that answers with fixed text instead. Each release publishes the container images, the Helm charts and the clients under one version number, so what you deploy matches the gateway you run.

Options

Pick how much of the stack you want to own

Every option runs the same signed, compiled release at the same version, so moving from one to the next changes how you run it, not what you run.

  • A laptop, to try everything

    Dev mode

    One container with the gateway and its own built-in database, so keys, the Admin UI and spend logs work with no Postgres or Redis to set up. Never for production.

    Dev mode
  • One server, Postgres included

    One-command installer

    quickstart.sh, or quickstart.ps1 on Windows, asks a few questions with defaults, generates the keys and database password into a private .env file without printing them, starts the stack and waits until it is ready.

    Quickstart installer
  • One server, set up by hand

    Docker Compose

    The gateway and Postgres with health checks on both, started with one docker compose command.

    Docker Compose
  • Kubernetes, one Deployment

    Helm, all in one

    The full gateway in one Deployment with a migration Job, Ingress, autoscaling on CPU, memory or KEDA, and a PodDisruptionBudget.

    All-in-one chart
  • Kubernetes at scale

    Helm, by component

    The data plane, the management backend and the Admin UI scale separately, with Lens for agent traces bundled. Two secrets and one helm install, and the chart refuses to render without a master key and a database.

    Componentised chart
  • Your cloud account

    Terraform for AWS, GCP and Azure

    One terraform apply creates the network, a managed Postgres with a reader, Redis, storage and a load balancer, runs the schema migration, and only then starts the gateway.

    Terraform stacks

Or let us run it with Spanway Cloud

The same release, hosted by us, with no servers, database, upgrades or backups to run. Cloud is in private preview in one US region, and more regions are on the roadmap. An export bundle moves a workspace to your own gateway at any time. Cloud marketplace listings are planned and not available yet.

Request Cloud access

Cloud is in private preview. A short form emails sales@spanway.ai, and we reply within two business days.

Security

What your security review will ask about

Each point is documented, and the docs show your team how to check it for themselves.

  • Compiled, shell-free images

    Spanway's code is compiled inside the image, with no shell or package manager on the root filesystem, running as an unprivileged user. A release that still holds a Spanway source file is refused.

  • Signed, with an SBOM and provenance

    Every image and Helm chart is signed with cosign and carries a signed SPDX SBOM and build provenance, so your security team checks them with a few published commands before anything runs.

  • Scanned before every release

    A serious known vulnerability that already has a fix stops the release before it is tagged. Images are rescanned daily, and a published fix target covers what is found later.

  • A FIPS image where you need it

    The spanway-ai-fips image runs all cryptography through the OpenSSL FIPS provider 3.1.2, which holds FIPS 140-3 certificate #4985, and ships a self-check your security team can run. It is the all-in-one image, run with Docker, Compose or the all-in-one Helm chart. The componentised chart and the Terraform stacks have no FIPS variant yet.

  • Nothing calls home

    The license key is checked offline inside the image and there is no telemetry. One switch turns off every optional outbound fetch for air-gapped networks, and an egress allowlist limits where the gateway may connect.

  • Your keys, your data

    Provider 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 you turn on. Prompts are not stored unless you turn that on.

Verify signatures and SBOMs

Operations

Runs like the rest of your platform

  • Built for more than one instance

    Stateless gateway replicas share Postgres and Redis, with read replica routing and rate limits that fail closed when Redis is down instead of letting traffic through unchecked.

  • Probes that load balancers understand

    Liveness, readiness and a drain endpoint for rolling restarts are wired into the charts, and readiness reports the database and Redis.

  • Safe upgrades

    Every component shares one version. Schema migrations run before any traffic and only add to the schema, and an upgrade runbook rolls one instance first. The version shows on every response.

  • Configuration as code

    Keep config.yaml in Git with secrets read from the environment, AWS Secrets Manager or Azure Key Vault, and with an Enterprise license from Google Secret Manager, HashiCorp Vault and CyberArk. Argo CD runs the migrations as a PreSync hook.

  • Identity you already run

    Single sign-on with OIDC or SAML for up to 5 users without a license. An Enterprise license adds single sign-on for everyone, SCIM provisioning from your directory, and an organization per business unit with its own identity provider.

  • Metrics and traces in your tools

    Prometheus metrics, OpenTelemetry spans and JSON logs, sent to Datadog, New Relic, S3 or any HTTP endpoint. With an Enterprise license the audit log streams to your SIEM too.

Production checklist

Requirements

What you need

  • Docker, Podman or Rancher Desktop for a single server, or Kubernetes with Helm 3
  • PostgreSQL, except in dev mode
  • Redis or Valkey when you run more than one instance
  • Images for linux/amd64 and linux/arm64
  • The registry address and pull credentials from your onboarding pack during the private preview

Running it for a bank or another regulated business? See the financial services reference architecture.

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.