/claude-call:setupfrom claude-call
Interactive wizard to configure Twilio and voice-engine credentials for claude-call. Supports manual entry or .env import, validates keys, and writes a credentials file.
Ships in claude-call. Installing the plugin adds it to Claude Code.
You are running the claude-call setup wizard. Walk the user through configuring credentials.
Minimum requirements: Twilio account (SID, auth token, phone number) + OpenAI API key. Optional alternatives: ElevenLabs ConvAI, or pipeline mode (Deepgram STT + ElevenLabs TTS + OpenAI LLM).
test -s "$HOME/.claude-call/credentials" && echo EXISTS || echo MISSING
If EXISTS, ask the user with AskUserQuestion: "Existing credentials found at ~/.claude-call/credentials. Overwrite?" (Yes / No). If No, exit with the message "Setup cancelled. Existing credentials kept."
Use AskUserQuestion: "How do you want to provide credentials?"
.env file — Skip the prompts; read keys from a path you give me.If the user picks Import from .env, ask AskUserQuestion for the absolute path. Read it with the Read tool. Extract these keys (case-sensitive, last value wins):
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER (required)OPENAI_API_KEY (required for the default engine)ELEVENLABS_API_KEY, ELEVENLABS_AGENT_ID, DEEPGRAM_API_KEY (optional; pick them up only if present)Validate TWILIO_ACCOUNT_SID matches ^AC[0-9a-fA-F]{32}$ and TWILIO_PHONE_NUMBER matches ^\+[1-9]\d{1,14}$. If a required key is missing or invalid, show which one and ask the user to fix the .env and re-run, or fall back to manual entry.
If found and valid, choose engine from what's present (default openai_realtime if OPENAI_API_KEY is set), then jump to Step 5.
Otherwise (manual entry), continue with Step 2.
Use AskUserQuestion sequentially. Validate each answer before moving on. If invalid, re-prompt.
^AC[0-9a-fA-F]{32}$^\+[1-9]\d{1,14}$AskUserQuestion with options (OpenAI Realtime is the minimum and recommended path):
openai_realtime (default; recommended — only requires OPENAI_API_KEY)elevenlabs_convai (advanced — requires ElevenLabs API key + agent ID)pipeline (advanced — Deepgram STT + ElevenLabs TTS + OpenAI LLM)Based on the engine the user picked:
OPENAI_API_KEY (validate non-empty, typically starts with sk-)ELEVENLABS_API_KEY and ELEVENLABS_AGENT_IDOPENAI_API_KEY, DEEPGRAM_API_KEY, ELEVENLABS_API_KEYConstruct the file content by substituting captured values into the template below (replace <PLACEHOLDERS>). Then write it with mode 0600. Use a quoted heredoc so shell expansion doesn't run on the body.
mkdir -m 0700 -p "$HOME/.claude-call"
cat > "$HOME/.claude-call/credentials" << 'EOF'
# claude-call credentials — managed by /claude-call:setup
# Do not commit this file. Re-run /claude-call:setup to update.
TWILIO_ACCOUNT_SID=<SID>
TWILIO_AUTH_TOKEN=<TOKEN>
TWILIO_PHONE_NUMBER=<PHONE>
VOICE_ENGINE=<ENGINE>
<ENGINE_KEYS>
EOF
chmod 0600 "$HOME/.claude-call/credentials"
The <ENGINE_KEYS> block:
openai_realtime: OPENAI_API_KEY=...elevenlabs_convai: ELEVENLABS_API_KEY=... and ELEVENLABS_AGENT_ID=...pipeline: all three (OPENAI_API_KEY, DEEPGRAM_API_KEY, ELEVENLABS_API_KEY)node "${CLAUDE_PLUGIN_ROOT}/server/dist/index.js" --doctor
If exit 0, print:
✓ Setup complete. Try: /claude-call:call +<your-number> say hello
If exit non-zero, print the doctor output verbatim and tell the user to re-run /claude-call:setup or fix the failing key in ~/.claude-call/credentials directly.
Tell the user the bundled MCP server picks up new credentials the next time it starts. Recommend:
/exit and reopen the Claude Code session, or/mcp restart claude-call if available in the user's Claude Code version.The Cloudflare tunnel that Twilio uses to reach this server is started lazily on the first call — no extra setup needed.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
9 commands in this plugin
/call-meCall MeMake an outbound phone call to a number with an autonomous AI agent that pursues a goal and reports back. Usage: /call-me <e164-number> <objective>/callsList recent calls (status, duration, cost) by querying the bundled claude-call MCP server./dial-me-on-blockedDial Me On BlockedArm a Notification hook so Claude calls you whenever it stalls waiting for permission or input. Usage: /dial-me-on-blocked <e164-number>/dial-me-on-blocked-cancelDial Me On Blocked CancelDisarm the /dial-me-on-blocked Notification hook for this session./notify-meNotify MeArm a one-shot Stop hook so Claude calls you when the current task finishes. Usage: /notify-me <e164-number>/notify-me-cancelNotify Me CancelDisarm the /notify-me Stop hook for this session.npx claudepluginhub patterai/awesome-claude-call --plugin claude-callOther plugins' commands for the same job