Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

NdoleStudio/httpsms

Networking & Communication

Turn a self-hosted Android phone into an SMS gateway controlled by an HTTP API.

7,136
1,253
Go
AGPL-3.0
4 years old

What it does

httpSMS turns an Android phone into an SMS gateway: you call an HTTP API, the service pushes a notification to the phone, and the phone sends the SMS through Android's own SMS API. Incoming messages on the phone are forwarded to a webhook you configure. The project was built for regions where buying virtual phone numbers is impractical.

It ships four pieces: the Go/Fiber API backed by CockroachDB, a Nuxt/Vuetify web UI, a Kotlin Android app, and optional Go and JavaScript/TypeScript API clients. Messages can be end-to-end encrypted with AES-256, with the key held only on the phone; rate limits per minute guard against abusing the Android SMS API; messages also carry an expiration so you are notified when a phone does not pick them up in time.

Getting started with the hosted service

The shortest path is the hosted setup: install the Android app on a phone, create an account on the web UI, copy your API key from the settings page, then call the API.

The Go client example from the README:

client := htpsms.New(htpsms.WithAPIKey("<your API key>"))

client.Messages.Send(context.Background(), &httpsms.MessageSendParams{
    Content: "This is a sample text message",
    From:    "+18005550199",
    To:      "+18005550100",
})

The API responds with 202 Accepted, then asynchronously notifies the phone, which sends the SMS and reports back the send result and delivery report. Full onboarding instructions live in the quick start guide, and the API reference is the hosted API docs.

Self-hosting with Docker

Self-hosting requires more infrastructure than most side projects: you must create a Firebase project for push notifications and authentication, configure an SMTP server for emails, and set up a Cloudflare Turnstile widget for the message search route. After cloning the repo and filling in web/.env and api/.env from the provided .env.docker templates, docker compose up --build brings up the stack on ports 3000 (web) and 8000 (API). You then insert a system user row into the users table matching EVENTS_QUEUE_USER_ID/EVENTS_QUEUE_USER_API_KEY and restart the API container. Finally, replace google-services.json in the Android app and rebuild it in Android Studio so FCM works.

Constraints

An Android phone must be installed, online, and able to receive push notifications for anything to be sent; if it is offline for long periods, the project emails you. The API keys and encryption key handling are tied to a working Firebase setup, so self-hosting is coupled to Firebase and Cloudflare services. The license is AGPL-3.0, which matters if you plan to modify and redistribute it. Sending SMS from a phone is also subject to carrier rates and regional rules.

HotRepo's take

On the Go weekly list for the week of 2026-12-04, httpSMS recorded 752 new stars, reaching position 17 in that language ranking. That is a meaningful single-week signal, but only one snapshot is available, so there is no basis to call it a sustained trend. The project's pull is understandable from the technical facts: an HTTP-to-Android-SMS bridge, webhook forwarding, encryption and rate control cover a real integration need that virtual-number services do not serve in every country.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News