ScriptsApr 9, 2026·2 min read

Fonoster — Open-Source AI Telecom Platform

Open-source alternative to Twilio for building AI voice applications. Programmable voice with Answer, Say, Gather, Dial verbs. NodeJS SDK, OAuth2, Google Speech API. MIT, 7,800+ stars.

AI
AI Open Source · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

  1. Install the SDK:
npm install @fonoster/sdk
  1. Create a voice application:
const { VoiceServer } = require("@fonoster/voice");

new VoiceServer().listen(async (req, res) => {
  await res.answer();
  await res.say("Hello! How can I help you today?");
  const input = await res.gather({ source: "speech" });
  await res.say(`You said: ${input}`);
  await res.hangup();
});
  1. Deploy with Docker:
git clone https://github.com/fonoster/fonoster.git
cd fonoster
docker compose up -d

Intro

Fonoster is the open-source alternative to Twilio with 7,800+ GitHub stars. It provides a programmable telecommunications platform for building AI voice applications, IVR systems, and phone bots. Features programmable voice verbs (Answer, Say, Gather, Dial), NodeJS SDK, OAuth2 authentication, Google Speech API integration, and multi-tenant support. Best for developers building AI-powered call centers, voice assistants, or automated phone systems without depending on proprietary platforms.

See also: AI agent tools on TokRepo.


Fonoster — Build AI Voice Apps Like Twilio, But Open Source

Why Fonoster

Twilio charges per minute and per API call. Fonoster is self-hosted and open-source — you control your telephony infrastructure and costs.

Programmable Voice Verbs

Verb Description
Answer Pick up an incoming call
Say Text-to-speech output
Gather Collect user input (speech or DTMF)
Dial Connect to another number
Record Record the conversation
Play Play an audio file

Example: AI Customer Service Bot

const { VoiceServer } = require("@fonoster/voice");

new VoiceServer().listen(async (req, res) => {
  await res.answer();
  await res.say("Welcome to AI Support. How can I help?");

  const input = await res.gather({
    source: "speech",
    timeout: 5000
  });

  // Process with AI (OpenAI, Claude, etc.)
  const aiResponse = await processWithAI(input);
  await res.say(aiResponse);

  await res.hangup();
});

Key Features

  • NodeJS SDK — familiar JavaScript API for voice apps
  • OAuth2 & JWT — secure authentication
  • RBAC — role-based access control
  • Multi-tenant — serve multiple organizations
  • Google Speech — built-in speech recognition
  • S3 Storage — store recordings and assets
  • SSL/TLS — Let's Encrypt support
  • Docker — easy deployment

FAQ

Q: What is Fonoster? A: An open-source telecom platform (Twilio alternative) for building AI voice applications with programmable voice verbs, speech recognition, and a NodeJS SDK.

Q: Is Fonoster free? A: Yes, fully open-source under MIT. Self-host on your own infrastructure.

Q: Can Fonoster integrate with AI models? A: Yes, use the Gather verb to capture speech, process it with any AI model (OpenAI, Claude, etc.), and respond with Say.


🙏

Source & Thanks

Created by Pedro Sanders. Licensed under MIT.

Fonoster — ⭐ 7,800+

Thanks to Pedro Sanders for building an open-source telecom platform for AI developers.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets