Command line

chatter is a terminal tool for the API. It suits quick checks, shell scripts, and coding agents that work in a terminal: every command takes --json.

npm install -g chatter-cli
chatter login

login asks for your API key and saves it in ~/.config/chatter/config.json, readable only by you. In scripts, set CHATTER_API_KEY instead.

A first run

chatter overview
Plan: pro   Credits: 412.5
Slots: 22 free of 25   Queued: 0   Scheduled: 4
Best Buy chat: open
Proxies: 40
Ready to launch.
chatter templates
chatter chats launch --template bestbuy --details @order.json --wait

--details takes JSON, or @file.json. With --wait, the conversation prints as it happens and the command ends with the outcome.

Commands

CommandWhat it does
chatter overviewCredits, free slots, chat hours, what needs attention
chatter templatesKinds of chat and the details each needs
chatter chats launchStart a chat. Options: --count, --schedule, --order, --manual, --wait
chatter chats listList chats. Options: --status running,queued, --needs-help, --limit
chatter chats get <id>One chat. Add --messages for the conversation
chatter chats watch <id>Follow a chat until it ends
chatter chats wait <id...>Wait until one of them finishes or needs help
chatter chats message <id> <text>Send a message as the customer
chatter chats answer <id>Answer a help request: --action update_fields --field customerPhone=555-010-9999, --action ignore_and_push, or --action custom_directive --directive "..."
chatter chats pause, resume, cancel, restart, followupManage a chat
chatter orders list, orders get <id>Orders and what chats found out
chatter orders import <file.csv> --type <template>Create orders and drafts from a CSV. --field key=value fills gaps; --deploy launches them
chatter drafts deploy <id...> or --allLaunch drafts
chatter proxies list, add, clearManage proxies
chatter webhooks list, add, delete, testManage webhooks
chatter usage, chatter credits buyCredits; a checkout link for more
chatter mcpHow to connect an AI agent

For scripts and agents

  • --json prints the API's response as JSON on standard output. Errors go to standard error, as {"error": "...", "code": "..."} with --json.
  • Exit codes: 0 success, 1 the API refused or failed, 2 the command was used incorrectly.
  • Launch commands are safe to retry by hand only if nothing was launched: check with chatter chats list first.
id=$(chatter chats launch --template bestbuycustom \
  --details '{"instructions":"Ask for a return label for order BBY01-1","customerName":"Jordan Lee","customerEmail":"jordan@example.com","customerPhone":"555-010-2030"}' \
  --json | jq -r .taskId)

chatter chats wait "$id" --json | jq '.tasks[0] | {outcome, summary, needsHelp}'

Import a spreadsheet and run it

chatter orders import matches.csv --type bestbuypricematch \
  --field customerName="Jordan Lee" \
  --field customerEmail=jordan@example.com \
  --field customerPhone=555-010-2030 \
  --deploy