verdictan agent
An agent is the saved identity and configuration for an application in the control plane. A gateway is the program that receives the application's requests. Use verdictan agent to manage agent records and to link each agent to the gateways that serve it.
For installed coding agents and their managed execution, use verdictan acp. An ACP profile ID is separate from a control-plane agent ID.
Command reference
verdictan agent list [--status <status>] [--json]
verdictan agent get --agent-id <id> [--json]
verdictan agent create --name <name> [--description <text>] [--json]
verdictan agent update --agent-id <id> [--name <name>] [--description <text>] [--status <status>] [--json]
verdictan agent delete --agent-id <id> --yes [--json]
verdictan agent link-gateway --agent-id <id> --gateway-id <id> [--json]
verdictan agent unlink-gateway --agent-id <id> --gateway-id <id> --yes [--json]list sends GET /v1. The API returns one page of at most 50 agents, newest first. The CLI does not request more pages. With --json, the response also has next_cursor, which is set when more agents exist.
get prints the ID, name, description, status, and timestamps. With --json, the response also has fields such as gateway_ids, configuration_id, published_endpoints, resource_tags, and is_default.
Options
| Flag | Applies to | Description |
|---|---|---|
--agent-id <id> | All except list and create | Required. The agent ID. |
--status <status> | list, update | For list, return only agents with this status. For update, set the status. The values are active, inactive, and suspended. |
--name <name> | create, update | Agent name. It must be unique in the organization. Required for create. |
--description <text> | create, update | Description. |
--gateway-id <id> | link-gateway, unlink-gateway | Required. The gateway ID to link or unlink. |
--yes | delete, unlink-gateway | Confirm the change. Without it, the command stops with pass --yes to confirm ... and changes nothing. |
--json | All | Print the API response as JSON, not the text summary. |
--config <path>, --api-url <url>, --profile <name>, --region <region> | All | Connection and profile overrides. The default profile is default. |
Create and link an agent
-
Find your agent:
verdictan agent listEach line shows
<id> <name> <status>. -
If your agent is not in the list, create it:
verdictan agent create \ --name "Support Bot" \ --description "Answers support questions"The command prints
created agent <id>. Copy the ID. -
Find a gateway with
verdictan gateway list --remote. Copy its ID. Then link the gateway to the agent:AGENT_ID="replace-with-your-agent-id" GATEWAY_ID="replace-with-your-gateway-id" verdictan agent link-gateway \ --agent-id "$AGENT_ID" \ --gateway-id "$GATEWAY_ID" -
Verify the link:
verdictan agent get --agent-id "$AGENT_ID" --json | jq '.gateway_ids'The array contains your gateway ID.
A link changes control-plane records only. It does not install or start a gateway process. Continue with verdictan gateway run, or follow the Quickstart for the complete setup.
Disable or remove an agent
To stop using an agent and keep its record, change its status:
verdictan agent update --agent-id "$AGENT_ID" --status inactiveTo remove one gateway link:
verdictan agent unlink-gateway --agent-id "$AGENT_ID" --gateway-id "$GATEWAY_ID" --yesWhen you unlink the last gateway of the agent, the API also disables the agent's published publications.
Delete the agent only when you no longer need its configuration and published endpoints:
verdictan agent delete --agent-id "$AGENT_ID" --yesThese commands change organization resources immediately. Check the IDs before you run them.
Limits and failure behavior
- One gateway serves one agent. Linking a gateway that serves a different agent returns HTTP
409withgateway_already_bound. Unlink it from the other agent first. link-gatewayis idempotent for the same agent and gateway. A second call does not create a second link.- When you link a gateway, the API can publish the agent's draft publications.
deletefails with HTTP409andagents.publications_activewhile the agent has published publications. Pause or drain the agent first. Draining publications do not stop the delete.updatestops withnothing to update: provide --name, --description, or --statuswhen you pass none of those flags.deleteandunlink-gatewaydo not prompt. They need--yes.- Do not delete an agent to remove a link. Use
unlink-gateway.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
missing api token (set VERDICTAN_API_TOKEN or run `verdictan auth login`) | No token in the environment or the profile. | Set VERDICTAN_API_TOKEN, or run verdictan auth login. |
api authentication failed (401) | The token is invalid or expired. | Sign in again, or use a valid token. |
api authorization failed (403) | The credential does not have the permission for the subcommand. | Check the permission table in Before you start. |
api request failed with status 400 | The agent ID is not a UUID (agents.invalid_id). | Copy the ID from verdictan agent list. |
api request failed with status 404 | The agent does not exist in the organization, or it belongs to a team that you have no permission for. | Check the ID, the profile, and your team permissions. |
api validation failed (422) on list | --status is not active, inactive, or suspended. | Use one of those values. |
api validation failed (422) on link-gateway | The gateway ID is not in this organization (agents.invalid_gateway). | Copy the ID from verdictan gateway list --remote. |
api conflict (409) | The name is already in use (agents.duplicate_name), the gateway serves another agent, or the agent has active publications. | Choose a different name, unlink the gateway from the other agent, or disable the publications. |
api request failed with status 500 on update | --status is not active, inactive, or suspended. | Use one of those values. |
| The link succeeds, but the gateway receives no traffic. | A link does not start or configure the gateway process. | Examine the gateway runtime and the agent that it serves. |
Permissions
-
Set
VERDICTAN_API_TOKEN, or sign in withverdictan auth login. -
Get the permission for each subcommand:
Subcommand Permission listagents:listgetagents:readcreateagents:createupdateagents:updatedeleteagents:deletelink-gatewayagents:bind_gatewayunlink-gatewayagents:unbind_gateway -
An agent that belongs to a team also needs that permission for the team's agents. Without it, the API answers HTTP
404withagents.not_found, as if the agent did not exist. -
Agent IDs are UUIDs. Gateway IDs are the
gateway_idvalues fromverdictan gateway list --remote.
Complete command reference
Select a command for its complete input table. Default input means the value used when that option is omitted.
A value marked Not set can still come from configuration or the environment, as described above.
Set uppercase variables in example templates to your own resource IDs and paths before use.
See CLI scripting for quoting, output streams, confirmation, and exit codes.
verdictan agent list [OPTIONS]| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--status <STATUS> | No | Not set | Filter by status (for example, "active" or "inactive") |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan agent listverdictan agent get [OPTIONS] --agent-id <AGENT_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--agent-id <AGENT_ID> | Yes | Not set | Agent id |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text presents the selected resource records. With --json, the command prints the API response. See the workflow above for its fields.
Example template:
verdictan agent get --agent-id "$AGENT_ID"verdictan agent create [OPTIONS] --name <NAME>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--name <NAME> | Yes | Not set | Agent name |
--description <DESCRIPTION> | No | Not set | Optional description |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan agent create --name "example"verdictan agent update [OPTIONS] --agent-id <AGENT_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--agent-id <AGENT_ID> | Yes | Not set | Agent id |
--name <NAME> | No | Not set | New name |
--description <DESCRIPTION> | No | Not set | New description |
--status <STATUS> | No | Not set | New status (for example, "active" or "inactive") |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan agent update --agent-id "$AGENT_ID" --description "Updated description"verdictan agent delete [OPTIONS] --agent-id <AGENT_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--agent-id <AGENT_ID> | Yes | Not set | Agent id |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan agent delete --agent-id "$AGENT_ID" --yesverdictan agent link-gateway [OPTIONS] --agent-id <AGENT_ID> --gateway-id <GATEWAY_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--agent-id <AGENT_ID> | Yes | Not set | Agent id |
--gateway-id <GATEWAY_ID> | Yes | Not set | Gateway / proxy id to link |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan agent link-gateway --agent-id "$AGENT_ID" --gateway-id "$GATEWAY_ID"verdictan agent unlink-gateway [OPTIONS] --agent-id <AGENT_ID> --gateway-id <GATEWAY_ID>| Input | Required | Default input | Meaning and accepted values |
|---|---|---|---|
--agent-id <AGENT_ID> | Yes | Not set | Agent id |
--gateway-id <GATEWAY_ID> | Yes | Not set | Gateway id to unlink |
--yes | No | false | Required confirmation. Without it, this command stops and changes nothing. This is a switch without a value. |
--json | No | false | Emit machine-readable JSON to stdout This is a switch without a value. |
--config <CONFIG> | No | Not set | Optional config file path (YAML) |
--api-url <API_URL> | No | Not set | Override API URL |
--profile <PROFILE> | No | default | Profile name (default: "default") |
--region <REGION> | No | Not set | Target region for this API call |
--help (-h) prints help. The global --lang and --region options follow the shared input rules.
Use a credential authorized for the requested resource. See Permissions. Regional resource visibility still applies.
Result: Text identifies the operation and affected resource. With --json, the command prints the API operation response.
Example template:
verdictan agent unlink-gateway --agent-id "$AGENT_ID" --gateway-id "$GATEWAY_ID" --yesNext steps
- Agents: create and review the same agent records in the Console.
- verdictan gateway: install and run the gateway that serves a linked agent.
- verdictan control: declare agents and gateway links in a control manifest.