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.

Auto-resync and duplicate

Sources train on their own when you add or change them, so there is no train step. chatbase agents train is deprecated and does nothing. Turn on the weekly auto-resync for websites, Notion pages, and tickets:
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.