Skip to content

Repository files navigation

Telnyx AI

This repo is the one-stop shop for AI Agents and AI-first developers building with Telnyx — everything an agent needs to build production-grade applications and manage its account, from signup to funding.

Note

This repository is a work in progress under active development. We are continuously improving based on testing and feedback. Contributions and feedback encouraged!

Table of contents

  • Telnyx Plugins - Set up your coding assistant: Telnyx Agent Skills plugins for Claude Code and Cursor, the hosted Telnyx MCP server via the Gemini CLI extension, and a Telnyx model-provider plugin for OpenCode.

  • Agent Toolkit - integrate Telnyx APIs with popular agent frameworks including OpenAI's Agent SDK, LangChain, CrewAI, and Vercel's AI SDK through function calling — available in Python and TypeScript.

  • Agent Skills - give AI agents accurate, up-to-date context about Telnyx APIs and SDKs, plus account-management skills for signup and payments (MPP and x402 account funding).

  • Agent CLI - provision and build on Telnyx infrastructure in a single command.

  • Model Context Protocol (MCP) - use Telnyx's generic API MCP proxy or app-layer MCP Apps.

  • Guides - step-by-step tutorials for common workflows

  • Edge Compute - agent workflows and handoff tooling for Telnyx Edge Compute functions

  • Maintainers - who maintains this repo and how to reach them

Plugins and Extensions

Install the Telnyx plugins you need to give your AI coding assistant Telnyx Agent Skills covering messaging, voice, numbers, AI, IoT, WebRTC, Twilio migration, account management (signup, MPP/x402 payments), and more. Plugins are split by product area so you only load the skills your project uses — see the "Which plugin do I need?" table. For direct Telnyx API access from your assistant, also add the hosted MCP server — see MCP.

Empowers agents to generate correct, production-ready code — and to manage their own accounts — without relying on pre-training or fragile doc retrieval.

Claude Code Plugin

Step 1. Add the Telnyx marketplace (one-time setup):

/plugin marketplace add team-telnyx/ai

Step 2. Install the plugins you need — pick one or more:

/plugin install telnyx-messaging@telnyx  # SMS / MMS
/plugin install telnyx-voice@telnyx      # Voice API (call control, AMD, recording, etc.)
/plugin install telnyx-whatsapp@telnyx   # WhatsApp Business API
/plugin install telnyx-email@telnyx      # Email API
/plugin install telnyx-tts@telnyx        # Text-to-speech
/plugin install telnyx-stt@telnyx        # Speech-to-text
/plugin install telnyx-verify@telnyx     # Phone verification / 2FA
/plugin install telnyx-numbers@telnyx    # Number management, 10DLC, porting
/plugin install telnyx-webrtc@telnyx     # WebRTC and client SDKs
/plugin install telnyx-ai@telnyx         # AI inference and assistants
/plugin install telnyx-platform@telnyx   # Account, fax, IoT, networking, SIP, storage, TeXML, OAuth, Twilio migration

Gemini CLI extension

 gemini extensions install https://github.com/team-telnyx/ai

OpenCode

Install the Telnyx plugin for OpenCode to add Telnyx as a model provider with automatic auth and a TUI for managing hosted models.

# Local (current project only)
opencode plugin @telnyx/opencode

# Global (all projects)
opencode plugin -g @telnyx/opencode

See plugins/opencode/README.md for full setup and configuration.

Cursor

Note

Note: Our Cursor Marketplace listing is pending.

In the meantime, install skills via the Skills CLI.

Add the Telnyx MCP server to your project's .cursor/mcp.json:

  {                                                         
    "mcpServers": {
      "telnyx": {
        "type": "http",
        "url": "https://api.telnyx.com/v2/mcp"
      }
    }
  }

Agent Plugins manifest (any compatible client)

The repo root also carries an Agent Plugins manifest — plugin.json + mcp.json — so clients that speak that format can install the whole repo as one plugin: every skills/*/SKILL.md is bundled automatically and mcp.json declares the hosted Telnyx MCP server (https://api.telnyx.com/v2/mcp, Streamable HTTP).

Authentication. Agent Plugins v1 has no portable credential mechanism — the spec forbids embedding secrets in headers/env and leaves authorization to the client — so mcp.json ships no credentials. Discovery calls (initialize, tools/list, resources/*) work unauthenticated; tools/call requires Authorization: Bearer <TELNYX_API_KEY>. Supply the key through your client's own credential/header settings for the telnyx server, or, if your client cannot attach headers to plugin-provided servers, run the @telnyx/mcp proxy (npx -y @telnyx/mcp --api-key=YOUR_TELNYX_API_KEY) which adds the header for you. Get a key via the portal or telnyx.com/agent-signup.md.

Harnesses

Finalized Telnyx harness plugin repositories for OpenClaw and Hermes integrations:

OpenClaw

Name Description Link
Voice Call Telnyx-first Voice Call provider plugin for OpenClaw realtime voice agents Repository
Text-to-Speech Telnyx TTS speech provider for OpenClaw — carrier-grade voice synthesis Repository
Speech-to-Text Telnyx STT provider for OpenClaw audio transcription Repository
Embeddings Telnyx embedding provider for OpenClaw memory search Repository
Intelligence Telnyx AI text-inference provider plugin for OpenClaw Repository
SMS Channel OpenClaw channel plugin for SMS/MMS via Telnyx Messaging API Repository

Hermes

Name Description Link
Intelligence Telnyx AI text-inference provider plugin for Hermes Repository
Text-to-Speech Telnyx TTS speech-provider plugin for Hermes — WebSocket streaming, NaturalHD, and KokoroTTS voices Repository
Speech-to-Text Telnyx STT transcription-provider plugin for Hermes — streaming speech recognition Repository
SMS Telnyx SMS/MMS platform adapter for Hermes Agent Repository

Hermes voice-call support is in progress and will be added once finalized.

Agent Toolkit

Integrate Telnyx APIs with popular agent frameworks through function calling — available in Python and TypeScript.

Python

pip install telnyx-agent-toolkit
from telnyx_agent_toolkit.openai.toolkit import TelnyxAgentToolkit

toolkit = TelnyxAgentToolkit(
    api_key="KEY_...",
    configuration={
        "actions": {
            "messaging": {"send_sms": True},
            "numbers": {"search_phone_numbers": True, "buy_phone_number": True}
        }
    }
)

tools = toolkit.get_openai_tools()

Works with OpenAI's Agent SDK, LangChain, and CrewAI. See Python docs for full usage and examples.

TypeScript

npm install @telnyx/agent-toolkit
import { TelnyxAgentToolkit } from "@telnyx/agent-toolkit/langchain";

const toolkit = new TelnyxAgentToolkit(process.env.TELNYX_API_KEY!, {
  configuration: {
    actions: {
      messaging: { send_sms: true },
      numbers: { search_phone_numbers: true, buy_phone_number: true },
    },
  },
});

const tools = toolkit.getLangChainTools();

Works with LangChain and Vercel's AI SDK. See TypeScript docs for full usage.

Agent Skills

Install individual skills for your coding assistant via the Skills CLI:

npx skills add team-telnyx/ai --skill <SKILL> --agent <AGENT>

Skills cover two areas: building with Telnyx (messaging, voice, numbers, AI inference, WebRTC, Twilio migration, and more) and account management (programmatic signup, plus funding an account via MPP or x402 payments).

Skills are also published on telnyx.com for runtime discovery at /.well-known/agent-skills/index.json.

Note

See Skills for full install instructions and a comprehensive list of available skills

Agent CLI

Composite commands that reduce multi-step Telnyx workflows to a single command. Built for AI agents and developers who want to provision infrastructure without orchestrating multiple API calls.

telnyx-agent setup-sms        # Buy number + create messaging profile + assign
telnyx-agent setup-voice       # Create SIP connection + buy number + assign
telnyx-agent setup-ai          # Create AI assistant + buy number + wire together
telnyx-agent setup-porting     # Check portability + create porting order + submit
telnyx-agent status            # Account health overview

Every command supports --json for machine-readable output.

See Agent CLI

Model Context Protocol (MCP)

Telnyx hosts a remote MCP server at https://api.telnyx.com/v2/mcp.

To run a local Telnyx MCP server using npx:

npx -y @telnyx/mcp --api-key=YOUR_TELNYX_API_KEY

See MCP for more details about the generic API MCP proxy.

MCP Apps

tools/mcp-apps contains app-layer MCP servers with MCP Apps UI resources for focused Telnyx workflows. These are separate from the generic @telnyx/mcp proxy above.

Current apps:

  • Number Intelligence (tools/mcp-apps/apps/number-intelligence)
  • Usage & Cost Explorer (tools/mcp-apps/apps/usage-cost-explorer)
  • Voice Monitor (tools/mcp-apps/apps/voice-monitor)

From tools/mcp-apps, use npm install, npm run typecheck, npm run build, and npm test.

Guides

Curl-first operational guides for common Telnyx workflows — SMS messaging, voice call control, AI assistants, phone numbers, porting, verification, webhooks, 10DLC registration, WireGuard networking, MPP and x402 account payments, and Edge Compute handoff patterns.

See Guides for the full list.

Edge Compute

Use this repo for agent workflows against Telnyx Edge Compute: the Agent CLI ships edge-doctor (readiness checks), setup-edge-mcp, and setup-edge-webhook for wiring a deployed function into MCP and webhook flows — the Edge Compute guide walks through the full workflow, from auth to a live endpoint.

To create, deploy, and manage the functions themselves (secrets, bindings, lifecycle), use the telnyx-edge CLI from team-telnyx/edge-compute. For agent flows, prefer API-key auth (telnyx-edge auth api-key set <key>).

Maintainers

Maintained by the Telnyx AI‑FDE team: @aisling404, @Oliver-Zimmerman, @aaronjo-Telnyx, and @gbattistel (see CODEOWNERS). The fastest way to reach us is an issue; for security reports, see SECURITY.md.

License

MIT

About

Official one-stop shop for AI Agents and developers building with Telnyx.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

211 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages