Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Twilio CLI

$ twilio Official High Risk
Twilio · Workspace & SaaS · MIT · macos / linux / windows

Twilio CLI exposes Twilio's Programmable Messaging, Voice, Lookup, Debugger, and Serverless APIs through an oclif command tree. Built-in -o json formatting and --properties filtering make it predictable for agents, though messaging and voice calls incur real per-unit billing.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install twilio/brew/twilio
CLI vs MCP Decision CLI Preferred vs MCP

Twilio CLI covers the full OpenAPI-generated twilio api:* surface plus local webhook debugging and Serverless deploys in one predictable binary.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports -o json and --properties field selection across API commands generated directly from Twilio's OpenAPI specs.

  • -o json / --properties available across twilio api:* commands
  • oclif self-describing help tree
Trust & Safety 19 / 25

Supports named profiles and TWILIO_ACCOUNT_SID scoping, but live accounts have direct telecom billing side effects.

  • Named profiles via twilio profiles:use separate test vs prod accounts
  • Sending messages or provisioning numbers triggers immediate billing
Setup & Portability 13 / 15

Installable via npm or official Homebrew tap on macOS, Linux, and Windows.

  • npm install -g twilio-cli and brew install twilio/brew/twilio
Utility & Efficiency 13 / 15

Exposes the entire Twilio REST surface plus Serverless deployment and debugger inspection.

  • Auto-generated twilio api:* subcommands stay current with REST endpoints
Maintenance & Lineage 9 / 10

Official Twilio repository (twilio/twilio-cli) maintained under MIT.

  • Official Twilio GitHub organization
Docs & Verifiability 8 / 10

Official Twilio CLI docs cover installation, plugins, and general usage flags.

  • Official docs at twilio.com/docs/twilio-cli

Security, Auth & Guardrails

Auth Modes
Env API Key OS Keychain Config File
Credential Storage

Stores encrypted credentials via OS keychain (or config fallback) under ~/.twilio-cli/config.json, and supports TWILIO_ACCOUNT_SID / TWILIO_AUTH_TOKEN / TWILIO_API_KEY.

Side Effects
Read-Only Remote Write Billing Impact
Cost & Quotas

CLI is free (MIT); live SMS, voice calls, and phone numbers incur per-usage Twilio billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Twilio CLI Agent Rules
- Use Test Credentials or sandbox profiles; NEVER send live SMS (`messages:create`) or voice calls (`calls:create`) without explicit human approval.
- Always pass `-o json` and `--properties` on list commands to avoid noisy table output.
- Restrict outbound webhooks and phone number purchases to human-approved steps.

Agent-Ready Command Recipes

Safe Read-Only Queries

List recent debugger error logs as JSON
twilio debugger:logs:list --limit 10 -o json

Fetches recent Twilio account alerts and webhook failure logs in structured JSON.

List incoming phone numbers with filtered fields
twilio api:core:incoming-phone-numbers:list --limit 5 --properties sid,phoneNumber,friendlyName -o json

Queries provisioned numbers while restricting output fields via --properties.

Controlled Writes & Previews

Deploy Twilio Functions to dev environment
twilio serverless:deploy --environment dev -o json

Deploys local Twilio Serverless functions to a non-production dev environment.

Strengths for Agents

  • + -o json combined with --properties keeps token usage low when agents inspect resources.
  • + Comprehensive twilio api:* tree generated from OpenAPI specs eliminates hand-written curl calls.
  • + Named profiles and environment variables make test-credential isolation straightforward.

Caveats & Pitfalls

  • ! Lacks a global --dry-run flag on api:* write commands.
  • ! Accidental calls to messages:create or incoming-phone-numbers:create on live profiles incur real charges.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI