Skip to main content

CLI overview

The verdictan CLI runs your gateway and manages Verdictan from a terminal: policy files, tokens, events, and audit trails. Check that it is installed:

verdictan --version

If the command is missing, install the CLI. To send your first model request, follow the quickstart.

Sign in and verify your identity​

verdictan auth login
verdictan auth whoami

auth login finishes in your browser. Before any administrative command, check that whoami shows the right user and organization.

A VERDICTAN_API_TOKEN in the environment takes priority over your saved login. Keep a gateway token in its own terminal so it doesn't replace your login by accident.

Select your next task​

TaskCommand
Inspect a coding agentverdictan acp
Manage profiles and region defaultsverdictan configure
Integrate desktop gateway controlverdictan gateway supervise
Start a configuration projectverdictan init
Check a policy fileverdictan policy lint
Test policy decisionsverdictan policy test
Run a gatewayverdictan gateway run
Diagnose a setup problemverdictan doctor
Read request decisionsverdictan events
Manage tokens and spendverdictan token and verdictan spend
Review administrative changesverdictan trail

Commands lists every command group, including agents, teams, secrets, exports, and declarative management.

Find options for a command​

Every command documents its own options:

verdictan gateway run --help
verdictan events tail --help

Options differ between commands, so trust the command's --help over memory.

Profiles and shared options​

The CLI connection file, ~/.verdictan/config.yaml, stores API connection defaults and per-profile region defaults. Saved sign-in sessions are separate. Most commands select the default profile unless you pass --profile. The connection file is separate from policy-config.yaml, which describes gateway behavior.

Use verdictan configure to list terminal profiles or store a region default. ACP commands use kalkidan as their default profile. See verdictan acp for their storage and account connection.

Many commands accept these options:

OptionEffect
--profile NAMEUse a saved profile
--api-url URLUse another control-plane API endpoint. The default, https://api.verdictan.com, goes to the EU region. A US organization uses https://api.us.verdictan.com
--config PATHUse another CLI configuration file
--jsonPrint structured output
--lang TAGAccepted for compatibility. The CLI prints English only. A non-English tag prints a warning, and the command continues.
--region REGIONTarget a region, in the position that command documents

Local runtime commands and API commands pick a region differently. See Select a region.

Environment variables​

VariableEffect
VERDICTAN_API_URLControl-plane API URL. Without it, the CLI uses https://api.verdictan.com, which goes to the EU region
VERDICTAN_API_TOKENCredential for CLI API calls, or for a connected gateway runtime
VERDICTAN_CONFIGCLI configuration file path
VERDICTAN_LANGAccepted for compatibility, as --lang. A non-English value prints a warning.
VERDICTAN_REGIONGateway deployment and telemetry region label. API commands do not use it as a fallback.

Provider keys go in whichever variable a target's secret_key_ref.env names, such as OPENAI_API_KEY, in the gateway's environment.

Keep three credentials apart: the provider key, the gateway token, and the API token. See Keep the credentials different.

The CLI refuses credentials on the command line: --api-token, --admin-token, --gateway-key, and --upstream-api-key are rejected. Use an environment variable or your saved login.

For automation, use the scripting reference for input rules, output streams, confirmations, and exit codes. The environment reference lists customer-configurable runtime, storage, provider, and telemetry variables.

Next steps​