Skip to content

Agents and workflows

Agents you can register, limit, run and audit

Register the agents your teams build for free. Add limits and a kill switch with Enterprise, let the gateway run custom agents and multi-step workflows for you, and see every model call, tool call and dollar of a run in one place.

Request a free 30-day Enterprise trial

We email you a trial license key for your own servers. No payment details.

Read the agent docs (opens in a new tab)

Opens the documentation in a new tab.

Agents talk to each other with , and use tools through servers. The Agent Gateway routes that traffic with the same keys, budgets and logs as model calls, and the connector catalogue lists the MCP servers you can add in a few clicks. This page covers what the gateway does with agents themselves.

01

Agent registry

Register the agents your teams build, so everyone calls them through the gateway with their own key. The registry and calling agents over A2A are free.

Agent registry: register A2A agents, agent cards, enable and disable, RPM and TPM limits and spend per agent

Starter, free

Example: Register the support agent once, and every team calls it through the gateway with their own key.

Terms used here: ,

How it works in the docs: Agent registry: register A2A agents, agent cards, enable and disable, RPM and TPM limits and spend per agent (opens in a new tab)
  • Each agent gets an agent card that tells callers what it does and how to call it
  • A key reaches an agent only when a rule on the key or its team grants it. Calls that match no rule are refused, so nothing reaches a new agent until you say so
  • Turn an agent off at the gateway without redeploying it
  • Requests and tokens per minute limits for each agent, and spend tracked per agent
Read about agent registry in the docs (opens in a new tab)

02

Agent governance

Put hard limits on what a registered agent may do, tie it to its own identity, and keep a way to stop it.

How the gateway governs an agentA registered agent calls the gateway with its own key. First the gateway checks its identity, a bound key or a Microsoft Entra ID application token. Second it applies session limits: a budget, a step cap, requests per minute and a required trace id. Third, for custom agents the gateway runs, write tools stay off until a proxy admin allows them. Only then do model calls and MCP tool calls go through. Every model call, tool call, guardrail decision and dollar of the run is recorded in the run ledger, in order. The kill switch disables the agent, blocks or deletes its keys, stops its workflow steps and custom agent runs, and then calls the agent's stop webhook.AgentRegistered once, calls with its own key1. IdentityA bound key, or a Microsoft Entra IDapp token2. Session limitsBudget, step cap, requests per minuteand a required trace id3. Write toolsOff until a proxy admin allows them,for custom agentsCalls go throughModel calls and MCP tool callsRun ledgerEvery model call, tool call, guardraildecision and dollar of a run, in orderKill switchOne click disables the agent, blocks ordeletes its keys, stops its workflow stepsand runs, then calls its stop webhook
An agent gets an identity, hard limits per session and no write access until you allow it. Everything it does lands in the run ledger, and the kill switch stops it when something looks wrong.

Agent governance: session budgets, iteration limits and required trace ids

Enterprise

Example: An agent stuck in a loop is stopped after 25 steps or 2 dollars, whichever comes first.

Needs an Enterprise license that includes Agent governance

Terms used here: ,

How it works in the docs: Agent governance: session budgets, iteration limits and required trace ids (opens in a new tab)

Agents bound to a Microsoft Entra ID application or to an app of any OpenID Connect provider

Enterprise

Example: Only tokens issued to the support agent's own app can act as the support agent.

Needs an Enterprise license that includes Agent governance

Terms used here:

How it works in the docs: Agents bound to a Microsoft Entra ID application or to an app of any OpenID Connect provider (opens in a new tab)

Each agent's own credentials for MCP servers and SaaS tools, with rotation, revocation and one switch to suspend them all

Enterprise

Example: The support agent reaches the CRM with its own service account key. When the key leaks, an admin revokes it in one click without touching anyone else's access.

Needs an Enterprise license that includes Agent governance

Terms used here: ,

How it works in the docs: Each agent's own credentials for MCP servers and SaaS tools, with rotation, revocation and one switch to suspend them all (opens in a new tab)
  • A session budget caps what one conversation may spend, and an iteration limit caps how many steps a run may take
  • Calls that carry no trace id can be refused, so every agent call can be found later
  • An agent can be bound to a Microsoft Entra ID application or an app of any OpenID Connect provider, so only tokens issued to that application may act as it
  • An agent can hold its own keys for MCP servers and SaaS tools, which admins rotate, revoke or suspend all at once, and every change and hand-out lands in the audit log
  • The kill switch disables the agent at the gateway, blocks or deletes every key bound to it and drops those keys from the auth cache, so its traffic stops right away
  • It then stops the agent's workflow steps and custom agent runs, and calls the stop webhook you register last, so a slow webhook never leaves the agent running
Read about agent governance in the docs (opens in a new tab)

03

Custom agents

Describe an agent with instructions, a model, an MCP toolset and limits, and the gateway runs it for you. It calls the model, runs the tools the model asks for through the MCP gateway, and stops when the model answers or a limit is reached.

  • Every run uses the key of the person who started it, so their model access, budgets and guardrails apply and a run can never do more than they could
  • Write tools stay off until a gateway admin enables each one, and they switch off again if someone else changes what the agent does
  • Limits on steps, spend and time for every run, checked before each model and tool call
  • Each agent is private, shared with one team, or shared with one organization, and a new agent belongs to the organization of the key that created it. Nobody in another organization can see or run it
  • A live timeline of each run, streamed step by step, and an agent card so other agents can call it over A2A
  • Built-in Lens tools let an agent read recent traces, which suits an investigator agent
  • The kill switch disables a custom agent at the gateway, and runs stop before their next model or tool call
  • When a key, team or organization requires zero data retention, the run is stored without its content
Read about custom agents in the docs (opens in a new tab)

04

Workflow runner

Send the gateway a plan of steps, each one a message to an agent, and it runs them in order or as a graph. Each step's answer can be passed to the steps after it, and everything is recorded as a workflow run.

Workflow runner: steps across A2A and custom agents, in order or as a graph, with budgets, timeouts, attempts, cancel and resume

Enterprise

Example: A research agent lists last week's incidents, a writer agent summarises them, and no new step starts once the run has spent 2 dollars.

Needs an Enterprise license that includes Workflow runner

How it works in the docs: Workflow runner: steps across A2A and custom agents, in order or as a graph, with budgets, timeouts, attempts, cancel and resume (opens in a new tab)
  • Steps can target registered A2A agents and custom agents
  • A budget for each step and for the whole run, a timeout for each attempt and a deadline for the run
  • A step can be given up to five attempts, used only after a timeout, a rate limit or a server error from the agent
  • Cancel a run at any time, or resume a failed or cancelled run, keeping the steps that already succeeded
  • Every step runs as one virtual key, checked again before every attempt, so a blocked key or a spent budget stops the run
  • Run state lives in the database, so a run keeps going when one copy of the gateway restarts

Two agents, one run, with a 2 dollar budget

curl -X POST http://localhost:4000/v1/workflows/runner/start \
  -H "Authorization: Bearer sk-my-key" -H "Content-Type: application/json" \
  -d '{
    "workflow_type": "incident-summary",
    "input": {"service": "checkout"},
    "mode": "sequential",
    "run_budget_usd": 2.0,
    "steps": [
      {"key": "research", "target": {"kind": "a2a_agent", "agent_id": "research-agent"},
       "message": "List the incidents for {{input.service}} in the last week", "budget_usd": 1.0},
      {"key": "write", "target": {"kind": "custom_agent", "custom_agent_id": "writer-agent"},
       "message": "Write a short summary of: {{steps.research.output}}", "budget_usd": 0.5, "retry": {"max_attempts": 2}}
    ]
  }'
Read about workflow runner in the docs (opens in a new tab)

05

Workflow automation

Save a workflow once, start it from a schedule, a webhook, a chat or a form, hold risky steps for a person, and promote it between gateways through Git.

Saved, versioned workflow definitions with typed input and output contracts, a compare view between versions and one click restore

Enterprise

Example: The weekly report workflow is saved once, every run of version 3 gets exactly the same steps, and when version 4 misbehaves you see the changed prompt and put version 3 back.

Needs an Enterprise license that includes Workflow definitions

How it works in the docs: Saved, versioned workflow definitions with typed input and output contracts, a compare view between versions and one click restore (opens in a new tab)

Workflows started from Slack mentions, Teams messages, Outlook and Gmail mail and Outlook and Google calendars, open only to the people you map

Enterprise

Example: Someone on the on-call rota types @helper summarise the open incidents in the ops channel and gets the summary, while the same mention from a guest is refused.

Needs an Enterprise license that includes Workflow triggers

How it works in the docs: Workflows started from Slack mentions, Teams messages, Outlook and Gmail mail and Outlook and Google calendars, open only to the people you map (opens in a new tab)

Environments: config exported to Git and promoted from dev to prod with a reviewed plan and a second approver

Enterprise

Example: A saved workflow, its custom agents and its approval policy are reviewed in a pull request, planned against prod and applied once a second person approves the plan in the dashboard.

Needs an Enterprise license that includes Environments and Git promotion

How it works in the docs: Environments: config exported to Git and promoted from dev to prod with a reviewed plan and a second approver (opens in a new tab)
  • Ready-made templates install as custom agents and a saved workflow your team owns, with read tools only
  • Approve links go to Slack, Microsoft Teams, webhooks or email, and nothing is decided until the approver signs in and confirms
  • Organization variables hold shared values such as a support region, read as {{vars.name}} in any step
  • Environments export workflows, agents and policies to your own Git repository and apply them to another gateway after a second person approves the plan
Read about workflow automation in the docs (opens in a new tab)

06

Code graph

Give coding agents a map of your code instead of whole files. The gateway indexes the repositories you connect and serves symbols, outlines and call graphs over MCP.

Code graph: a symbol index and call graph of your Python, TypeScript, Java, Go and C# repositories, for coding agents over MCP

Enterprise

Example: A coding agent searches symbol names and identifiers at once, then walks every caller of a function in a GitLab project without reading the whole repository.

Needs an Enterprise license that includes Code graph

How it works in the docs: Code graph: a symbol index and call graph of your Python, TypeScript, Java, Go and C# repositories, for coding agents over MCP (opens in a new tab)
  • Python, TypeScript, Java, Go and C# repositories, from GitLab on gitlab.com or self-managed and the other hosts the docs list
  • Hybrid search finds a symbol by the words in its name and identifiers and by its qualified name at once
  • A call only sees repositories its key, team and organization may read, and code graph tool results are withheld from the logs
  • The gateway never builds or runs your code, and files that usually hold secrets are never stored
Read about code graph in the docs (opens in a new tab)

07

Run ledger

Give the ledger one id, such as a workflow run, a request, a trace or a session, and it shows everything that run did, in time order, with totals. It only reads what the gateway already stores, so it works on runs that happened before you looked.

  • Model requests with tokens and cost, MCP tool calls, tool calls the model made and guardrail decisions
  • Audit rows, eval scores, background grading results and online scores that belong to the run
  • Each agent and tool step recorded by Lens when tracing is on
  • A JSON export, and the same scope as the Logs page, so people only see their own and their team's requests
The Run Ledger totals for one coding agent session: its spend, eight requests with eight tool calls, tokens, guardrail checks, duration and eight eval scores.
The run ledger shows everything one run did and what it cost, in order. Admin UI with demo data.

Everything one run did, in time order

curl http://localhost:4000/run_ledger/run_01J... \
  -H "Authorization: Bearer sk-your-key"

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.

Read about run ledger in the docs (opens in a new tab)

08

Memory, workflow runs and tracing

Agents can keep what they learn, record long tasks step by step, and show every model and tool call in a trace.

  • Memory is scoped to a user or a team, and erasure removes it
  • Workflow runs keep a status and an ordered event log, so a long task survives across requests
  • Lens runs inside your deployment, next to the gateway, and teams read their own traces
  • Apps can send their own traces to the gateway with their usual key, and each model call shows every retry and fallback it took
Read about memory, workflow runs and tracing in the docs (opens in a new tab)

09

Govern coding agents

Coding agents send source code to models and act in your repositories. The gateway keeps that traffic on models you trust, limits what agents can change, and keeps a record you can show an auditor.

Claude Code and Codex routed through the gateway with a long-lived virtual key

Starter, free

Example: Run spanwayctl configure once and every Claude Code session is on your budget and in your logs.

Terms used here:

How it works in the docs: Claude Code and Codex routed through the gateway with a long-lived virtual key (opens in a new tab)

Zero data retention for code traffic

Starter, free

Example: Source code from Claude Code only goes to models that keep nothing or run on your own servers, while chat traffic routes as usual.

Terms used here: ,

How it works in the docs: Zero data retention for code traffic (opens in a new tab)

Connector catalogue of well-known MCP servers that start read-only, each labelled verified or unverified

Starter, free

Example: Add the Linear connector in two clicks. Agents can read issues, but cannot create them until an admin turns that on. Paste a custom address the catalogue knows and the Admin UI offers the matching template.

Terms used here:

How it works in the docs: Connector catalogue of well-known MCP servers that start read-only, each labelled verified or unverified (opens in a new tab)

Compliance evidence export mapped to ISO/IEC 42001 clauses and SOC 2 criteria

Enterprise

Example: Hand your auditor one checksummed file with your settings, audit trail check and change history for the quarter.

Needs an Enterprise license that includes Compliance evidence export

Terms used here:

How it works in the docs: Compliance evidence export mapped to ISO/IEC 42001 clauses and SOC 2 criteria (opens in a new tab)
  • Requests from coding tools can be kept on deployments that keep nothing or run on your own servers, while other traffic routes normally
  • The connector catalogue includes Azure DevOps, Atlassian and other code hosts, and every connector starts with read tools only
  • Every session of Claude Code or Codex lands on a key, a budget and the logs after one command
  • The run ledger and the evidence export give security and auditors the record they ask for
Read about govern coding agents in the docs (opens in a new tab)

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.