Skip to main content

lfg-alarm

Ring a real alarm on a phone from code, and set alarms with LFG Alarm's tools.

LFG Alarm is a social alarm clock for iPhone and Android. Rocco, LFG's agent, rings a real alarm on your phone, and your friends' phones, at a time or when something happens. This package lets a script, a cron job, a bot or an AI agent do the same.

pip install lfg-alarm

Python 3.8 or later. Standard library only, no dependencies.

Ring a phone when something happens

Make a 🔮 Anything alarm in the LFG Alarm app (or with set_webhook_alarm below). It comes with a private link; calling it rings every phone on the alarm. No key needed: the link is the permission, so keep it secret.

import os
from lfg_alarm import ring

result = ring(os.environ["LFG_RING_URL"])
# RingResult(rang=True, woke_up=1, ...)
# or rang=False with retry_after_seconds if it rang moments ago,
# or rang=False with message="This alarm is switched off."

A Set an LFG alarm button for your event

add_link builds the link to put behind a Set an LFG alarm badge, beside Add to calendar on an event page or in an email. No key needed. Tapped, it opens the LFG Alarm app (or lfg.gm) on that event, and the person picks how early it rings; the link alone sets nothing.

from lfg_alarm import add_link

add_link(url="https://lu.ma/your-event")  # we read the page

add_link(title="Rooftop Party", start="2026-11-14T20:00:00-08:00",
         location="Los Angeles", url="https://yoursite.com/e/123")  # nothing is read

start is a timezone-aware datetime or an ISO time with its offset; one without a time zone is left off, never guessed. Badges: https://lfg.gm/developers#add-button

Set alarms with a personal key

Make a key in the LFG Alarm app: Settings > AI apps and keys. Pass it as api_key, or set LFG_API_KEY.

from lfg_alarm import LfgAlarm

lfg = LfgAlarm()  # reads LFG_API_KEY

lfg.set_time_alarm(
    "07:00",
    "America/New_York",
    repeat_days=["mon", "tue", "wed", "thu", "fri"],
    title="Standup",
    vibe="something upbeat",
)

hook = lfg.set_webhook_alarm("Deploy failed", quiet_for="5_min")
print(hook.ring_url)

print(lfg.list_links().text)

Every other tool works through call:

lfg.call("monitor_price", token_id="solana", symbol="SOL", name="Solana", percent=10)
tools = lfg.tools()  # all of them, with what each does

A tool that says no (a plan limit, a bad time) raises LfgAlarmError with LFG Alarm's own words.

What it talks to

  • ring calls the alarm's private link (https://api.lfg.gm/horn/...).
  • LfgAlarm calls LFG Alarm's hosted MCP server, https://mcp.lfg.gm: the same 33 tools Claude, ChatGPT and other AI apps use. AI apps can connect to it directly: lfg.gm/agents.

Some alarm types and limits depend on the account's plan. For plans and pricing, go to lfg.gm.

Developers · Support · Privacy and terms · MIT licence

Metadata

Release files for lfg-alarm 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lfg-alarm 0.4.0
File Size Uploaded Provenance Actions
lfg_alarm-0.4.0.tar.gz 7.9 kB Without provenance Details for lfg_alarm-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lfg-alarm 0.4.0
File Interpreter ABI Platform Actions
lfg_alarm-0.4.0-py3-none-any.whl Python 3 none any Details for lfg_alarm-0.4.0-py3-none-any.whl

Total release size: 15.4 kB

Release files / lfg_alarm-0.4.0.tar.gz

Download URL lfg_alarm-0.4.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3568054300e1509719c5f8012c28a328f3af9a41097848a9761f1dc8fd64cea6
BLAKE2b-256 checksum
How to use checksums
db49cbcab778da529f089605df23590b3b223c12ad4cde908cad0335fc87e5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / lfg_alarm-0.4.0-py3-none-any.whl

Download URL lfg_alarm-0.4.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
753db3eb0ad4e9369d7548973e33429bca76de8834cd5a5c26bbfeff57b31a94
BLAKE2b-256 checksum
How to use checksums
fc9ceaa5076815e5fc3c6fd3f1d5fd2af0909fe1025db974f2d979b13c2afe02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for lfg-alarm 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page