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 loginlogin 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 overviewPlan: 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
| Command | What it does |
|---|---|
chatter overview | Credits, free slots, chat hours, what needs attention |
chatter templates | Kinds of chat and the details each needs |
chatter chats launch | Start a chat. Options: --count, --schedule, --order, --manual, --wait |
chatter chats list | List 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, followup | Manage 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 --all | Launch drafts |
chatter proxies list, add, clear | Manage proxies |
chatter webhooks list, add, delete, test | Manage webhooks |
chatter usage, chatter credits buy | Credits; a checkout link for more |
chatter mcp | How to connect an AI agent |
For scripts and agents
--jsonprints the API's response as JSON on standard output. Errors go to standard error, as{"error": "...", "code": "..."}with--json.- Exit codes:
0success,1the API refused or failed,2the command was used incorrectly. - Launch commands are safe to retry by hand only if nothing was launched: check with
chatter chats listfirst.
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