/suppyhq:suppyhq [command] [args...]from suppyhq
Drive a SuppyHQ inbox from the command line. Read conversations and customers, save replies as drafts, and send them when the agent has permission. The CLI talks to the SuppyHQ Agents API over OAuth. Output is JSON.
Ships in suppyhq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Drive a SuppyHQ inbox from the command line. Read conversations, look up customers, write replies (or save as drafts). All commands return JSON.
You are an AI. The customer will know — every reply you send carries an attribution footer the SuppyHQ server appends automatically:
Replied by {your agent name} on behalf of {operator name}.
Because of that footer, write naturally without faking the operator's identity. Do not sign the body with the operator's name. Do not write "From: Carlos" or "— Carlos" at the end. Do not say "I'm Carlos's assistant" — say what you'd say. The footer handles attribution; the body answers the question.
Match the operator's tone (formal vs casual, terse vs detailed) by reading their past replies in the same thread. Tone, not identity.
suppyhq auth login
suppyhq setup claude # Claude Code: plugin + skill + MCP hint
# or: suppyhq setup agents # every detected agent
Browser OAuth is the default — no credentials in your clipboard. Verify with:
suppyhq auth status
suppyhq doctor
The CLI speaks the 37signals agent contract in miniature:
--json: success envelope {ok, data, summary, breadcrumbs}; errors {ok:false, code, retryable, hint} with typed exit codes.--agent: raw JSON data on success — use this from scripts and MCP-backed flows.reply may still have queued.suppyhq commands --json and suppyhq help --agent.Register native MCP tools backed by your signed-in account:
claude mcp add suppyhq -- suppyhq mcp
claude mcp add suppyhq-readonly -- suppyhq mcp --read-only
Three domain tools: suppyhq_conversations, suppyhq_customers, suppyhq_identity. Each takes {"action":"...", "params":{...}}. Call action: "describe" for schemas.
suppyhq inbox # the 100 newest conversations, Spam and Blocked left out
suppyhq thread <id> # one conversation + messages
suppyhq customers # list customers
All return JSON. Pipe through jq for filtering, or feed straight into an LLM for summarization.
Each conversation has a folder, the same one the operator sees in the desk:
folder | In the desk | Meaning |
|---|---|---|
needs_you | Needs you | The customer wrote last. This is the work. |
waiting | Waiting | You or a teammate answered. The ball is with the customer. |
snoozed | Snoozed | Parked until snoozed_until. |
closed | Closed | Done. |
Triage from folder, not status. status: "open" only means not closed, so a thread that waits on the customer is also open.
Spam and Blocked never reach you. If the operator asks about a thread you can't find, it is probably there: tell them to look in Junk in the desk.
An inbox can have several people. Two fields tell you who:
owner on a conversation: the teammate who said "I'm on it". null means nobody yet, or the inbox has one person.author on a message: the person who wrote that reply or draft. null for the customer, for agents, and for automation.When owner is a person, a teammate is handling the thread. Leave a suppyhq note with what you found, and draft only if the operator asked you to. A send there is saved as a draft with "held": "teammate_on_it": tell the operator the teammate has it.
suppyhq note <id> "Checked Stripe: charged twice on Oct 2, refund not issued yet."
echo "Their license key was revoked on Sep 30." | suppyhq note <id>
A note is internal. The customer never sees it. The thread shows it as "Note · ". Leave one when you looked something up, so the person who answers doesn't repeat the work. Keep it to facts you checked; don't draft the reply in a note.
Default behavior: save as a draft. Sending should be the exception, not the rule.
digraph reply_decision {
"Did the operator explicitly say 'send', 'handle', 'answer for me'?" [shape=diamond];
"suppyhq reply <id> --draft" [shape=box];
"suppyhq reply <id>" [shape=box];
"Did the operator explicitly say 'send', 'handle', 'answer for me'?" -> "suppyhq reply <id>" [label="yes"];
"Did the operator explicitly say 'send', 'handle', 'answer for me'?" -> "suppyhq reply <id> --draft" [label="no, or unclear"];
}
Save as draft (default):
echo "<p>Your reply text.</p>" | suppyhq reply <conversation_id> --draft
The draft lands in the operator's composer. They review, edit, hit Send. You're done — don't follow up to send it yourself. Tell the operator something like "Drafted in your composer. Open the conversation to review and send."
Send (only when explicitly asked):
echo "<p>Your reply text.</p>" | suppyhq reply <conversation_id> --yes
On an interactive terminal, suppyhq reply <id> (without --draft) prompts Send this reply? [y/N] before anything goes out. Agents and scripts must pass --yes only after the operator confirms — or use --draft (default).
Goes out after a 30-second cancel window. One exception: your first reply to someone the operator never wrote to is saved as a draft whatever you asked. The response says "held": "first_reply_is_yours". Tell the operator it's in their composer; don't retry. Use send only when the operator's intent is unambiguous: they said "send", "handle", "answer for me", "ship it", or set up full-auto mode.
Sending needs its own permission. Intent is not enough on its own: if this agent wasn't granted send, reply --yes fails with 403 Forbidden and nothing reaches the customer. When that happens, don't retry and don't look for another way to send. Save the same body with --draft and tell the operator: "I don't have permission to send, so I saved it as a draft in your composer. To let me send, re-run suppyhq auth login --allow-send and tick Send replies."
These are the rules every agent must follow. They're short. Memorize them.
--draft when a draft already exists overwrites it. The previous body is gone.suppyhq thread <id> first. If the response shows a draft, ask the operator: "There's already a draft from you/another agent. Replace it?" Don't blow away their work.
A person's draft from the last 10 minutes is protected: the reply fails with 409 and {"error": "draft_in_progress", "author": "<name>"}. That person can be the operator. Don't retry. Tell the operator who is writing, and leave a note if you found something useful.
If the operator tells you to replace their own draft, pass --replace (CLI v0.4.4 or later; in MCP, "replace": true). It never writes over a teammate's draft: that still returns 409.suppyhq draft followed by suppyhq promote. Just --draft (save) or no flag (send). Pick the right one up front.# triage
suppyhq inbox | jq '.[] | select(.folder=="needs_you") | {id, subject, owner: .owner.name, customer: .customer.email}'
# read context, then draft
suppyhq thread 42 | jq '.messages'
echo "<p>Yes — out by Friday.</p>" | suppyhq reply 42 --draft
# operator asked you to handle while they're in meetings
echo "<p>Refunded.</p>" | suppyhq reply 42 --yes
suppyhq note saves the operator the same lookup.auth logout without being asked.suppyhq inbox to auto-reply — that's a different product (server-side autoresponder).Each customer in the API has a vip_at field. If it's truthy (a timestamp), the operator has flagged this customer as VIP — they get priority. If null, it's a regular customer.
VIP is set by the operator (a click on the customer page in the app). Agents do NOT toggle VIP via the CLI — that's a deliberate operator gesture. Treat the field as read-only context.
vip_at is exposed on every customer in the API, and is also embedded on the inline customer of each inbox conversation. So you don't need an extra round-trip to learn which threads belong to VIPs.
# List VIP threads first in a triage summary
suppyhq inbox | jq '[.[] | select(.customer.vip_at != null)]'
In a triage summary, call out VIP threads first ("3 VIP threads waiting: …"). In a draft reply, the body itself doesn't change — VIP is about order of attention, not different language.
| Config file | ~/.suppyhq/config.json (0600) |
SUPPYHQ_API_URL | Override API host (default https://app.suppyhq.com) |
SUPPYHQ_CLIENT_ID | Override on-disk client id |
SUPPYHQ_CLIENT_SECRET | Override on-disk client secret |
Env vars take precedence over the config file.
Reading, drafting and sending are three separate permissions. The operator picks them on the consent screen when they run suppyhq auth login, and they're fixed on the token after that.
| Permission | Scope tokens | What you can do |
|---|---|---|
| Read only | read | inbox, thread, customers. List and inspect, no writes. Good for triage, audit and digest agents. |
| Read + draft | read draft | Everything above, plus reply --draft and note. The draft lands in the operator's composer and reaches nobody until a human sends it. This is what suppyhq auth login asks for by default. |
| Read + draft + send | read draft send | Everything above, plus reply --yes. The customer's email carries a footer naming this agent. Only granted when the operator ticks Send replies, which suppyhq auth login --allow-send pre-ticks. |
Agents connected before drafting and sending were split may hold read reply. That older permission can still draft and send.
What each missing permission looks like:
draft: reply --draft returns 403 Forbidden. Tell the operator you can only read.send: reply --yes returns 403 Forbidden. Save the body with --draft instead and tell the operator (see "Reply: decide draft or send").Never try to get around a missing permission, for example by pasting the body into a note or asking the operator for another agent's credentials. The permission is the operator's decision.
The CLI retries read requests on 429/5xx (1s, 2s, 4s). Do not retry writes yourself — if reply fails with 429, check the thread before trying again; the CLI marks write 429 as retryable: false.
If you are calling the API outside the CLI and hit 429, use this schedule:
Three quick retries, one long hold, then surface. The long hold matters: getting 429 three times in a row means the rate-limiter isn't a per-second cap — the server is genuinely under high load, and hammering it makes things worse. Sit out a minute. Don't loop forever.
Don't retry on any other status — 4xx is permanent (fix the input), 5xx likely means a real outage (don't pile on).
not authenticated → suppyhq auth login401 Unauthorized → token rejected; rerun suppyhq auth login and re-paste credentials403 Forbidden → the agent doesn't have the permission for that action. On a send, save the body with --draft instead. Permissions are fixed when the agent is authorized, so adding one means the operator re-runs suppyhq auth login (--allow-send for sending) and ticks the box.429 Too Many Requests → see "Rate limits" above. Retry with the 1s / 2s / 4s schedule, then give up.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub karloscodes/suppyhq-cli --plugin suppyhq