# agentring (mutonby/agentring)

> Your AI agent can call your phone over VoIP when it needs a decision, hits a problem or finishes a long job. The phone rings even when locked, a voice AI explains the situation, and the transcript goes back to the agent. You can also call your agents from the app.

- GitHub: https://github.com/mutonby/agentring
- GitHub.Locker page: https://github.locker/mutonby/agentring
- Stars: 449
- Language: Python
- License: Apache-2.0
- Last push: 2026-11-17

## Questions and answers

Written by GitHub.Locker from the README and the repository; check the README below for details.

**Is it an app, a server or a library?**

It has three parts: a self-hosted relay on your server (TypeScript, with LiveKit for call audio), a Python daemon with the CLI and MCP server that runs next to your agents, and a Kotlin Android app for pairing, calls and messages.

**How do I get it running?**

Run the relay with Docker on a Linux server with a domain name, or on your own computer if the phone is on the same network. Create a free Firebase project, install the Android app, pair it by QR code and add the MCP server to your agent. Prefer not to host it? Use the hosted version at agentring.io. The full guide is in docs/setup.md.

**What do I need before I start?**

A Linux server with Docker and a domain, or your own computer with Docker; a free Firebase project, which is what lets a locked phone ring; a voice AI key (Gemini has a free tier, or OpenAI, xAI or Phonic); and an Android phone.

**Any limitations I should know about?**

Android only for now, with no iOS yet. Android Auto is in beta and only in the APK from Releases, not on Google Play. There is one user per relay, with no accounts.

**How is it different from calling through Twilio?**

It skips phone numbers and telephony providers entirely. Calls go over VoIP from your own LiveKit server straight to your phone, so there are no per-minute carrier fees.

**Can I call my agent instead of waiting for it to call me?**

Yes. Tap 'Call agent' in the app and talk to it by voice. The voice AI can ask your agents for help mid-call, and if one is slow, its answer arrives later as a message if you have already hung up.

**What happens if I miss the call?**

The missed call turns into a message that you can answer right from the notification, so nothing gets lost.

**What would I actually use it for?**

Things like 'run the migration and call me if anything fails', 'ask me before you deploy', or a daily call with your assistant about your inbox.


---

## README (checked against GitHub 2026-11-18)

Source: https://github.com/mutonby/agentring/blob/main/README.md

# agentring

**Your AI agent can call you.** When it needs a decision, hits a wall or finishes a
long job, your phone rings like a real call, even locked and in Doze. A voice AI tells
you what's going on, you talk it through, and the agent gets the transcript and carries
on. You can also call your agents back from the app and ask them things by voice.

Open source, with no phone numbers, no Twilio and no per-minute telephony fees: calls go
over VoIP straight to the app. Use the hosted version at [agentring.io](https://agentring.io),
or run everything on your own server.

[![Get it on Google Play](https://img.shields.io/badge/Google_Play-Get_the_app-1f1f1f?style=for-the-badge&logo=googleplay&logoColor=white)](https://play.google.com/store/apps/details?id=dev.agentring.app&referrer=utm_source%3Dgithub%26utm_medium%3Dreadme)
[![Try it hosted, free](https://img.shields.io/badge/agentring.io-Try_it_hosted%2C_free-c2410c?style=for-the-badge)](https://agentring.io/login)

[![GitHub stars](https://img.shields.io/github/stars/mutonby/agentring?style=flat&logo=github)](https://github.com/mutonby/agentring/stargazers)
[![CI](https://github.com/mutonby/agentring/actions/workflows/ci.yml/badge.svg)](https://github.com/mutonby/agentring/actions/workflows/ci.yml)
[![Android](https://github.com/mutonby/agentring/actions/workflows/android.yml/badge.svg)](https://github.com/mutonby/agentring/actions/workflows/android.yml)
[![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)

https://github.com/user-attachments/assets/4d925f22-727f-4d66-8665-c392cc3d1eb3

*Sound on. A real run with Claude Code, a Pixel 6 and the voice AI: a migration fails, Claude Code
calls the locked phone, you decide, it carries on. The phone is a screen recording with the call
audio (the ringtone was added), the terminal is redrawn from Claude Code's output, and only the waits were cut. Silent
version: [demo.gif](docs/media/demo.gif).*

## Try it in five minutes

With the hosted version there is no server, Firebase project or voice AI key to set up.

1. **Install the app** from [Google Play](https://play.google.com/store/apps/details?id=dev.agentring.app&referrer=utm_source%3Dgithub%26utm_medium%3Dreadme) (Android 8 or newer).
2. **[Sign in at agentring.io](https://agentring.io/login)** with your email (free plan, no
   card) and scan the QR code on your dashboard with the app. The phone is paired.
3. **Add the MCP server to your agent.** The dashboard shows the command with your key:

   ```bash
   claude mcp add --transport http agentring https://agentring.io/mcp \
     --header "Authorization: Bearer ak_…"
   ```

Then ask your agent: *"run the migration and call me if anything fails."*

The free plan has 1 phone, 10 call minutes a month with the voice AI included, and 100
messages a day. Other agents (Codex, opencode, OpenClaw, Hermes, n8n):
[docs/agents.md](docs/agents.md#recipes-by-harness). To run it all yourself instead, see
[Self-hosting](#self-hosting).

## What it does

- **Your agent reaches you.** It can send you a message, wait for your reply or call
  you (`send_message`, `get_replies`, `call`). On a call, a voice AI explains why the
  agent is calling, answers your questions and hands the transcript back.
- **You reach your agents.** Tap "Call agent" in the app. The voice AI can ask your own
  agents for help mid-call. If one is slow, the call goes on and its answer arrives
  when it's ready, or as a message if you've already hung up.
- **Nothing gets lost.** A missed call turns into a message you can answer from the
  notification.

Things people use it for: *"run the migration and call me if anything fails"*, *"ask
me before you deploy"*, *"what did CI say?"* while driving, a daily call with your
assistant about your inbox.

## Works with your agent

agentring doesn't care which harness you use: anything that speaks MCP can reach you,
and anything you can run as a command can be consulted from a call.

| | Reaches you | You consult it from a call |
|---|---|---|
| Claude Code | MCP | `claude -p` |
| Codex | MCP | `codex exec` |
| opencode | MCP | `opencode run` |
| Grok Build | MCP, or the [plugin](plugins/agentring) | |
| OpenClaw | MCP | `openclaw agent` |
| Hermes | MCP | `hermes -z` |
| n8n, scripts, anything with HTTP | REST API, CLI | any command, or a small script for an HTTP agent |

Copy-paste setup for each: [docs/agents.md](docs/agents.md#recipes-by-harness). OpenClaw and
Hermes have one command for all of it: `agentring connect openclaw` / `agentring connect hermes`,
or install the [skill](skills/agentring) and ask your agent to set agentring up.

The skill installs in any harness that reads skills with `npx skills add mutonby/agentring`
([skills.sh](https://skills.sh/mutonby/agentring)), and from ClawHub as `@mutonby/agentring`.

## Self-hosting

Everything on your own machines, free and without limits. You need:
- somewhere to run the relay: a Linux server with Docker and a domain name, **or** your own
  computer with Docker (the phone on the same Wi-Fi, or anywhere over Tailscale),
- a free Firebase project, which is what makes a locked phone ring ([docs/firebase.md](docs/firebase.md)),
- a key for the voice AI: Gemini ([free tier](https://aistudio.google.com/apikey)), or OpenAI,
  xAI (Grok), Phonic or OpenRouter ([providers](docs/voice.md#providers)),
- an Android phone.

```bash
# 1. The relay, on a server with a domain (ports 80, 443, UDP 50000-50100 and TCP 7881 open)
cd deploy && cp .env.example .env && $EDITOR .env && docker compose up -d --build
#    ... or on your own computer, at its LAN or Tailscale IP
cd deploy && cp .env.local.example .env.local && $EDITOR .env.local \
  && docker compose -f docker-compose.local.yml --env-file .env.local up -d --build
docker compose logs relay | grep -A2 "API key"   # add the same -f/--env-file for the local one

# 2. The computer where your agent runs
uv tool install './daemon[voice]'
agentring init --relay https://relay.example.com --api-key ak_...
agentring pair                         # scan the QR code with the app
agentring msg "hello"                  # the phone gets a notification
echo GEMINI_API_KEY=... >> ~/.agentring/.env  # or OPENAI_API_KEY / XAI_API_KEY / PHONIC_API_KEY
agentring call "Testing agentring" --ai       # + --provider openai|grok|phonic

# 3. Your agent (Claude Code here; others: docs/agents.md)
claude mcp add agentring -- agentring mcp
```

Install the app from **[Google Play](https://play.google.com/store/apps/details?id=dev.agentring.app&referrer=utm_source%3Dgithub%26utm_medium%3Dreadme)**
(recommended: it updates itself, and the same app works with agentring cloud and with your
own relay). The APK on [Releases](https://github.com/mutonby/agentring/releases) is for
those who'd rather not use Play; it's signed with a different key, so uninstall one before
installing the other. The full
tutorial, step by step for both options and with a troubleshooting table:
**[docs/setup.md](docs/setup.md)**. If the phone doesn't ring when locked, it's usually the
vendor's battery saver: [docs/troubleshooting-oem.md](docs/troubleshooting-oem.md).

## How it works

```
 your agent ──MCP/CLI──▶ daemon ──WSS (outbound only)──▶ relay ──FCM push──▶ Android app
     ▲                     │                      (your server)                   │
     └── agents.yaml ◀── voice AI (realtime) ◀──────── LiveKit (call audio) ───────┘
```

- **relay** (TypeScript): pairing, messages, call state, push, LiveKit tokens. Runs on
  your server behind Caddy.
- **LiveKit**: the call audio, self-hosted in the same compose file.
- **daemon** (Python): the `agentring` CLI, the MCP server and the voice AI. Runs next
  to your agents, behind NAT is fine.
- **Android app** (Kotlin): QR pairing, the native call screen, messages.

The voice AI is the voice, your agent is the brain: a realtime speech model handles
the conversation and hands real work to your agents. Pick the one you like:

| Voice AI | `--provider` | Key |
|---|---|---|
| [Gemini Live](https://ai.google.dev/gemini-api/docs/live) (default, free tier) | `gemini` | `GEMINI_API_KEY` |
| [OpenAI Realtime](https://developers.openai.com/api/docs/guides/realtime-conversations) | `openai` | `OPENAI_API_KEY` |
| [Grok Voice](https://docs.x.ai/docs/guides/voice/agent) (xAI) | `grok` | `XAI_API_KEY` |
| [Phonic](https://docs.phonic.ai) | `phonic` | `PHONIC_API_KEY` |
| [OpenRouter](https://openrouter.ai): speech-to-text, any chat model, text-to-speech, experimental ([details](docs/voice.md#openrouter-speech-to-text--any-model--text-to-speech)) | `openrouter` | `OPENROUTER_API_KEY` |
| Your own server, e.g. [HF speech-to-speech](https://github.com/huggingface/speech-to-speech) + a small model on llama.cpp (experimental) | `local` | none |

Set `AGENTRING_VOICE_PROVIDER` in `~/.agentring/.env` to use one for every call, from the
CLI and from MCP. How they compare (latency, tool use), how to measure them yourself
(`agentring voice bench`), the local setup and how to add another one:
[docs/voice.md](docs/voice.md#providers).

More: [architecture](docs/architecture.md) · [protocol](docs/protocol.md) ·
[voice AI](docs/voice.md)

## Privacy and security

Self-hosted, everything runs on your own servers and accounts (for the hosted version,
see its [privacy policy](https://agentring.io/privacy)). Messages and call metadata are stored
on your relay. Push notifications go through your own Firebase project; they are
signed, not encrypted, so Google's FCM can read pushed text. Call audio goes through
your LiveKit server and, with the voice AI, to the provider you chose (Google, OpenAI,
xAI or Phonic); on Google's free tier, Google may use that data to improve its products.

Over the phone, the voice AI acts on what it hears, so give it only the tools and
agents you'd trust someone holding your phone with. Details and the threat model:
[SECURITY.md](SECURITY.md).

## Limitations

- Android only (no iOS yet). Android Auto is in beta and only in the APK from Releases:
  Google Play doesn't allow calling apps for cars in production yet
  ([docs/android-auto.md](docs/android-auto.md)).
- It's a young project. The app is on Google Play, and we test it most on a Pixel 6
  (Android 16); other vendors' battery savers can hold a call back
  ([docs/troubleshooting-oem.md](docs/troubleshooting-oem.md)). If it misbehaves on your
  phone, please open an issue.
- Self-hosted, one user per relay: no accounts.
- The voice AI works best with a cloud realtime model (Gemini, OpenAI, Grok or Phonic). A local
  one runs on your own machine (`--provider local`), but it's experimental and slower; others
  plug in through [`RealtimeBackend`](docs/voice.md#backends).

## Development

```bash
cd relay && npm ci && npm test                         # relay
cd daemon && uv run --extra voice pytest               # daemon (+ e2e against the relay build)
cd app-android && ./gradlew :core:test :app:assembleDebug
```

CI builds the APK and runs an end-to-end test on an Android emulator against a real
relay. See [CONTRIBUTING.md](CONTRIBUTING.md) and [docs/release.md](docs/release.md).

## License

[Apache-2.0](LICENSE)

