Manage gateways
Gateways in the Console lists each gateway registered to your organization, when it last connected, and the agent that it serves. A gateway is the verdictan process that applies your rules and calls the model provider. A gateway serves exactly one agent. An agent can have many gateways.
Kalkidan registers its gateways for you. Their IDs start with kalkidan-. A computer has one gateway for each agent that its chats use. See Kalkidan computers.
The Console record and the running process are separate. Creating a record does not start a gateway, and deleting a record does not stop an installed service.
For your first gateway, use the quickstart. Use this page to add more gateways and to look after the ones you have.
Before you start
- To see gateways, you need
gateways:read. To register one, you needgateways:register. To delete one, you needgateways:admin. To rotate its gateway token, you needgateways:rotate_token. - Have an agent with a configuration.
- On the gateway host, have the provider credentials that the configuration uses.
- To send a test request, have an API token.
Register a gateway
- Open Gateways and select Register gateway.
- Enter a Gateway ID, such as
support-test-1. - Select the agent for this gateway.
- Select Create registration.
- Copy the Runtime registration command.
- Set the provider environment variables on the gateway host.
- Run the command on that host.
- Return to Gateways and wait for the first report from the gateway.
The command contains the API address, the runtime registration ID, and a gateway token. The Console shows the gateway token one time only. Keep it out of screenshots, tickets, and shared shell history.
To run the gateway in a container, put the same values in the Compose file from the quickstart in Docker.
The gateway opens an outbound connection to Verdictan, and the agent address forwards requests through that connection. You do not have to open an inbound port on your router.
Verify a gateway
- Open the gateway and select the Overview tab.
- Examine the last connection time, the agent, and the configuration version.
- Send one model request through the agent address with your API token.
- Examine the response and its recorded decision.
You can also read the delivered request events with your signed-in CLI profile:
verdictan events tail --since 10m --jsonOn a host that runs a local configuration file, check how the gateway loads the file and resolves its credentials:
verdictan gateway check --config policy-config.yamlgateway check does not send a model request.
Read the fleet status
The list tells you these things about each gateway:

| Signal | Meaning |
|---|---|
| Status | Online, Stale, or Offline, from the age of the last heartbeat. See below. |
| Agent | The gateway serves that agent. |
| Configuration | A configuration is assigned or reported. Compare its version and sync state. |
A running gateway sends a heartbeat every 30 seconds. The status comes from the age of the last heartbeat:
| Status | Meaning | Action |
|---|---|---|
| Online | The last heartbeat is less than 90 seconds old. | None. |
| Stale | The last heartbeat is 90 seconds old or more. The gateway can be restarting, or it can have lost its connection. | Check the gateway process and its network before you send more traffic. |
| Offline | The gateway is stopped, or it has not sent a heartbeat. | Start the gateway. See Troubleshooting. |
A recent report or a 200 from /healthz shows that the process runs. It does not prove provider access. Send a request to test that.
A missing metric does not mean zero. The gateway may have had no traffic, reported late, gone offline, or your account may not have access to the metric.
Detail tabs
| Tab | What it shows |
|---|---|
| Overview | Endpoint, agent, configuration, health, and a Context Fabric summary |
| Runtime | Runtime and provider measurements for a period |
| Tags | Labels for grouping and classification |
| Audit | Changes recorded for the gateway |
On the host of an installed service, verdictan gateway status reports the local process state. See verdictan gateway for the service commands.
Replace a gateway token
Replace the gateway token if a person who must not have it can see it. The gateway page has no rotation control. Use the API operation POST /v1 with an administrator API token and the API address of your region.
Rotation revokes the active gateway tokens of the gateway, so plan a short maintenance period.
- Call the rotation operation for the gateway.
- Save the new token in protected storage. The API returns it one time only.
- Put the new token in the secret source of the gateway.
- Stop the gateway and start it again with the new token.
- Make sure that the gateway reports again.
- Send a test request.
- Find the rotation record in the Audit tab.
Give each gateway record its own gateway token.
Remove a gateway
- Stop the application traffic that uses the gateway.
- Remove its agent link.
- Make sure that no control manifest declares the gateway.
- Keep the audit evidence that you need.
- Delete the record from Gateways.
If the gateway runs as a service, also stop or remove the service on its host.
Next steps
- Use your central agent URL: diagnose the outbound connection.
- Troubleshooting: find why a gateway does not report or does not process requests.