Skip to main content
Use agent commands to manage the AI agents in your workspace. For REST details, see Agents API. Authenticate first — see CLI Auth.

List and inspect

List every agent in the workspace:
Show one agent by ID:
Use --json or --plain for scripting. Set a default agent with CLI Config so you can omit the ID on get and other commands.

Create and configure

Create a new agent:
Update name, instructions, model, and other fields:
Update chat widget appearance (theme, colors, etc.):
Pass a JSON file with @styles.json instead of inline JSON when you have many style properties.

Train and duplicate

Queue a training job after you add or change sources:
Enable automatic retraining when sources change:
Clone an agent and its sources (Notion sources are excluded):

Delete an agent

Permanently remove an agent:
Deletion cannot be undone. In scripts and CI, pass --confirm agt_123 to skip the interactive prompt.

Commands

For every flag, run chatbase agents <command> --help.