@telnyx/agent-cli, bin telnyx-agent) is a command-line tool built for AI agents and for developers who want the shortest path from API key to working capability. Where the Telnyx CLI exposes each API resource individually, the Agent CLI ships composite commands: one call creates the messaging profile, finds and buys a number, and wires everything together.
Install
TELNYX_API_KEY from the environment.
Quick start
--json for machine-readable output. setup-sms, setup-voice, and setup-verify are idempotent: re-running them reuses the resources they already provisioned instead of buying more (--force provisions fresh resources). Other setup commands — setup-ai, setup-10dlc, setup-porting — create new resources on each run, so check for existing resources before repeating them.
When to use the Agent CLI vs the Telnyx CLI
The two install side by side and share the
TELNYX_API_KEY environment variable.
Composite setup commands
Beyond setup, the CLI covers day-to-day operations —
send-sms, call-dial, fax-send, tts/stt, rcs-send, verify-send, fund-account, and more. telnyx-agent capabilities --json returns a machine-readable catalog of API capabilities and selected composite commands — a curated catalog rather than the complete command inventory, so pair it with telnyx-agent --help for the full command list.
For AI agents
If you are an agent (or building one), the fast path is:- Get an API key — programmatic signup runbook at telnyx.com/agent-signup.md.
npm install -g @telnyx/agent-clitelnyx-agent capabilities --jsonto discover what you can do, then run thesetup-*command for the capability you need.
agent.json manifest both describe the CLI in structured form.