Askocto CLI overview
Install the octo command line tool to manage agents, sources, conversations and tickets from your terminal, scripts and CI jobs.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
The Askocto CLI is a command line tool named octo. Use it to manage agents, upload sources, chat with an agent, read conversations and tickets, and call any API endpoint without leaving the terminal. It works well in shell scripts and CI jobs because every command can print JSON.
Install
The CLI needs Node.js 20 or later.
npm install -g @askocto/cli
octo --version
Sign in and check
- Create an API key in Workspace Settings > API keys. Copy it, because it is shown once.
- Run
octo auth loginand paste the key. - Run
octo healthto check that the key works.
octo auth login
octo health
You should see a short status report ending in ok. In a script or CI job, skip the login and set the OCTO_API_KEY environment variable instead.
Conventions
- Commands follow the pattern
octo AREA ACTION, for exampleocto sources add. - Pass
--agent agt_123to choose an agent, or set a default withocto config set defaultAgent agt_123. - Add
--jsonto print machine-readable output. Without it, the CLI prints tables. - Lists use
--limitand--cursor, or--allto read every page. - A failed command exits with a non-zero code and prints the error code and request id.
Commands
- auth: sign in, check and sign out.
- config: view and change settings.
- agents: list, create, update, clone and delete agents.
- sources: add websites, files, text and Q&A pairs.
- chat: talk to an agent from the terminal.
- conversations: list, read, search and export conversations.
- tickets: work with Helpdesk tickets.
- whatsapp: list and send WhatsApp templates.
- health: check the API and your key.
- api: send any request to the REST API.
For the REST API behind these commands, see API integration.