octo agents: manage agents

List, create, update, clone and delete Askocto agents from the terminal with the octo agents command and its flags.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

octo agents manages the agents in your workspace. Use it to script agent setup, copy a working agent into a new one, or check ids you need for other commands. It calls the agent endpoints of the REST API.

Commands

Command What it does
octo agents list Lists agents with id, name, type and status.
octo agents get AGENT_ID Shows one agent with its settings.
octo agents create Creates an agent.
octo agents update AGENT_ID Changes name, instructions or language.
octo agents clone AGENT_ID Copies an agent, including its configuration.
octo agents delete AGENT_ID Deletes an agent.

List and inspect

octo agents list --limit 50
octo agents get agt_123 --json

Sample output of octo agents list:

ID        NAME              TYPE      STATUS
agt_123   Store support     support   live
agt_456   Spring campaign   sales     draft

Lists show 20 agents by default. Use --limit for up to 100, --cursor to continue from a nextCursor value, or --all to read every page.

Create an agent

octo agents create \
  --name "Store support" \
  --type support \
  --language en \
  --instructions-file ./instructions.md
Flag Description
--name The agent name. Required.
--type support, sales or guidance. Defaults to support.
--language A language code such as en.
--instructions Instructions as text.
--instructions-file Read the instructions from a file.

A new agent has the status draft. Add sources and procedures, test it, then publish it in the dashboard.

Update, clone and delete

octo agents update agt_123 --name "Store support EU"
octo agents clone agt_123 --name "Store support test"
octo agents delete agt_456 --yes

delete asks for confirmation unless you pass --yes. Deleting an agent removes its sources, procedures and conversations, so clone it first if you need a backup.

Warning: Deleting an agent cannot be undone. In scripts, make sure the id comes from a trusted source before you pass --yes.

Next steps

Something unclear or missing? Tell us and we will fix the page.