saasagelabs/twring
A self-hostable voice gateway for calling existing AI agents and getting callbacks
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Twring is a TypeScript monorepo that adds a mobile voice layer to agents users already run. The Expo/React Native client in apps/mobile joins a LiveKit room. The server in apps/gateway handles calls, agent connections, chats, and rings. It turns incoming speech into text, sends it to the connected agent, and streams the agent’s reply back as synthesized audio. The agent retains its own model, memory, tools, and responsibility for execution.
The repository separates machine linking into apps/connector and locked-phone wakeups for self-hosted gateways into apps/relay. Shared contracts, configuration, agent adapters, and push code live in packages/. The integration surface covers named agents and agents with their own web address; AI-app custom connectors expose ringing and messaging without the live call path. The workspace declares Node.js 24 or newer and uses pnpm.
Key Capabilities & Differentiators
Twring supports app-to-agent calls and agent-initiated callbacks for events such as a finished job or a pending approval. During a call, partial speech recognition updates the interface, and the gateway starts synthesizing the agent’s text as it arrives. Users can interrupt playback by speaking and answer approval requests by voice or tap. The call layer also handles continuity across network changes; it does not execute the agent’s tools.
Live calls are supported for Hermes, Claude Code, Codex, Gemini CLI, and agents reachable at their own web address. The speech backends are Deepgram or xAI for recognition, and Cartesia, Deepgram, or xAI for synthesis. iPhone and Android share a React Native codebase. Claude and ChatGPT custom connectors can initiate rings and send messages, but cannot take live calls through that integration.
Trade-offs & Limitations
Compared with a standalone voice assistant, Twring lets teams reuse their existing agent’s model, memory, and tools instead of migrating them into a new runtime. The flip side is that the gateway cannot compensate for slow agent responses or define the agent’s execution policy. In-call approval is an interface to the connected agent, not a substitute for tool permissions and approval enforcement on the agent side. For teams that only need completion alerts, a messaging integration is simpler to operate.
Self-hosting gives operators control of chat and file storage, but the voice path still uses external speech providers and requires a working LiveKit media path. Locked-screen callbacks add another dependency in the ring relay. Plan around concurrent calls and network quality, and verify callback delivery and interruption behavior on actual devices before rollout. If policy requires speech to stay on premises, the external speech path described here does not meet that requirement.
Hardware & Deployment Guide
The self-hosted kit targets a Linux machine or VPS. The deploy/selfhost directory contains the installer, twring command, and Compose files. The published quickstart pipes a downloaded installer into sudo sh, so inspect the script before running it with elevated privileges. Pair the phone by scanning the setup code, supply your own speech account, and plan for network access to the speech provider. Self-hosting keeps chats and files on your server; it is not an offline voice deployment.
The hosted route requires an invite and distributes the iPhone build through TestFlight and Android through a download link; it also accepts user-supplied speech credentials, which are validated and stored encrypted on the server. For source development, use Node.js 24 or newer, enable Corepack, and install with pnpm; the workspace exposes type checking, lint, and test scripts. The self-host release line includes selfhost-v1.0.5. The separate Hermes v0.2.1 release uses marketplace-based installation, so the version selected by Hermes depends on the marketplace listing.
Teams or individuals already running agents who want live mobile conversations, callbacks, and human approvals without replacing the agent runtime.
You require offline speech, standard telephone-number calling, or a voice platform that owns model inference and tool execution.
Quick Start & Installation
curl -fsSL https://twring.com/install.sh | sudo sh
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| twring ★ | 23 | +7 | TypeScript | Apache-2.0 | A self-hostable voice gateway for calling existing AI agents and getting callbac |
| voicebox | 61.8k | +437 | Python | MIT | Local-first voice studio with multi-engine speech synthesis, dictation and MCP. |
| speech-to-speech | 13.9k | +137 | Python | Apache-2.0 | A modular speech cascade for self-hosted voice agents over OpenAI Realtime |
| hyperframes | 95.5k | +4.4k | TypeScript | Apache-2.0 | HTML timelines for editable video projects and frame-by-frame rendering |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/saasagelabs/twring.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about twring
How do I connect an existing agent, and what runs where?
Does the self-hosted gateway need a GPU, and how should I size it?
Can I self-host or redistribute Twring commercially?
When is Twring a better choice than a standalone voice assistant or a messaging integration?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy