/plivo:plivo-clifrom Plivo
Runs Plivo API tasks via the plivo CLI with dry-run previews and confirmation gates. Covers SMS/MMS/WhatsApp, calls, numbers, applications, Verify OTP, and profiles.
Ships in Plivo. 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.
plivo is a single binary. Prefer it to curl: it authenticates from a saved login, previews with --dry-run, and returns a stable JSON envelope with typed errors. For an endpoint it does not wrap, use plivo api <METHOD> <path>.
plivo <command> --help is the source of truth for commands and flags: read it before running a command you have not used, and never guess a flag. To survey many commands (v1.2.0+), plivo --map -o json prints every command with its arguments and flags (large: narrow it with --query) and plivo <command> --schema prints one command's arguments, flags and output fields: use them instead of repeated --help. plivo docs search <keywords> and plivo docs show <url, path or title> read the Plivo docs (API parameters, XML, error codes) from the terminal, with no login.
Not on PATH: brew install plivo/tap/plivo, then plivo --version. Without Homebrew, ask the user to install it from https://github.com/plivo/plivo-cli#install (the installer checks the release signature) rather than running an install script yourself. This skill ships inside the binary: plivo skill list shows whether the installed copy is stale, and plivo skill update (v1.2.0+) or plivo skill install refreshes it. For Codex's copies in ~/.agents/skills, use plivo skill list --agent codex (v1.3.1+); from v1.3.1 skill update refreshes those too.
plivo login) is the only credential source: the CLI reads no PLIVO_AUTH_ID or PLIVO_AUTH_TOKEN and has no flag for them. Do not run plivo login yourself; if plivo auth whoami exits 2, ask the human to run it in their own terminal. Never print, echo, export or store an auth token, including one the user pastes. --profile <name> selects another saved profile.--dry-run first: it prints the request on stderr and exits 0 without sending a write. Spend and destructive commands then need --yes: run that as a separate command, only once the human has approved that spend or deletion. Other writes (creates, updates, live-call verbs such as play, speak and transfer) have no --yes gate and act as soon as they run.
calls make, messaging * send, numbers buy|cnam, masking sessions create, 10DLC brands|campaigns create and campaigns update (v1.3.1+), verify sessions create, multiparty participant add, tts speak, mutating plivo api verbs) preview with --dry-run alone.numbers release, calls hangup, conferences hangup, conferences stop-record (v1.3.1+), calls streams stop, powerpacks numbers remove, and every delete, kick and end) preview with --dry-run alone from v1.2.1. Older versions refuse that with exit 5, although the hint suggests it; preview them there with --yes --dry-run (--dry-run wins). For sip * delete, --dry-run (with --force for an in-use object) also names what it would detach; in v1.2.0, run it without --yes instead: it names them, then refuses.plivo lookup is billed per lookup and has no --yes gate: ask first.--dry-run: login, logout, auth use|remove, config set|telemetry, upgrade, voice streams test and docs say what they would do and act on nothing (docs fetches nothing), and ask -i refuses it. Before v1.3.1 it only holds back Plivo API writes, and those commands act for real: upgrade installs (use upgrade --check), voice streams test connects to the WebSocket (no call), and before v1.2.0 feedback submits. skill install --dry-run writes nothing, nor, from v1.2.0, do skill update and feedback. voice streams simulate and voice streams readiness (v1.3.2+) print the request they would send to the answer URL and send nothing to it; readiness still makes its account reads.-o json. Reads and creates print {"data": <API response verbatim>} on stdout; list rows are at data.objects, paging at data.meta. From v1.2.0, -o jsonl|yaml|csv and --query '<JMESPath>' (over the whole envelope, e.g. --query 'data.objects[].number'; implies -o json) reshape it; plivo api keeps its own --query key=value, which adds URL parameters. From v1.3.1 every format prints auth tokens and passwords in a response as [REDACTED], except account subaccounts create (it hands over the new token) and agents; never add --show-secrets, which prints them. From v1.2.1 every write prints a result too: the API's response or, where the API sends none (deletes, hangups, releases, stops, kicks), the ID and what was done, e.g. {"data": {"call_uuid": "<id>", "hung_up": true}}. Older versions print nothing on stdout for many writes (numbers update|release, calls hangup|transfer, account applications update, multiparty participant add): check the exit code, read the result back with a get, and never retry a spend command because stdout was empty.--limit is 1-20 (more is refused); --all reads every page (not with --offset) but stops after 100 pages (2,000 rows at --limit 20) and sets data.meta.truncated: true, so check that before treating a list as complete; an unknown filter value (--direction, --status, --type) is refused before any request. From v1.2.1, data.meta.next is null once every row is read, and a page still rate limited after a minute of retries ends --all early: the rows read so far print with truncated: true and the exit code is 4. From v1.2.0, voice calls list, voice recordings list and messaging sms|mms|whatsapp list take --since/--until like sip calls list (UTC; --from-date/--to-date are the same flags; --until needs --since, and from v1.2.1 must be after it); voice call and message ranges start within the last 90 days, and voice call and recording ranges span at most 31.{"error": {"code", "message", "hint", "retryable", "status_code"}} with a non-zero exit. Switch on code (exit codes below), never on message text.plivo feedback or plivo ask -i, and pass -y to voice streams forward. To report a CLI bug (v1.2.0+), plivo feedback --bug --dry-run prints the report (a comment plus the last failed command's path and codes, never its arguments) and sends nothing; add --yes only once the human has seen it. export PLIVO_FEEDBACK_PROMPT=0 CI=1 PLIVO_NO_UPDATE_CHECK=1 silences the rating prompt and the update hint.The user may not know the CLI. Run the commands yourself and talk about what they change, in plain words.
auth_id. Commands and their previews stay as they are.+91 AB CDXX XEFG (country code, first four digits, X for the next three, last three) and the account ID as its first four and last three characters with … between. Show a number in full only where the user must dial it, and inside commands.setup_rate, monthly_rental_rate from numbers search), never for calls or messages. Show the balance only when the user asks about their account (the Account row below). The API gives no currency: add ₹ only when you know the account bills in rupees.request_uuid or an empty stdout is not success: read the result back with a get. A call or message worked only when its record says so, and for a call, when a person heard it.--dry-run. If it rejects --dry-run, show the current state from a get or list instead.--yes where the command needs it, then read the result back.Before anything that spends money (renting a number, a call, a message, a lookup, a Verify OTP), check the credit: cash_credits in plivo auth whoami -o json. At 0 or less, send the user to https://cx.plivo.com/home to add credits and stop the spend. Before you move a number to another app or trunk, record its current application from plivo numbers get <number> -o json; that is the rollback: --app-id <id> for one ending /Application/<id>/, --trunk-id <id> for /Zentrunk/Trunk/<id>/. numbers update cannot put back an empty one, so tell the user before the move.
When the request already says what to do ("send an SMS to …", "why did call fail?"), skip the intake and go to its row below. When it is vague ("help me with Plivo", "set up my account"), first run plivo auth whoami -o json (exit 2: ask the user to run plivo login, see Rules), then ask (header Task): "What do you want to do with Plivo?"
If the user names a voice agent, an IVR or a SIP platform in "Other", route to the related skill (last row).
| The user wants | Ask next (plain text unless noted) | Run |
|---|---|---|
| Why a call failed | "Which call? Give me its ID, or the number and roughly when." | voice calls list --to <number> --since <date> -o json to find it, then voice calls get <call_uuid> -o json. Then ask (header Debug) "Want Plivo's call debugger to explain it? It takes about a minute." · Yes (recommended) · No, the record is enough. On yes, voice calls diagnose <call_uuid>, and retell its answer in plain words. |
| Make a call | Which number to call from (header Number, up to two of the account's voice numbers, masked) and the phone to ring; what the call should do (an answer URL, or the voice-xml skill to write one) | Credit check, then preview voice calls make … --answer-method <method> --dry-run, ask (header Call) "Call now?", run with --yes, then voice calls get <request_uuid> -o json once the call has ended (its record is written then); while it is up, add --live (v1.2.1+); voice calls list --live (v1.3.1+) lists the calls in progress. |
| Send a message | Which number to send from (header From, from numbers list --services sms), the recipient, the text; for WhatsApp, whether the recipient wrote in the last 24 hours | Credit check, preview messaging <sms|mms|whatsapp> send … --dry-run, ask (header Send) "Send this to ?", run with --yes, then messaging get <message_uuid> -o json for its status. |
| A number | Country (header Country), local or toll-free, and what it is for: calls, SMS or both | numbers search, then the Buy number question above with up to three numbers as options. India: KYC first (numbers compliance list --country IN --status accepted); never add --force to get past a KYC refusal. Linking: the Link question above, then numbers update <number> --app-id <app_id>. |
| Account | Nothing more for a read | auth whoami, account get, account applications list, account subaccounts list. Show the balance (cash_credits) when the user asks about their account status. |
| A voice agent, a Plivo CX agent (an AI conversation flow), an IVR or call XML, a SIP platform, text-to-speech audio, a forwarded call that misbehaves | Nothing; hand over | plivo skill list. If the matching skill is installed, follow it; if not, ask (header Install) "Install the Plivo skill? It walks you through this step by step. Free, no network." · Install it (recommended) · Just use the CLI. Then plivo skill install agents, audio-streaming, voice-xml, sip-trunking, tts or call-forwarding. |
Pick the right command:
plivo account usage (v1.3.0+; before that, plivo api GET /UsageSummary/). Its --until is exclusive (that day is left out), unlike on the list commands. Never add up call or message records for it.cash_credits in plivo auth whoami -o json.voice calls diagnose <call_uuid> for a Voice API call, sip calls diagnose <call_uuid> for a SIP trunk call.sip calls insights <call_uuid> (v1.2.0+).plivo docs show <path or title>, then plivo ask "<question>".When a step fails, retell the error in plain words ("Plivo says the number isn't on this account"), name the fix, and ask before you try it. Switch on the error code, never the message text.
account applications | get | subaccounts | update | usage (usage: v1.3.0+)
agents list | get | create | update | publish | pause | resume | delete | nodes | runs
api generic REST escape hatch (any api.plivo.com path)
ask one-shot question to Plivo's AI assistant
auth list | use | remove | whoami
config get | set | telemetry
docs list | search | show
feedback rate the CLI
login browser login (PKCE)
logout remove a profile and its keychain token
lookup carrier lookup for an E.164 number
messaging get | sms | mms | whatsapp (aliases: message, msg, sms)
numbers buy | cnam | compliance | get | list | masking | release | search | update
open console | calls | call <uuid> | sip-call <uuid> | numbers | docs [path] (v1.2.0+)
sip calls | connect | credentials | ip-acl | test | trunks | uris (connect, test: v1.2.0+)
skill install [--project] | list | update (update, --project: v1.2.0+)
support past support escalations
tts voices | speak | lexicons (list | get | create | delete) | usage
upgrade self-update
verify sessions (create | get | list | validate)
voice calls | conferences | endpoints | multiparty | recordings | streams
--help does not showmessaging aliases replace the group name only: plivo sms sms send works, plivo sms send fails with unknown flag.--from and --to, and from v1.2.1 they are refused. Narrow with --since, then filter: --all --query "data.objects[?to_number=='<digits>']".<, quoted (a bare < is a shell redirect): --dst "+14155551111<+14155552222". Commas do not work. numbers commands take the number as digits without +.messaging whatsapp send sends free text, which WhatsApp allows only within 24 hours of the user's last message. To open a conversation, send a template with plivo api POST /Message/ and a template body.voice calls make: omit --machine-detection to turn detection off; it takes true or hangup. The none that help lists before v1.3.1 is rejected by the API, and from v1.3.1 by the CLI.voice calls streams start: quote --content-type "audio/x-mulaw;rate=8000" (; ends a shell command). From v1.3.1 --stream-status-callback sends the documented status_callback_url. Older versions send stream_status_callback_url, which the API does not document: there, when the callback matters, start the stream with plivo api POST /Call/<call_uuid>/Stream/.voice multiparty create is retired and hidden: an MPC starts when its first participant is added, with voice multiparty participant add <name> --from <number> --to <number>.voice streams forward points the app's answer URL, and so every number on that app, at a tunnel while it runs, then restores it on exit. Use a dedicated test app. Preview with --dry-run (it shows the URL it would replace) and get approval. Then run it in the background with -y -o table and wait for its Ready line; in JSON mode it prints nothing, not even the tunnel URL, until it exits. Stop it with SIGINT or SIGTERM: SIGKILL skips the restore (from v1.3.1 the next forward on that app restores it and, on macOS and Linux, stops the tunnel left running). From v1.2.1, when the tunnel process exits it restores the URL and exits 3 (NETWORK_ERROR); before that it does not notice, so restart it.account applications update has no --fallback-answer-url: set it with plivo api POST /Application/<app_id>/. account applications delete also deletes the app's endpoints: the API cascades by default. From v1.3.1, --cascade=false keeps them, detached or on the app --new-endpoint-application <app_id> names; older versions delete them with or without --cascade.sip: quote --uri "host;transport=tcp". Passwords go only through --password-stdin; to preview a password change, pass --username too. The API rejects sip: and sips: URIs and a user part (user@host): write host[:port];transport=… (from v1.3.1 the CLI rewrites a scheme and says so, and refuses a user part). Deleting a URI deletes the trunks that use it as their primary URI; from v1.3.1 the result lists trunks_deleted and trunks_kept. Route a number to an inbound trunk with numbers update <number> --trunk-id <trunk_id>.plivo api gives an HTTP error the code and exit code a typed command would (a 404 is RESOURCE_NOT_FOUND, exit 1) from v1.3.1; before that every one is UPSTREAM_ERROR (exit 3). Both put the status in status_code and the API's body in context.upstream: switch on status_code. End every path with a slash (/Call/<call_uuid>/): without one the API redirects and the request fails (from v1.3.1 the CLI follows no redirect and reports the 3xx). Its --dry-run, --explain and --log-level debug print the request body unredacted, so never send a secret through it. From v1.3.1 its output hides auth tokens and passwords as other commands do, except on /AgentFlow paths. /Message/ expands to /v1/Account/<auth_id>/Message/; a /v1/... path is used as-is.plivo ask and the diagnose commands share a small per-account rate limit: on RATE_LIMITED, wait as long as the message says. From v1.2.0, diagnose -o json prints one result with fixed fields under data (what_happened, likely_cause, timeline, next_steps, hangup_cause_code, hangup_source, confidence, answer; from v1.3.1 confidence is null when the answer gave none) and -o jsonl the event stream that -o json printed before; an analysis that fails or stops early exits 3. From v1.2.1, --timeout <seconds> (from v1.3.1 also a duration such as 90s) bounds their stream (exit 3, UPSTREAM_TIMEOUT; without it there is no limit), and an ask answer cut off before its end exits 3.docs show prints a JSON envelope when piped: add -o table, or use jq -r .data.body. docs search rows are at data, not data.objects.voice streams forward cannot carry a live call: it rejects Plivo's stream (it checks the signature against the wss:// URL while Plivo signs the http:// one), and its XML has no keepCallAlive, so the call ends at once with hangup cause 4010 (End Of XML Instructions). Fixed in v1.1.3; check plivo --version.Provision a number and attach an app:
plivo numbers search --country US --type local --limit 5 -o json
plivo numbers buy 14155550100 --dry-run # show the human, then rerun with --yes once approved
plivo account applications create --app-name my-app --answer-url https://example.com/answer -o json
plivo numbers update 14155550100 --app-id <app_id>
plivo numbers get 14155550100 -o json | jq '.data.application' # read it back
Debug a failed call:
plivo voice calls get <call_uuid> -o json | jq '.data | {hangup_cause_name, hangup_cause_code, hangup_source}'
plivo voice calls diagnose <call_uuid> # AI walk-through of the call
plivo docs show voice/troubleshooting/hangup-causes -o table # what a hangup code means
plivo docs show sip-trunking/troubleshooting/zentrunk-hangup-codes -o table # the same, for SIP trunk calls
Use the table for the call's product: the two code spaces reuse numbers, so 4010 is End Of XML Instructions on Voice but unauthorized_by_carrier on Zentrunk.
Pick a sending number: plivo numbers list --services sms -o json | jq -r '.data.objects[].number'. Numbers are listed without a leading +.
1 user, flag, validation, not-found, conflict or account-policy error (USER_ERROR, BAD_FLAG, BAD_INPUT, VALIDATION_ERROR, RESOURCE_NOT_FOUND, RESOURCE_CONFLICT, GEO_PERMISSION_DENIED, OUTBOUND_DISABLED, INSUFFICIENT_FUNDS); before v1.2.1, typed commands also report a network failure as USER_ERROR, with a message starting http:. 2 auth (AUTH_*). 3 network or upstream (NETWORK_ERROR, UPSTREAM_*, INTERNAL_ERROR; UPSTREAM_TIMEOUT when --timeout ran out): retry only when retryable is true. From v1.2.1 a network failure is retryable only on a read: after a failed write, check the state before sending it again. 4 RATE_LIMITED: back off. 5 DESTRUCTIVE_REFUSED: refused without confirmation: add the flag the hint names (--yes, --force, or both; --force is v1.2.0+). 6 CLI_TOO_OLD: the human should upgrade (plivo upgrade, or brew upgrade plivo).
Each is bundled in the binary and installed separately, with no network: plivo skill install agents | audio-streaming | sip-trunking | tts | voice-xml | call-forwarding (call-forwarding v1.3.3+). A CLI too old to offer one gets it with npx skills add plivo/plivo-cli --skill <name>, such as plivo-cx-agents.
plivo-cx-agents: build, test and publish Plivo CX agents, the AI conversation flows of the console builder, through the Agents API.plivo-audio-streaming: take a voice bot (a test bot or your own WebSocket bot) to real calls with <Stream>, from setup to go-live.plivo-sip-trunking: connect LiveKit, ElevenLabs, Retell, Vapi or another SIP platform over SIP trunking.plivo-tts: make speech audio from text, pick voices, manage pronunciation lexicons, stream realtime TTS.plivo-voice-xml: write and fix the XML an answer URL returns.plivo-call-forwarding: debug forwarded calls: ForwardedFrom on the answer URL, a forwarded leg that fails, Diversion on a SIP trunk.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub plivo/plivo-cli --plugin plivo7 skills in this plugin
/plivo-audio-streamingTakes a new or existing Plivo user to a voice agent on real calls through audio streaming (the Stream XML element), using the Plivo CLI. It checks credit, KYC and the number, builds a test agent (an echo test, or Pipecat with OpenAI) or reuses the user's own WebSocket voice agent, exposes it through ngrok or Cloudflare Tunnel, creates an audio-stream application, links the number and places a test call, then covers go-live, handoff and debugging. Use when someone wants to build or try a Plivo voice agent or bot, connect a WebSocket bot to Plivo, or for a caller hearing silence, errors 7011/8011, streamed-call hangup codes, bot-to-human handoff, India KYC for an agent number. Not for SIP trunking (plivo-sip-trunking) or plain Voice XML (plivo-voice-xml)./plivo-call-forwardingDebugs call forwarding on Plivo with the Plivo CLI: a carrier forwards calls into a Plivo number and ForwardedFrom, ForwardedCause or ForwardedReason is missing or odd; Plivo forwards a call out (Dial XML, a PHLO Call Forward node, an agent transfer) and the forwarded leg fails; or a carrier forwards into a SIP trunk number and the Diversion header must reach the SBC. Use when forwarded calls never arrive, lack the forwarding number or fail. Not for writing XML (plivo-voice-xml) or SIP trunk setup (plivo-sip-trunking)./plivo-cx-agentsBuild, update, test and publish Plivo CX Agents (conversation flows made of nodes) through the Agents API and the Plivo CLI. Trigger whenever the user wants to create, edit, wire, validate, test or publish a Plivo CX agent or flow, asks which Plivo nodes to use, or mentions AgentFlowNode / agent_uuid / the Agents API./plivo-sip-trunkingTakes a new or existing Plivo user from a voice agent on LiveKit, ElevenLabs, Retell, Vapi, xAI or a self-hosted SIP stack to real phone calls over Plivo SIP trunking (Zentrunk), using the Plivo CLI. It checks credit, KYC and the number, asks which platform and which call directions, checks the platform's SIP host answers, creates the origination URI, credential or IP list and trunks, routes the number, walks the user through the platform-side setup and test calls in both directions, then covers go-live, SIP REFER transfers and debugging. Use for origination URIs, inbound or outbound trunks, TCP/TLS/UDP transport, Zentrunk hangup codes (4090, 4170, 4590), India calling rules. Not for WebSocket voice agents (plivo-audio-streaming) or Plivo XML (plivo-voice-xml)./plivo-ttsTurns text into speech with Plivo Text-to-Speech (the TTS models API) from the Plivo CLI: picks a voice, synthesizes audio to a file (WAV, MP3, raw PCM, or 8 kHz mu-law and A-law for phone calls), applies pronunciation lexicons, checks usage, and shows how to stream live speech over the realtime WebSocket. Use when someone wants to convert text to speech, generate or synthesize audio, pick a Plivo voice or language (English, Hindi, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada), make telephony audio for a call or a voice agent, fix how a word is pronounced, or build a realtime TTS socket. Not for speech spoken inside a live call by Voice XML (plivo-voice-xml), or for wiring a voice agent to calls (plivo-audio-streaming)./plivo-voice-xmlWrites, checks and tests Plivo Voice XML, the document an answer URL returns to control a call, as a short conversation: asks what the call should do, writes and checks the XML, creates the app, links the number, places a test call and debugs it. Covers Speak, Play, GetDigits/GetInput IVRs, Dial forwarding, Record and voicemail, Conference, MultiPartyCall. Use for Plivo XML, answer or action URLs, 8011/8012 invalid XML, 7011 URL errors, X-Plivo-Signature-V3 checks. Not for WebSocket voice bots (plivo-audio-streaming) or SIP trunks (plivo-sip-trunking).