Skip to main content

CLI Overview

Use the verdictan CLI to manage the public Verdictan workflow from the terminal.

Start here

TaskStart with
Install the CLIInstall the Gateway
Bootstrap a configverdictan init
Validate config and policyConfig Validation and Policy Lifecycle
Run a gatewayverdictan gateway run
Manage profiles and regionsRegions Overview and Region Commands
Connect an MCP client to VerdictanGateway MCP Surface
Examine runtime outcomesverdictan events and verdictan export-jobs
Review immutable audit evidenceverdictan trail
Manage tokens and authverdictan auth
Review spend and budgetsverdictan spend

Public command groups

WorkflowCommands
Bootstrap and diagnosticsverdictan init, verdictan doctor, verdictan config validate
Auth and tokensverdictan auth ..., verdictan token ...
Policy authoringUse verdictan policy lint/test/push/deploy for runtime config. Use verdictan policy diff/apply/evaluate/export for IAM.
Gateway runtimeverdictan gateway ...
Profiles, regions, and localityverdictan configure ..., verdictan regions ..., verdictan --region ...
Published-hostname MCPGateway-hosted /mcp surface on a published agent hostname
Events and evidenceverdictan events ..., verdictan trail ..., verdictan export-jobs ..., verdictan escalation ...
Cache and secretsverdictan cache ..., verdictan secret ..., verdictan secrets ...
IAM and agentsverdictan user ..., verdictan team ..., verdictan role ..., verdictan iam policy ..., verdictan agent ...
Spend and budgetsverdictan spend summary, verdictan spend budget ..., verdictan spend provider-budget ...
Declarative control planeverdictan control plan/apply/export

This site lists customer command groups that are available for public use.

Typical public workflow

export VERDICTAN_API_URL="https://api.verdictan.com"
export VERDICTAN_API_TOKEN="vdt_your_authorized_token"

verdictan init
verdictan config validate --file policy-config.yaml
verdictan policy lint --file policy-config.yaml
verdictan policy test --json
verdictan gateway check --config policy-config.yaml
# Add a provider target and its referenced secret before serving model traffic.
# Replace docs-demo with an existing control-plane agent name.
verdictan gateway run --agent docs-demo --listen 127.0.0.1:41002 --policy-config policy-config.yaml
verdictan events tail --since 5m --json

Shared global options

--lang and the compatibility --region shim are top-level global options. The other flags below are command-specific. If the selected subcommand documents one of these flags, you can use it.

FlagMeaning
--langSelect localized CLI output, overriding VERDICTAN_LANG and the OS locale
--jsonIf the command supports it, request JSON output.
--configIf the command supports it, select a local CLI config file.
--api-urlOverride the API base URL on supported API-backed commands
--profileSelect a named CLI profile on supported API-backed commands
--regionSet the process region for local runtime surfaces that use the compatibility shim. API commands that support regions have their own --region option.

The default CLI config file path is ~/.verdictan/config.yaml.

For API authentication, use VERDICTAN_API_TOKEN or a stored profile from verdictan auth login. The CLI no longer accepts API tokens as command-line flags.

Declarative-config precedence

Use ~/.verdictan/config.yaml for CLI profile defaults, such as the requested region. Use policy-config.yaml for gateway runtime and provider routing. This policy config includes behavior that uses locality. verdictan regions current helps you examine the profile default. It does not rewrite policy-config.yaml.

Key environment variables

VariablePurpose
VERDICTAN_API_URLVerdictan API base URL
VERDICTAN_API_TOKENUse as a direct CLI credential or connected-runtime service credential. It is not automatically the application bearer token for model requests.
VERDICTAN_REGIONCompatibility process region for surfaces that continue to use it. It is not the API-command region fallback.
VERDICTAN_OPENAI_API_KEYRecommended OpenAI provider secret name. Reference this environment name through secret_key_ref.env.
VERDICTAN_CONFIGPath to a local CLI config file

The gateway resolves provider credentials only from the declared environment or secret-store name that the target declares. The gateway does not implicitly fall back to generic provider variables such as OPENAI_API_KEY.

Next steps