Skip to Content

Set up your gateway

Choose how your agent uses one gateway service, save the application’s settings, then have the deployment operator configure the host and connect the agent.

Choose the application’s traffic permissions

PermissionAgent connection
SDK policy requestsThe VeriProof SDK requests policy decisions from the gateway. The agent calls its model provider directly.
Proxy model, tool, and agent-to-agent requestsThe agent sends requests through the application’s approved gateway routes.

Enable either permission or both. Keep at least one enabled. These permissions belong to the application; the assigned gateway must support the traffic you allow.

With SDK policy requests enabled, keep the VeriProof SDK’s central server URL and application key, and set its Edge endpoint to the gateway address. Each gateway serves its assigned applications in one environment.

Assign a gateway

You need permission to edit the application’s configuration or Manage gateways, with access to the application.

If the application uses Policy only or Capture on escalation, choose Capture evidence, save it, and complete any required approval before moving it. After the new gateway is Ready, choose the original mode if the application and gateway are eligible.

  1. Open the application’s Config > Gateway and find Assigned gateway.
  2. Select Assign gateway or Change gateway. The choices include compatible gateways in this application’s environment.
  3. Choose a gateway and select Add to draft.
  4. Select Save changes in Config. If approval is required, the saved assignment remains in effect until the change is approved and applied.

When you move an application, the new gateway may wait up to 15 minutes for the previous gateway’s access to expire. In the new gateway’s Applications view, wait for the application to show Ready before switching its agents to the new address.

To remove the assignment, select Unassign gateway, then Save changes. To keep the current gateway before saving, select Keep gateway if shown, or Discard changes to discard the full draft.

Choose evidence mode

Evidence mode controls what the gateway records for this application’s traffic. Requests your application sends directly to the hosted Ingest API follow its usual evidence rules.

ChoicePurpose
Use organization defaultTake the evidence mode from Settings > Application gateway defaults when applying the application’s settings.
Capture evidenceCapture gateway evidence and support workflows that need durable records.
Capture on escalationKeep evidence only for actions sent to human review, including the decision and outcome.
Policy onlyEvaluate requests on the gateway and report aggregate usage. The gateway skips routine session and decision evidence.

Capture on escalation supports independent MCP tool calls that require approval before dispatch. Configure MCP tool review and a rule scoped to the pre-tool check. Reviewers act in the Inbox. Gateway activity includes routine request counts and reported model usage.

Use Capture evidence for linked or coordinated calls, managed model processing, agent-to-agent routes, model or output review, and applications that need a complete evidence record.

For SDK govern() through the gateway, choose Capture evidence and confirm it is active under Status > Gateway activity. The SDK sends a session record before running the action.

For Policy only or Capture on escalation, install a release qualified for that mode and wait for the assigned gateway to enroll.

  1. Open Config > Gateway and check the saved Evidence mode, its organization or application source, and the environment.
  2. Select Change evidence mode and choose a mode. If Capture on escalation needs setup, use Open MCP settings to connect a server or Open MCP review settings to configure input review.
  3. Select Apply to draft, then Save changes. Complete the application’s approval workflow if required.
  4. Open Status > Gateway activity. Waiting for gateway means the saved mode is pending. If the previous mode is still active, the status names it. Active shows when the gateway confirmed the selected mode.

For earlier changes, open Config > Access > Application history. Use the confirmed activation times to identify which mode governed each period.

Save the application settings

You need application and governance configuration access in the application’s environment to edit Gateway. Sandbox previews are read-only.

  1. Open the application, select Config, then Gateway. Select Edit gateway settings.
  2. Under Allowed application traffic, select Use SDK-only settings to set up a new application for SDK policy requests. To route model, tool, or agent-to-agent requests through the gateway, enable Proxy model, tool, and agent-to-agent requests and add the routes you need.
  3. For model requests, connect your provider in Settings > Model connections. Record its processing evidence, exact model, capacities, and known rates. Follow Set up model controls for your provider’s connection and host identity steps.
  4. Return to Model controls. Select Add [connection name] route, or choose a connection for an existing route. Choose models, operations, and data classes, then set the application and workload limits. For a host-managed route, enter its operator-supplied Provider credential name in Connections.
  5. Select Save changes. Under Current approval, select Review and approve, review the exact saved version, and approve it. If application change approval is also required, complete that request.
  6. Have the operator apply the matching host settings and check /health/ready. For a model route that uses a workload identity, register the agent’s signing key and request its workload token as described in Set up model controls.

All four setup tabs stay available while you prepare settings. Use Agent-to-agent routes for connections to other applications. The Human review tab configures review for application-key model routes, as described below.

The following limits apply to an ordinary model route. Model controls can supply different bounds for configured native processing.

SettingAllowed value
Model identifiers1 to 16 exact, unique model identifiers
Provider credential name1 to 100 letters, numbers, periods, underscores, or hyphens
Maximum request size256 to 65,536 bytes
Maximum response size256 to 65,536 bytes
Maximum output tokens1 to 4,096
Concurrent requests1 or 2
Request timeout1 to 60 seconds

You can configure up to four model routes. Customer connections supply their saved destination and credential binding. Turning off proxy traffic preserves model routes, MCP and agent-to-agent connections, model controls, and review settings. Prepared settings are still validated when you save. Enable proxy traffic explicitly before using those routes.

Connect an MCP server

Connect one MCP server and choose the tools this application’s agents can use. You need application and governance configuration access. The current profile uses MCP 2026-07-28 with synchronous JSON responses.

Prepare the host and tool list

  1. Install the gateway for this application and environment. Enable the application’s proxy traffic permission for MCP requests.
  2. Ask the deployment operator for the MCP server’s exact HTTPS URL and a Host credential key name, such as support-mcp. The operator stores the server’s bearer token in a protected file and configures the matching host binding. Do not paste that token into the portal.
  3. Export a complete tools/list response from that server using a client that supports this profile, or use the PowerShell example below. The response must include result.resultType: "complete" and the full result.tools array, with no nextCursor. The import can contain up to 256 tools and must fit within 64 KiB.

For a server using the supported stateless JSON 2026-07-28 profile, replace the HTTPS URL and protected token-file path below. Run this on a trusted host with permission to use the server. The token file contains only the MCP server’s bearer token, not the VeriProof application key.

$serverToken = [System.IO.File]::ReadAllText('C:\gateway-secrets\support-mcp').Trim() $headers = @{ Authorization = 'Bearer ' + $serverToken Accept = 'application/json, text/event-stream' 'MCP-Protocol-Version' = '2026-07-28' 'Mcp-Method' = 'tools/list' } $body = @' { "jsonrpc": "2.0", "id": "customer-setup-catalog", "method": "tools/list", "params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } } } '@ try { Invoke-WebRequest -Uri 'https://YOUR_MCP_SERVER/EXACT_MCP_PATH' ` -Method Post -Headers $headers -ContentType 'application/json' ` -Body $body -MaximumRedirection 0 -OutFile './mcp-tools-list.json' } finally { Remove-Variable serverToken, headers }

-OutFile saves the response directly. Open mcp-tools-list.json and copy its complete text into the form; do not parse and re-encode it with ConvertTo-Json. Keep TLS certificate validation enabled. This request is for the profile above, not a universal discovery command for every MCP server. A server that requires another protocol or session flow needs a supported connection before you can use it here.

The portal imports your response; it does not connect to the server or run its tools. For a local development example, the repository’s samples/gateway-mcp/provider.mjs implements this profile. Its --descriptor option outputs one descriptor, not a complete tools/list response.

Add the connection

  1. Open the application, then Config > Gateway. Select Edit gateway settings, enable proxy traffic, and select Add MCP server in Models and tools.
  2. Enter a Route ID, the MCP server URL, and the operator’s Host credential key name. Use the same server URL the operator configured, including its path.
  3. Choose Gateway client authentication: Application API key for X-API-Key, or Application bearer key for Authorization: Bearer. This identifies your application to the gateway. It is separate from the server’s bearer token and does not provide a person’s OAuth identity.
  4. Paste the exported response into tools/list response JSON and select Import tools. Use Search imported tools to find tools by name, title, or description. Select individual tools or Select all matching, up to 16 tools for this application. The selected count includes tools hidden by your search; Clear selection removes those selections too. Import the original descriptors; correct any unsupported descriptor reported by the form instead of removing fields to make it pass.
  5. Set request and response size limits, concurrent requests, and timeout for your workload. Select Add to settings. The server validates the selection and prepares the route and catalog identifiers.
  6. Test the applicable policies, then select Save changes. Under Current approval, select Review and approve, review the exact saved version, and approve it. Complete any additional application change approval. Let the gateway synchronize the published configuration.
  7. Return to Config > Gateway and select View host setup for the saved MCP server. Copy the server-prepared host settings for the operator, then select Follow MCP host setup steps to mount the server token and apply those settings. The token stays on the host.

Connect the agent and check activity

Point the agent’s MCP client at your gateway origin followed by /mcp/<routeId>, using the saved Route ID. Use the application-secret segment of the application’s key in the one authentication header selected above. The gateway host uses the complete application key for its own connection to VeriProof.

Use a client that supports the selected 2026-07-28 profile. Requests use JSON-RPC POST with Content-Type: application/json, Accept: application/json, text/event-stream, and matching MCP-Protocol-Version and Mcp-Method headers; a tools/call request also supplies the matching Mcp-Name. The client must send the profile’s request metadata. Session-based transport and delegated OAuth are not available for this connection.

Check the host’s /health/ready, then request the tool list through the gateway and invoke an approved tool with inputs you are permitted to use. Confirm that the gateway returns only the selected catalog and that the agent receives the permitted result. Open the application’s Status > Gateway activity to inspect the reported configuration and activity. Check the recorded policy decision when a call is refused; use the MCP server’s own records to confirm any external action.

Save the UUID you send in Idempotency-Key with each tools/call. If your client times out, retry the same request with the same key through the same gateway. If the response is HTTP 409 with mcp_request_already_dispatched, the gateway blocked a repeat dispatch. Check the MCP server’s records for the original action before issuing a call with a new key.

Set up MCP tool review

In the application’s Config > Details, enter the Business context and Risk concerns before testing review. VeriProof includes both in the evidence reviewers need to approve a standalone MCP tool call. What to enter

Use tool review when a policy needs a person to approve a tool call or its result. In Human review and escalation, open Callback and test for this application. Select the assigned gateway, enter its review callback address, and create the callback. For the first callback, give the gateway operator the address, registration ID, and version shown in the portal. Once the operator adds the registration to the gateway, select Send safe test, then Turn on callback. Turn on an approval profile that continues the original request.

  1. Open the application’s Config > Gateway and select Edit gateway settings. Next to the server in Models and tools, select MCP review settings.
  2. In MCP tool review, select the Request data class, turn on Pause for human review, and choose the Review profile. Use the links in the form to set up a callback or profile if you need one.
  3. Enter the Checkpoint binding name supplied by your gateway operator. Set the retention and pending-request limits to allow time for review and callback delivery.
  4. Select Save changes, complete the configuration approval, and have the operator apply the matching checkpoint configuration on the gateway host. Configure the policies that send tool calls or results for review, and share the continuation steps below with the agent developer.

To replace an active gateway callback, coordinate with your gateway operator. Pause new tool requests for the application while existing reviews finish and any approved requests resume. Test the new callback, then turn it on and select Use current version in MCP tool review. Save and approve the settings, and have the operator apply the matching registration on the host. Send new tool requests when Status > Gateway activity shows Active.

If a review rule reads a tool argument or result field specific to your application, confirm that field for the application. Run a policy evaluation with a representative test payload and check that the field shows Saved and found in activity before enforcing the rule.

Handle an MCP tool review

When an MCP route requires human review, the gateway holds the tool call or its result. Add a continuation handler to the code that calls the MCP client, so the agent can save its place and let the review finish. For example, a purchase agent can tell the requester that approval is pending and resume the workflow later.

  1. Send each tools/call with a unique UUID in Idempotency-Key. Save it with the workflow so retries use the same key for that action.
  2. When the gateway returns HTTP 409 with error: "mcp_review_required", save requestId, statusUrl, resumeUrl, and expiresAt. Pause the dependent work and tell the requester that review is pending. If your MCP library only exposes the HTTP error, read the response in a transport handler and pass the review details to your workflow.
  3. Poll statusUrl with GET, using backoff and the same application authentication. Resolve the returned path against the gateway origin that received the tool call. While state is awaiting_review, keep the workflow paused. For not_authorized, expired, or closed, stop the dependent work and tell the requester it couldn’t continue.
  4. When state is review_approved, send an empty POST to resumeUrl with the same authentication. On HTTP 200, give the returned MCP result to the waiting workflow. If the gateway returns another mcp_review_required response, save the new handle and wait for result review. Approving the result releases the saved response without calling the tool again.

If the connection drops while you retrieve an approved tool result, send the same empty POST to the result review’s resumeUrl with the same application key. The gateway checks current policy and approval before returning the saved result. You can make up to eight delivery attempts before the review expires.

If you can’t confirm that the tool ran, check the saved status and the MCP server’s records before starting another action. A new operation key can dispatch the tool again. If mcp_request_replayed returns a saved review handle, check that handle’s status. An HTTP 409 without a review handle is a conflict.

Connect an existing gateway

Use Config > Gateway > Connect an existing gateway to register POST routes that your gateway submits to VeriProof before forwarding a request. You need application and governance configuration access.

Keep the two identities separate:

  • The gateway runtime service principal identifies the registered gateway and its application. Use the service principal credential setup to obtain its token with veriproof.gateway.runtime scope. Its current grant must cover the registered application.
  • The delegated caller is the signed-in person making the request. Use OAuth authorization code with PKCE, the S256 challenge method, and scope veriproof.policy.evaluate. Use the deployment’s registered client, redirect URI, and policy-evaluation resource. The person selects a current role grant with access to this application. Device authorization does not support this scope.

Keep runtime credentials in the gateway’s secret store. Send the person’s delegated token separately; a runtime token cannot replace it.

  1. Select Set up existing gateway, then choose the application-scoped Gateway runtime service principal. Use Refresh runtimes after its access or credential changes. If none is available, use Manage service principals when permitted, or ask an administrator to register a gateway runtime for this application.
  2. Enter Start (UTC) and End (UTC). The registration period can span up to 366 days.
  3. Add each route. Route ID must match the gateway configuration. POST path is the exact original path, without query parameters, fragments, or encoded characters. Destination URL is the HTTPS destination, without embedded credentials, a query, a fragment, or a loopback address. Policy action name is the action your rules check.
  4. Set Maximum request body (bytes) to the complete JSON body size your route accepts, from 1 to 65,536 bytes. You can register up to 16 routes.
  5. Select Enable request checks, then Save changes. Complete any required application change approval. In Config > Evidence > Published defaults, review the saved version’s runtime ID, period, and exact route fields before approving it.
  6. Configure the gateway’s authorization hook to match that saved registration. Saving the portal settings does not configure or restart the external gateway.

Configure the authorization call

Send a POST to the customer API’s /v1/gateway/external-authorization/agentgateway endpoint with Content-Type: application/json and these headers:

HeaderValue
AuthorizationRegistered gateway runtime’s Bearer token with veriproof.gateway.runtime scope
X-VP-Caller-AuthorizationThe original caller’s delegated Bearer token
X-VP-Authorization-RouteSaved Route ID
X-VP-Original-PathExact original POST path
X-VP-Original-Content-LengthComplete original body’s byte count
x-envoy-auth-partial-bodyfalse

Copy the complete original UTF-8 JSON body into the authorization request. It must be a JSON object without duplicate property names, within the saved byte limit and 32 levels of nesting. The reported original length and HTTP body length must match those bytes. Do not send a truncated body or a JSON wrapper around it.

For agentgateway’s HTTP authorization hook, configure failureMode: deny and includeRequestBody.allowPartialMessage: false; set includeRequestBody.maxRequestBytes to the saved route limit. Overwrite the authorization-call headers with the runtime token and trusted route values while copying the original caller token separately. Keep the runtime token out of the forwarded destination request.

Handle the decision

Make a fresh authorization call for each request. HTTP 200 with allowed: true permits that request before expiresAtUtc, at most 30 seconds and potentially less. Do not cache the decision for another request. This is a pre-dispatch decision, not an execution or output receipt.

  • 400 or 413: correct the JSON, framing, path headers, or body size. Do not forward the request.
  • 401: refresh the appropriate identity and check the registration period.
  • 403: keep the request blocked. Follow the response code; a review-required response can include reviewReference.
  • 503 or a failed authorization call: keep the request blocked while authorization is unavailable. Never forward on failure.

Review gateway checks

Open the application’s Policy > History and find External gateway checks to review the policy decisions recorded for gateway requests. You need access to policy history for this application. Auditors see checks within their assigned applications and audit periods.

  1. Use Decision to show the results you need.
  2. Open a check to review its action, decision, evaluation time, and approved registration version. Supporting details contains the policy revision and receipt identifiers.
  3. Use Next checks for older records or Refresh checks to return to the latest records.

Use the destination’s own receipt to confirm the completed action.

Pause requests for human review

For an application-key model route, open Human review. Select Open Human review setup to test and activate the application’s callback. Return to the Human review tab, turn on Pause for human review for the model route, and complete these settings. Proxy traffic must be enabled to use the route:

  1. Check the selected callback version. Select Use current version to replace it with the current active, tested callback.
  2. Choose Request data class. This is the application’s declaration of the data contained in requests retained for review.
  3. Enter the Checkpoint binding name supplied by your gateway operator. The operator keeps the corresponding key on the gateway host.
  4. Set Retain paused requests (seconds) to at least the displayed callback minimum and no more than 7 days. Set Maximum paused requests from 1 to 1,000.
  5. Select Save changes and complete any required approval. Have the operator apply the matching review settings on the gateway host.
Request data classChoose for
PublicInformation approved for public sharing
InternalInformation intended for people within your organization
SensitiveConfidential business information requiring limited access
Personal dataInformation that identifies or relates to a person

Choose the class explicitly when you enable review. Changing the callback version preserves your choice. Each retained request keeps the class recorded when it was captured. Restricted request review isn’t available in these settings.

Prepare the gateway host

In More tools > Gateways, select your gateway and open Connection > Install. Check that an installation package is available before setting up a host identity. If you see Request installation access, select it to open a draft in Support. Include the gateway name and your deployment plans so Support can help.

When installation choices are available:

  1. Choose the Deployment profile and Host credential method. Use Identity on the same page to prepare the selected method. Select an active identity binding if the method requires one. For a sidecar, enter your application image pinned to its digest.
  2. If Model processing defaults appears, choose a Data class explicitly. Set Retain model state and Pending requests using the displayed defaults and bounds.
  3. Open Application overrides only for applications that need different model settings. Choose an application, select Add override, and change the fields it needs. Blank fields use the defaults. Select Done to return to installation.
  4. Select Generate installation files. If the release offers Approve installation, a gateway administrator with organization-wide access selects the identity the host will use and approves the release.
  5. Download gateway.env, compose.yaml, or gateway-deployment.yaml for your deployment. Use the identity selected at approval and mount the provider secret files shown with the generated output.

If the application uses Model controls, follow the model gateway operator steps to configure the deployment’s model resource. The gateway uses the application’s issued cell credentials for model requests and evidence.

Before starting the generated deployment, check its file inputs:

  • Compose: create ./gateway-input beside compose.yaml. The generated bind mount requires this directory to exist and mounts it read-only at /run/gateway-input.
  • Host credentials: for enrollment-key authentication, place the issued key in gateway-input/enrollment-key. For federation, arrange for your identity provider’s rotating assertion to be available at /run/gateway-input/federated-token; follow its supported token delivery and refresh setup.
  • Shared HTTPS listener: supply gateway-input/tls/tls.crt and gateway-input/tls/tls.key for Compose. The gateway reads them at /run/gateway-input/tls/tls.crt and /run/gateway-input/tls/tls.key. Give the gateway process read access without exposing the private key to other users.
  • Kubernetes: provision the Secret named gateway-<gateway-id>-input in the Deployment’s namespace. Read the generated input volume’s secret.items entries and supply each exact input-N key with the content required by its path. Those paths are relative to /run/gateway-input, including enrollment-key, federated-token, and tls/tls.crt or tls/tls.key when selected. The numbered mapping depends on the generated settings; don’t assume a fixed number for a file. The generated manifest references the Secret but doesn’t create it. For federation, use your identity provider’s supported assertion delivery and refresh mechanism at the configured token path.

Keep secret values out of gateway.env, deployment files, command arguments, and logs. Provider credential bindings also need the matching tenant, application, environment, and readable secret-file mount described below; the generated input mount doesn’t create a separate /run/secrets mount.

A2A uses the gateway’s saved Agent address. If the address is missing or incorrect, ask a gateway administrator to update the gateway settings before generating files. The generated A2A settings use that address.

The following provider-file settings apply to a host-managed API-key route with credential binding openai-production:

EdgeRuntime__ProviderCredentials__YOUR_APPLICATION_ID__openai-production__TenantId=YOUR_TENANT_ID EdgeRuntime__ProviderCredentials__YOUR_APPLICATION_ID__openai-production__ApplicationId=YOUR_APPLICATION_ID EdgeRuntime__ProviderCredentials__YOUR_APPLICATION_ID__openai-production__Environment=YOUR_APPLICATION_ENVIRONMENT EdgeRuntime__ProviderCredentials__YOUR_APPLICATION_ID__openai-production__SecretFile=/run/secrets/openai-provider

Use the tenant and application IDs for this gateway’s authenticated application. Mount the provider key as a read-only file at /run/secrets/openai-provider, readable by the gateway process. The secret file path must be absolute and local to the gateway host. The portal stores the binding name; the provider key stays in this file.

Customer API-key connections supply their credentials through the authenticated model-runtime connection. Google connections use the configured gateway workload identity. Neither path puts the provider credential in the model client.

Start the gateway

The installation image is in VeriProof’s private GitLab container registry. Use the read-only registry credentials supplied for your deployment. The gateway’s enrollment key or workload identity authenticates the running gateway to VeriProof.

Docker Compose

For a new gateway on Linux, put the journal on a dedicated persistent disk. The journal stores work the gateway needs after a restart. Use a local filesystem and give the gateway’s container account read and write access to its journal directory. Use a separate directory for each gateway replica.

Create compose.override.yaml beside the downloaded compose.yaml. Replace the example path with the directory you prepared on the mounted disk.

volumes: journal: driver: local driver_opts: type: none o: bind device: /srv/veriproof-journal/gateway-one

Run findmnt --target /srv/veriproof-journal/gateway-one with your directory to verify that it uses the dedicated disk. Compose loads compose.override.yaml with compose.yaml. Keep the same journal volume when updating an existing gateway.

In the directory containing the downloaded compose.yaml, sign in to the registry. Enter the read-only token at Docker’s password prompt.

docker login registry.gitlab.com --username YOUR_REGISTRY_USERNAME docker compose up -d --wait docker compose ps

For a sidecar deployment, Compose starts the application container after the gateway reports the assigned application ready.

Kubernetes

Set up registry pull credentials in the deployment namespace. Use your service account’s existing pull configuration or add your registry pull Secret to the generated Deployment’s spec.template.spec.imagePullSecrets. Keep the registry pull Secret separate from the gateway input Secret. Use a storage class that supports single-pod access.

Replace YOUR_NAMESPACE with the deployment namespace and YOUR_GATEWAY_ID with the gateway ID from the generated Deployment name.

kubectl apply -n YOUR_NAMESPACE -f gateway-deployment.yaml kubectl rollout status -n YOUR_NAMESPACE deployment/gateway-YOUR_GATEWAY_ID

Check application readiness

Open the gateway’s Applications view in VeriProof. Wait for the application to show Ready before sending traffic. The gateway downloads and verifies the application’s signed configuration and policies during startup.

For host diagnostics, /health/ready reports process readiness. Use /health/cells/{cellId}/ready for the assigned application’s readiness. If setup stalls, check the application’s status in VeriProof and the gateway’s startup logs.

Tune request admission

If a managed gateway reports capacity refusals during expected traffic, open More tools > Gateways and select the gateway. On Overview, select Applications with capacity refusals to find the affected applications. Compare HTTP admission wait with policy-worker, native-operation, and journal timings. If journal commit time and disk queue depth rise together, check the journal disk before changing admission limits.

Set these variables in gateway.env for Compose or in the gateway container’s env section for Kubernetes.

Environment variableDefaultAllowed value
EdgeRuntime__MaximumActiveRequestsPerCell41 to 32 active HTTP requests per application cell
EdgeRuntime__MaximumWaitingRequestsPerCell40 to 32 waiting requests per cell. Set 0 to refuse immediately when all active slots are occupied.
EdgeRuntime__AdmissionWaitMilliseconds1001 to 1,000 milliseconds for a waiting request

Multiply each per-cell count by the configured EdgeRuntime__MaximumCells. Keep each product at or below 128, even if fewer applications are assigned. These settings apply to HTTP admission. Route concurrency, policy workers, native operations, and memory reservations have separate limits. The gateway uses the configured values when it starts.

Apply the configuration and wait for the affected applications to show Ready. Repeat your expected workload and compare completed requests, capacity refusals, and latency with the previous settings before keeping the change.

Connect a model client

For an application with approved Model controls, authenticate the native client with the registered workload’s short-lived model.access token in Authorization: Bearer. Follow the workload token steps. Use the gateway address and the native path for the selected route:

Provider routeNative request path
OpenAI Responses/v1/responses
Azure OpenAI Responses/openai/v1/responses, with model set to the selected Azure deployment name
Anthropic Messages/v1/messages, with the saved anthropic-version
Amazon Bedrock Messages/anthropic/v1/messages, with model anthropic.claude-haiku-4-5 and anthropic-version: 2023-06-01
OpenAI-compatible Chat Completions/v1/chat/completions
Google Vertex AI/v1beta1/projects/<project>/locations/us/publishers/google/models/<model>:generateContent, or :streamGenerateContent?alt=sse for streaming

Use the exact configured model, project where applicable, response profile, and limits. The gateway checks a completed response before returning JSON or buffered streaming events. The source package’s samples/gateway-models clients show the request shapes for their configured profiles.

For Azure OpenAI, complete the Azure connection and host identity setup, then set the OpenAI SDK’s base URL to your gateway followed by /openai/v1/. Using getToken() from the linked workload token procedure, configure the client as follows:

import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://YOUR_GATEWAY/openai/v1/', apiKey: await getToken(), maxRetries: 0, });

The SDK’s apiKey option receives the registered VeriProof workload’s Bearer token. Keep the workload token helper available to refresh it. Set each request’s model to the exact deployment selected in Model controls. Azure provider credentials stay on the gateway host.

Amazon Bedrock Messages with Claude Code

Complete the Bedrock connection and host identity setup, save and approve the application settings, and register the workload. Use a gateway release qualified for this profile. Claude Code connects to the gateway, using its Mantle provider selection:

SettingValue
CLAUDE_CODE_USE_MANTLE1
CLAUDE_CODE_SKIP_MANTLE_AUTH1
ANTHROPIC_BEDROCK_MANTLE_BASE_URLhttps://YOUR_GATEWAY/anthropic
AWS_REGIONus-east-1
ANTHROPIC_AUTH_TOKENRegistered workload’s short-lived model.access token
--modelanthropic.claude-haiku-4-5

Claude Code appends /v1/messages to that base URL. Keep AWS credentials on the gateway host. Use the workload token as the Bearer credential; do not configure ANTHROPIC_API_KEY, AWS_BEARER_TOKEN_BEDROCK, or an apiKeyHelper for this connection.

To obtain a fresh token without printing it or putting it in command arguments, create a Node launcher at the source package root. Copy the JavaScript token-provider setup from Request a workload token, replacing its final await getToken() and console.log lines with the following. Set the executable and configuration paths for your host; use a separate, private Claude configuration directory for this gateway.

import { spawn } from 'node:child_process'; const env = {}; for (const name of ['PATH', 'SystemRoot', 'WINDIR', 'COMSPEC', 'HOME', 'USERPROFILE', 'APPDATA', 'LOCALAPPDATA', 'TEMP', 'TMP', 'CLAUDE_CODE_GIT_BASH_PATH']) { if (process.env[name]) env[name] = process.env[name]; } Object.assign(env, { CLAUDE_CONFIG_DIR: '/path/to/private/claude-gateway-config', CLAUDE_CODE_USE_MANTLE: '1', CLAUDE_CODE_SKIP_MANTLE_AUTH: '1', ANTHROPIC_BEDROCK_MANTLE_BASE_URL: 'https://YOUR_GATEWAY/anthropic', AWS_REGION: 'us-east-1', ANTHROPIC_AUTH_TOKEN: await getToken(), CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: '1', }); const child = spawn('/path/to/claude', [ '--setting-sources', '', '--no-session-persistence', '--model', 'anthropic.claude-haiku-4-5', ...process.argv.slice(2), ], { env, stdio: 'inherit', shell: false }); delete env.ANTHROPIC_AUTH_TOKEN; child.on('error', () => { process.exitCode = 1; }); child.on('exit', code => { process.exitCode = code ?? 1; });

Save it as claude-gateway.mjs at the source package root. On Windows, use the full claude.exe path and a Windows configuration directory. Run it from the project directory you want Claude Code to work in, for example:

node /path/to/source-package/claude-gateway.mjs --print --max-turns 2 "Summarize the current project."

The launcher obtains one short-lived token for that run. Run it again for a fresh token when starting another session or after authentication expires. Keep Claude Code’s tool permissions enabled and approve only the local actions needed for your task.

Application-key OpenAI text route

Use this separate path when the application has an ordinary OpenAI text route without native Model controls. Set the client’s base URL to the gateway address followed by /v1, for example http://127.0.0.1:7080/v1 for an agent on the same host. For connections outside the local host or shared container network, use the deployment’s TLS address and network access policy.

Use the application-secret segment of the complete VeriProof application SDK key as this client’s API key. The complete key has three segments; the application secret is the last segment. The gateway host uses the complete SDK key for its connection to VeriProof. This application-key client sends only the application secret in Authorization: Bearer; the workload-token path above does not accept it as a fallback. Never put the OpenAI provider key in the client or send both Bearer and X-API-Key authentication.

The JSON-only profile openai-responses-text-json-v1 accepts a request with these fields:

FieldValue
modelAn exact identifier from Approved model identifiers
inputA nonempty text string
instructionsOptional text string
storeRequired, false
max_output_tokensRequired whole number from 1 to the saved Maximum output tokens
streamOmit it or set it to false

Use text messages for this JSON-only profile. Tools, structured-output settings, media, conversation references, background work, and streaming aren’t accepted. Remove extra client options and routing headers. Disable automatic client retries; the gateway makes one upstream attempt for each request.

Send an application-key JSON test request

Run this Bash example from the agent’s network location. Have your secret store supply GATEWAY_APPLICATION_SECRET; don’t paste the secret into a command or source file. Set GATEWAY_MODEL_ID to an exact identifier saved for this application. The saved output-token limit must be at least 128 for this example.

export GATEWAY_BASE_URL='http://127.0.0.1:7080/v1' export GATEWAY_MODEL_ID='YOUR_APPROVED_MODEL_ID' : "${GATEWAY_APPLICATION_SECRET:?Load the gateway application secret from your secret store}" curl --silent --show-error --include --retry 0 \ --request POST "${GATEWAY_BASE_URL}/responses" \ --header "Authorization: Bearer ${GATEWAY_APPLICATION_SECRET}" \ --header 'Content-Type: application/json' \ --data-binary @- <<JSON { "model": "${GATEWAY_MODEL_ID}", "input": "Reply with the word ready.", "max_output_tokens": 128, "store": false, "stream": false } JSON

A completed request returns the provider’s native Responses JSON after the gateway permits the output. Inspect status and the output messages. With Capture evidence active, you can also review the request in Gateway activity. For a gateway rejection, read error.code and use the recovery steps below.

Check gateway activity

Open the application, select Status, then Gateway activity. Check its reported status and traffic report. Use the action shown, if available, to open the relevant settings.

Expand Connection details for configuration revisions, the reporting instance, lease expiry, and exact observation and receipt times. A past sync or accepted report doesn’t confirm that the gateway is currently running. Application Status describes the reported fields.

Open a request’s workflow

Select Model requests to open the application’s recorded model requests in a side panel. A request recorded under a session has Open workflow, which opens the Time Machine at Whole workflow scope. A request made inside an SDK action appears under that action, with the workflow’s other model, MCP, and A2A operations. Each is labeled with the boundary that checked it: Checked by the SDK, Checked by the model proxy, Checked by the MCP proxy, or Checked on the A2A route. See Keep linked work in one workflow for how requests join a workflow.

Review refused linked calls

Refused linked calls appears after the gateway refuses a call because it couldn’t confirm the earlier work the call named while disconnected from VeriProof. These calls failed with lineage_unverifiable before their actions ran.

The summary counts the calls refused since the gateway last started, and the list shows up to the 10 most recent. Each row shows when the call was refused and where: SDK endpoint, Model proxy, MCP proxy, or A2A route, with the route ID for a proxy or route.

  • Open the earlier work opens the workflow of the session the call named, once that session has reached VeriProof.
  • Until then, the row says the earlier work hasn’t reached VeriProof yet.

To recover, confirm the gateway is connected again, then have the application send each refused call again. Because the count restarts with the gateway, use the list to follow up on recent refusals rather than as a complete record.

Earlier work that hasn’t arrived

A gateway delivers evidence to VeriProof in the background, and it keeps undelivered evidence for as long as delivery takes. If a linked session’s evidence reaches VeriProof before the earlier session it names, the Workflow panel shows that earlier session as Not yet received. The row updates when the evidence arrives.

Elapsed time never changes Not yet received to missing: a gateway that’s been disconnected for hours still holds the evidence. A session in this state doesn’t authorize other work. If the row stays for longer than you expect, check the gateway’s connection and delivery state in Gateway activity.

Recover a request

Symptom or codeAction
Saved settings haven’t taken effect; policy_sync_required, proxy_mode_not_authorized, or gateway_mode_not_authorizedConfirm the saved application and environment. Ask the operator to check the host’s application binding, mode, connection to the ingest server, and acceptance of the current signed configuration. Check /health/ready again. Saving Gateway does not restart the host.
HTTP 404 at /v1/responsesCheck the base URL and deployed gateway build. The proxy route is registered only when the host starts in Firewall or Combined mode.
application_credential_invalidUse this application’s application-secret segment in one Bearer header. Remove a second authentication header and check whether the application key changed.
proxy_credential_scope_invalid or proxy_credential_unavailableHave the operator match the mounted binding’s tenant and application IDs to the gateway application, then check the absolute secret file path and process read access.
proxy_model_not_approvedMatch model exactly to the saved list. If another model is required, ask an authorized configuration editor to update the list and let the gateway synchronize it.
proxy_policy_deniedReview the applicable policy decision. A check before the model call blocks dispatch; a check after the call withholds output. Correct the request or have the policy owner review the rule.
proxy_capability_unsupported or proxy_output_limit_invalidSend only the supported fields above, with store: false, streaming off, and an explicit output limit within the saved bound.
proxy_continuation_unsupported or proxy_transform_unsupportedThe policy requests a review continuation or output change that this proxy profile cannot complete. Ask the policy owner to choose a supported workflow. Repeating the same request won’t complete that workflow.
lineage_unverifiableThe request named earlier work the gateway couldn’t confirm while disconnected from VeriProof, so it didn’t send the request. Check the gateway’s connection to VeriProof, then send the request again. The refusal appears in Refused linked calls.
proxy_overloaded or worker_overloadedReduce parallel requests to the saved limit and available policy capacity.
cell_capacity_unavailableCheck for a draining gateway or capacity refusals for the affected application.
mcp_overloadedCheck the MCP route’s Concurrent requests setting and reduce parallel calls while you investigate.
proxy_upstream_unavailable, proxy_deadline_exceeded, or a provider errorInspect the application’s recorded dispatch outcome and the operator’s provider connection, credential, and account checks before sending another request. A timeout or lost response can follow provider processing. Keep automatic retries disabled.
proxy_response_invalid, proxy_response_capability_unsupported, or proxy_response_too_largeThe gateway withheld the response. Check whether the model returns supported text output and whether the response fits the saved byte limit. Review the recorded outcome before another request.

When an outcome is uncertain or remains dispatch_started, treat the provider action as unresolved. A recorded output release of authorized means the gateway permitted that release; check the client result to confirm receipt.

Last updated on