Skip to content

Agent Gateway

Every agent call through one gateway, with a key, a budget and a trace

Route A2A agent traffic and the model calls agents make through one gateway, so each agent can be identified, capped, traced and turned off without touching its code. Registering and calling agents is free.

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.

Register agents under /v1/agents, then send A2A messages or model calls through the gateway.

docker run -p 4000:4000 -v "$PWD/config.yaml:/app/config.yaml" -e SPANWAY_MASTER_KEY -e ANTHROPIC_API_KEY registry.spanway.ai/spanway/spanway-ai:<version> --config /app/config.yaml

01

Through the gateway

The same virtual key, budget and audit trail as every model call.

Send an A2A message through the gateway

curl http://localhost:4000/a2a/support-agent/message/send \
  -H "Authorization: Bearer sk-your-virtual-key" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "message/send",
    "params": {
      "message": {
        "role": "user",
        "messageId": "msg-1",
        "parts": [{"kind": "text", "text": "Summarize ticket 4821"}]
      }
    }
  }'

Make an agent's model calls through the gateway

from openai import OpenAI

client = OpenAI(base_url="http://localhost:4000/v1", api_key="sk-your-virtual-key")
response = client.chat.completions.create(
    model="claude-sonnet-5-5",
    messages=[{"role": "user", "content": "Plan the next step"}],
    extra_headers={"x-spanway-agent-id": "support-agent"},
)
print(response.choices[0].message.content)

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.

02

How requests flow

Agents and orchestrators

  • A2A clients
  • LangChain
  • Pydantic AI
  • Custom agents

Spanway gateway

  • Identity
  • Budget
  • Guardrails
  • Audit

Downstream agents

  • A2A agent cards
  • Hosted agents
  • Internal agents

Models

  • OpenAI
  • Anthropic
  • Amazon Bedrock
  • Self-hosted
Agents and orchestrators send A2A messages and model calls to the Spanway gateway, which applies the agent's identity, budget, guardrails and audit logging, then forwards them to downstream agents or models.
  • A2A protocol
  • Agent registry
  • Agent cards
  • Rate limits per agent
  • Spend by agent
  • Agent traces in Lens
  • Memory per user or team
  • Workflow runs
  • Run ledger
  • Agent skills index
  • Web search
  • Responses API
  • Coding agent sign-in
  • Confidence routing
  • Session budgets (Enterprise)
  • Iteration limits (Enterprise)
  • Required trace ids (Enterprise)
  • Identity provider binding (Enterprise)
  • Agent credentials for MCP servers and SaaS tools (Enterprise)
  • Kill switch (Enterprise)
  • Custom agents (Enterprise)
  • Workflow runner (Enterprise)
  • With Enterprise, agent governance caps the spend of a single session, limits how many iterations a run may take and can reject calls that carry no trace id. The kill switch disables the agent, blocks or deletes every key bound to it, halts its workflow steps and then calls your agent's stop webhook. Disabling the agent or blocking its key by hand stays free. Agent governance
  • With Enterprise, an agent can be bound to a Microsoft Entra ID application, so only tokens issued to that application may act as the agent, either on its own or on behalf of a signed-in user. It can also be bound to the app of any OpenID Connect provider when it acts on its own. Agent identity
  • With Enterprise, an agent can hold its own API keys and tokens for MCP servers and SaaS tools instead of borrowing a person's key. The gateway sends an MCP credential for the agent, the agent fetches a SaaS credential with its own sign-in token, and admins rotate, revoke or suspend them all at once. Agent credentials
  • Every agent run can be traced by Lens, which runs inside your deployment next to the gateway. Each model and tool call is a span in a tree, and teams read their own traces through /v1/traces or the Lens page of the Admin UI. Agent tracing
  • Agents can keep memory scoped to a user or team, and keep workflow runs with a status and an ordered event log, so a long task survives across requests. With Enterprise, the workflow runner runs the steps for you. Workflow runs
  • Coding agents sign in to the gateway, receive managed settings and install plugins an admin has registered, enabled or granted to their key, from a marketplace the gateway hosts. The spanwayctl configure command routes Claude Code and Codex through the gateway. Claude Code gateway
  • Routing applies to agent traffic too. Semantic auto routing picks a model from the prompt, confidence routing picks a deployment from the confidence and evidence an agent declares in its metadata, adaptive routing learns which model serves each kind of request best, and quality routing maps how hard a request is to a quality tier you declare. Routing
  • The gateway serves an agent skills index that coding agents can discover, and the AI hub lists the models, agents, MCP servers and skills an admin has published, so developers find what they may use without asking. AI hub

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.