ast agent
Manage deployed agents in the active account.
Commands that target a deployment require exactly one of --name (display name or blueprint name from agent list) or --id (deployment ID). Quote --name values that contain spaces or shell metacharacters, e.g. ast agent get --name 'Pirate Parrot EU!'.
agent list
agent get
agent pause / resume
agent redeploy
Re-deploy an existing agent in-place. Accepts the same --adapter, --var, --vars-file, --schedule, --build, --cluster, --dry-run, --wait, and --json flags as blueprint deploy. If --adapter is omitted, the adapter defaults to web; pass --adapter explicitly to preserve or change a non-web setup.
--cluster moves the agent to another cluster. The agent restarts on the new cluster, and the old one is torn down. Without --cluster, the agent stays on its current cluster.
--schedule changes the cadence of a scheduled ingestion job. A job you do not name keeps the cron it already has, so you only pass the ones you want to change. See Schedule an ingestion job.
agent restart
agent trigger
Run one of an agent’s ingestion jobs once, straight away, without waiting for its schedule.
Omit the ingestion name to list the agent’s ingestion jobs, with the cron expression of any that run on a schedule:
This works for an ingestion whose trigger type is schedule as well as one set
to manual, so you can confirm a cadence you set with
--schedule does what you expect
instead of waiting for the next run. An ingestion triggered by a webhook or at
startup cannot be run this way.
Triggering an ingestion that is already running returns a conflict and starts nothing, so a run you can see in progress will not be duplicated. Two triggers sent at the same moment, or one sent as a scheduled run begins, can still overlap. If a job must never run twice, make it safe to run twice rather than relying on this check.
agent logs
By default this reads logs from all containers in the agent workload. Use --workload to target a different workload (knowledge entry, ingestion sidecar, collector, etc.) or a specific container.
--workload accepts any of:
- A full workload name:
my-agent-knowledge-vectors - An entry-name suffix:
vectors(matchesmy-agent-knowledge-vectors) - A component label:
agent,messaging,knowledge,collector - A
workload/containerpair to pick a specific container:agent/messaging
Ambiguous identifiers (e.g. knowledge when several knowledge entries exist) return an error listing the candidates. Use ast agent get --name <display-or-blueprint-name> to see each workload’s name.
--tail streams logs continuously after fetching the last 15 minutes.
agent delete
Prompts for confirmation. Pass --confirm with the display name or deployment ID to skip the prompt.
agent history
agent trace
List recent traces for a deployed agent (live trace query; same data as the Monitor tab in the web UI; default --limit is 50):
Show a single trace Overview (input, output, metadata, observations, scores):
Print the agents-page activity summary (30-day request/token sparkline, total traces, last active). Matches the /agents dashboard, not a live trace query. Does not use --limit, --offset, --start, or --end. Cannot be combined with --trace-id.
Next steps
- Managing your agents: the same operations from the web console
- Troubleshooting stuck deployments: recover a deploy that never goes live
- ast blueprint: build, push, and deploy blueprints