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 --versionIf 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 whoamiauth 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
| Task | Command |
|---|---|
| Inspect a coding agent | verdictan acp |
| Manage profiles and region defaults | verdictan configure |
| Integrate desktop gateway control | verdictan gateway supervise |
| Start a configuration project | verdictan init |
| Check a policy file | verdictan policy lint |
| Test policy decisions | verdictan policy test |
| Run a gateway | verdictan gateway run |
| Diagnose a setup problem | verdictan doctor |
| Read request decisions | verdictan events |
| Manage tokens and spend | verdictan token and verdictan spend |
| Review administrative changes | verdictan 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 --helpOptions 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:
| Option | Effect |
|---|---|
--profile NAME | Use a saved profile |
--api-url URL | Use 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 PATH | Use another CLI configuration file |
--json | Print structured output |
--lang TAG | Accepted for compatibility. The CLI prints English only. A non-English tag prints a warning, and the command continues. |
--region REGION | Target a region, in the position that command documents |
Local runtime commands and API commands pick a region differently. See Select a region.
Environment variables
| Variable | Effect |
|---|---|
VERDICTAN_API_URL | Control-plane API URL. Without it, the CLI uses https://api.verdictan.com, which goes to the EU region |
VERDICTAN_API_TOKEN | Credential for CLI API calls, or for a connected gateway runtime |
VERDICTAN_CONFIG | CLI configuration file path |
VERDICTAN_LANG | Accepted for compatibility, as --lang. A non-English value prints a warning. |
VERDICTAN_REGION | Gateway 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
- Quickstart: send your first request.
- Manage configuration in a file: configure and test gateway behavior.
- Authentication: login sessions and tokens.