exotel-cli

中文文档
0.1.6发布于 2026/11/03MIT零依赖

Agent-first CLI for Exotel: log in once, wire the Exotel MCP server into Claude Code, Cursor, Codex, VS Code, Windsurf or Claude Desktop, install Exotel agent skills, and call any Exotel MCP tool with JSON output, --dry-run and spend confirmation.

原始使用文档
文档目录10 节
  1. Install
  2. Your first call in one command
  3. Not sure which API?
  4. What you can do
  5. Agent skills
  6. Safety, built for agents
  7. Two interfaces, one login
  8. CI / non-interactive
  9. Develop
  10. Security notes

exotel-cli

Exotel from the terminal, built for coding agents. One command connects Claude Code, Cursor, Codex, VS Code, Windsurf or Claude Desktop to your Exotel account and teaches the agent the Exotel workflows.

npx exotel-cli init

init asks for your Account SID, API key and API token (my.exotel.com → Settings → API Settings), checks them, saves them to ~/.config/exotel/credentials.json (mode 600), registers the Exotel MCP server in every agent it finds (backing up each config file), and installs the Exotel skills.

Requires Node.js 18+. No dependencies.

Install

HowCommandNeeds
npmnpm install -g exotel-cli (or run once: npx exotel-cli init)Node.js 18+
Homebrew (macOS, Linux)brew install exotel/tap/exotelnothing else, includes tab-completion
Single filedownload exotel-<version>-<os>-<arch> from the GitHub release, put exotel on your PATHnothing else

Tab-completion for npm installs: exotel completion zsh > "${fpath[1]}/_exotel" (or bash, fish; see exotel help completion).

Building the binary yourself: npm run build:binary → dist/exotel (Node 25.5+ to build; the result needs no Node).

Your first call in one command

npm install -g exotel-cli
exotel init        # paste Account SID, API key, API token once
exotel call        # asks what should answer (VoiceBot, App Bazaar flow or your wss bot), who to call, then follows the call live

exotel call picks from your VoiceBots and ExoPhones, remembers your phone number and caller ID (exotel config), asks before anything billed, and ends with what happened and the next command (transcript, call record, exotel explain <status>). Every prompt has a flag, so scripts and agents never get asked: exotel call +9198XXXXXXXX --bot-id Asha --caller-id <ExoPhone> --yes.

Output is a readable table in a terminal and JSON when piped or with --json. Typos get a "did you mean". NO_COLOR=1 turns colours off; --quiet hides progress.

Not sure which API?

exotel ask "connect my OpenAI bot to a phone call"     # recommended API, command, gotchas + docs from both portals
exotel docs search warm transfer                       # search developer.exotel.com + docs.exotel.com (1,200+ pages)
exotel docs show https://developer.exotel.com/docs/agentstream/connect-voice-ai   # read a page as Markdown

What you can do

ProductCommandsDocs
Accountexotel balanceVoice v1 → Balance
Phone numbers (ExoPhones)exotel numbers available | buy | list | get | update | releaseExoPhones API
SIP trunkingexotel trunk setup (all steps at once), or create | map-number | set-number-mode | whitelist-ip | destination | credentials add|list|delete | caller-id | deleteDynamic SIP Trunking
Your own voice bot (standard)exotel voice-ai connect --to … --stream-url wss://…, or --app-id <app_id> for an App Bazaar flow with a Voicebot appletConnect Voice AI API
Exotel VoiceBotexotel voicebot list | test-call | transcriptVoiceBot
Live call control (needs enablement by Exotel support)exotel leg create | get | events | action, exotel bridge …, exotel events listen | scaffoldLegs API
ExoMLexotel exoml validate flow.xml (and leg action validates before sending)ExoML
Flow webhooksexotel applet test connect|gather|dial|passthru|stream <url>Connect / Gather / Passthru / Stream applets
SMS, WhatsApp, calls, CQA, AI Assist, …exotel mcp tools, exotel mcp call <tool> key=value…MCP server tools
Anything elseexotel api <METHOD> </path/with/{sid}>Any Exotel REST API

exotel <command> --help lists every flag (for example exotel trunk --help).

Not covered: Voice v3 (/v3/accounts/{sid}/calls). Use exotel api for it if needed.

Agent skills

SkillFor
exotel-setupStart here: connect, verify, and pick the right skill
exotel-phone-numbersSee and route numbers; balance (buying: via Exotel support)
exotel-messaging-and-callsSMS (India DLT), WhatsApp, simple calls, click-to-call
exotel-voicebot-quickstartExotel-hosted AI voice bot: create → test call → transcript → fix
exotel-connect-voice-aiYour own voice bot (OpenAI, ElevenLabs, Gemini, Sarvam, Pipecat…) on calls
exotel-sip-trunkingConnect a PBX / SBC / Voice AI platform over SIP; SIP error codes
exotel-call-controlLegs, bridges and ExoML actions on live calls (needs enablement)
exotel-flow-webhooksWrite and test Dynamic URL handlers for flow applets
exotel-call-debuggingWhy a call or message failed
exotel-conversation-qualityConversational Intelligence scoring
exotel skill list
exotel skill install all                         # detected agents, user-wide
exotel skill install exotel-sip-trunking --agent claude --project
exotel skill install all --dir ./my-agent/skills

The skills also live in /skills, so npx skills add exotel/ExotelMCP works too.

Safety, built for agents

  • JSON output when piped or with --json, errors included (with Exotel's error code, message and a hint).
  • --dry-run on every command that sends, calls or writes: prints the exact request, never the credentials.
  • Confirmation: anything billed or that rings a real phone ($), anything irreversible (!) and anything that changes live call routing (~) needs --yes or an interactive "y". Without it the CLI exits with code 3 and prints what it would have done.
  • Exit codes: 0 ok, 1 error, 2 usage, 3 confirmation needed, 4 not logged in.
  • No secrets in argv: the API token and SIP passwords come from a hidden prompt, an env var or --…-stdin. whoami and mcp config mask secrets unless you pass --reveal.

Two interfaces, one login

The CLI calls Exotel's REST APIs directly. The MCP server (https://mcp.exotel.com/mcp) gives agents tools for VoiceBot, SMS, WhatsApp, Conversational Intelligence and more. exotel init sets up both with the same credentials; the skills say which to use for each task.

CI / non-interactive

export EXOTEL_ACCOUNT_SID=… EXOTEL_API_KEY=… EXOTEL_API_TOKEN=… EXOTEL_API_BASE_URL=https://api.in.exotel.com
exotel numbers list --json
exotel trunk setup --name ci_trunk --number +91… --ip 203.0.113.10 --dry-run

Environment variables override the saved file. EXOTEL_AUTH_JSON passes the full MCP header object; EXOTEL_MCP_URL points at a self-hosted MCP server.

Develop

cd cli && npm test           # unit + CLI tests, no network
node bin/exotel.js doctor    # live checks
npm pack                     # bundles ../skills into the package

Security notes

  • Event receiver (events listen, voice-ai … --listen, voice-ai inbound): listens on 127.0.0.1 only. Set EXOTEL_EVENTS_USER / EXOTEL_EVENTS_PASS to require Basic auth, and ask Exotel support to send those credentials on your event endpoint; otherwise anyone with your tunnel URL can post fake events.
  • Your bot's public wss URL: add a shared secret (BOT_TOKEN in examples/exotel-voice-agent).
  • exotel calls recording sends your Exotel credentials only to *.exotel.com / *.exotel.in over HTTPS.
  • exotel integrate elevenlabs setup gives ElevenLabs your Exotel API key and token (ElevenLabs needs them to place calls); it asks first. Use a separate API key for it so you can revoke it on its own.
  • claude mcp add receives the MCP Authorization header as a command argument for a moment during exotel init; other clients' config files are written with mode 600.

版本与发布记录

exotel-cli 共发布 6 个版本,首次发布于 2026/11/03;过去 12 个月发布了 6 个版本。

版本发布日期距今
0.1.6latest2026/11/03今天
0.1.42026/11/03今天
0.1.22026/11/03今天
0.1.12026/11/03今天
0.1.02026/11/03今天
0.0.0-stage2026/11/03今天

关于 exotel-cli 的常见问题

exotel-cli 是什么?

extel的代理优先CLI:登录一次,将extel MCP服务器连接到Claude Code, Cursor, Codex, VS Code, Windsurf或Claude Desktop,安装extel代理技能,并调用任何带有JSON输出的extel MCP工具,——dry-run和花费确认。

如何安装 exotel-cli?

在项目目录运行 npm install exotel-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 exotel,可以用 npx exotel 直接运行。

exotel-cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/exotel-cli 是否存在。

exotel-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

exotel-cli 可以商用吗?

exotel-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

exotel-cli 还在维护吗?

最新版本 0.1.6 发布于 2026/11/03(今天);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/11/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。