Skip to main content

Quickstart

Send a request to an AI model through Verdictan. Then find the response, the decision, and the token usage in the Console.

Needs an EU or US Console account and an OpenAI API key with credit.

Open two terminal windows on a supported host. The current direct release supports Linux amd64/arm64 and macOS Apple silicon. See Install the gateway for release assets and channel availability.

Terminal 1 runs the gateway. Terminal 2 sends your request. Keep Terminal 1 open until you finish.

1. Prepare the Console​

This path uses the default Assistant agent. The setup guide on Overview has three pages: I Model, II Gateway, and III Hello.

  1. Open Overview. Page I Model shows Route your first request.
  2. Under Provider model, select gpt-5.4-mini with the OpenAI provider. It is the default. If it is not in the list, select Search the catalog and search for openai/gpt-5.4-mini.
  3. Select Continue with gpt-5.4-mini. The Console generates a gateway token and opens II Gateway.
You should see: Page II Gateway shows Start the gateway. Keep this browser tab open while you start the gateway.

If you closed the guide with Skip for now, select Show setup guide on Overview to open it again.

2. Start the gateway​

  1. On II Gateway, select your supported operating system. The setup screen can show other operating systems; confirm that the selected release publishes a binary for your host before you run its installer.
  2. Select Copy command. The command contains the gateway token.
  3. Paste the command into Terminal 1. Replace <YOUR_OPENAI_API_KEY> with your OpenAI key. Run the command.

Do not include the key in screenshots. Do not save it in a repository.

You should see: Terminal 1 reports gateway listening on http://127.0.0.1:41002. Keep this terminal open.

The page shows Gateway connected and Configuration applied. Then it turns to III Hello. If the page shows Deploy a configuration to this agent and gateway before you continue., select Deploy a configuration and deploy one.

If your provider key is in Verdictan Secrets, open Setup details next to the command and set OpenAI key to Saved in Secrets. The command then has no OPENAI_API_KEY line. See the saved-key procedure.

3. Send a request​

  1. On III Hello, select the request tool: curl, httpie, Python, or Node.js.
  2. Select Copy request. The request contains the API token.
  3. Paste the complete command into Terminal 2. Run it.
You should see: Terminal 2 returns a JSON response with a model reply in choices[0].message.content. The text can be different.

When the request is allowed, the page shows “Hello” with an ALLOWED stamp, the model, the token count, and the gateway.

4. Find the decision and usage​

  1. On the “Hello” page, select View in History.

To close the guide, select Open the Overview. The Overview then shows a First verdict line with a View session link.

Then do these steps:

  1. In Entry timeline, select your request, for example Entry #1. The entry opens in a panel at the bottom of the page.
  2. To show all of the entry, select the maximize button next to Close. Its tooltip says Maximize entry detail drawer.
  3. Examine the response. In Audit facts, examine Decision, Model, and Token usage.
History entry panel with the model response, an Allowed decision, the model, and token usage.
In this recorded example, the response has an Allowed decision. Your response and token count can be different.

Allowed shows that this request passed the configured checks. Token usage shows how much text the provider processed and returned.

To see the estimated cost, open Usage. Find your model in Cost and usage breakdown. Select a date range that includes your request. A small total can show <$0.01. The cost graph shows more detail. These totals are for the selected period. They can include other requests.

You should see: Your request completed. You can find its response, decision, and usage in Verdictan.

5. Block a request with a policy​

For either runtime, you can deploy your own rules with CLI 0.1.14 or later. After a configuration change, check In sync in Gateways before you test its behavior. Run gateway 0.1.14 or later for reports after a reload. Use the log checks on that page for an older gateway.

The terminal path does not deploy the example policy. To do this test, select the In Docker tab. To add rules to your agent, read the policy overview. Otherwise, go to Stop the gateway.

6. Stop a request with a budget​

This test uses the API token and agent URL from the In Docker tab. To do the test, select that tab. To set spending limits for your application, read Usage and budgets.

Stop the gateway​

Use Ctrl+C in Terminal 1. Close that terminal to clear its environment variables.

Your agent URL can receive requests only when a gateway is connected.

Troubleshooting​

ProblemAction
The installation command failed.Read the error in Terminal 1. If Verdictan installed, run verdictan doctor. Correct the reported problem.
II Gateway shows The gateway hasn't checked in.Keep Terminal 1 open. Read its connection errors. Do the items in Errata, then select Check again. To use a new token, select New gateway token and run the new command.
The request returns 401.Use the API token, not your OpenAI key or the gateway token. On the terminal path, copy the complete command from III Hello again.
The request returns 403.Read the error code. Examine the permissions and spending limits for the token. See gateway errors.
The provider rejects the request.Read the provider error for key, credit, or model-access problems. If you change the key variable, stop the gateway. Then start it again from the same terminal.
The request returns a response without an error but III Hello still shows Waiting for hello.Make sure that the selected organization and agent are correct. Then send the request again. If the page shows Request recorded, but not allowed with a response., read Latest request and select Check again.
Usage does not show the request.Refresh Usage with a time range that includes your test. A small total shows as <$0.01.

Next steps​