Skip to main content

langchain-lfg

LangChain tools for LFG Alarm: let an agent set real alarms that ring on a person's phone, and their friends' phones, at a time or when something happens online. Or give it one tool that rings the person's phone when a long task is done.

LFG Alarm is a social alarm clock for iPhone and Android. Rocco, LFG's agent, rings a real alarm, not a quiet notification.

pip install -U langchain-lfg

LfgAlarmToolkit

LFG Alarm's tools, the same ones Claude and ChatGPT use through its MCP server, read from the hosted server so they always match it. Make a personal key in the LFG Alarm app (Settings > AI apps and keys) and set LFG_API_KEY.

from langchain.agents import create_agent
from langchain_lfg import LfgAlarmToolkit

tools = LfgAlarmToolkit(only=["set_time_alarm", "list_my_links", "delete_link"]).get_tools()
agent = create_agent("openai:gpt-5-mini", tools)
agent.invoke({"messages": [{"role": "user", "content": "Wake me at 7 on weekdays with something upbeat. I'm in London."}]})

Leave out only to give the agent every tool (price, post, event, trader and webhook alarms, sharing, wallpapers and more).

LfgRingPhoneTool

Rings the person's phone now through an 🔮 Anything alarm, so they hear it away from the screen. No key: make an Anything alarm in the app, copy its private link and set LFG_RING_URL. Anything alarms need a paid plan; see lfg.gm.

from langchain_lfg import LfgRingPhoneTool

tools = [LfgRingPhoneTool(), *your_tools]

The phone shows the alarm's own name, not the agent's words, so name the alarm for the moment, like "Your report is ready". On Android it rings full screen; on iPhone it arrives as a time-sensitive alert with the alarm's sound.

Develop

pip install -e ".[test]"
pytest tests

Some alarm types and limits depend on the account's plan. For plans and pricing, go to lfg.gm. Built on the lfg-alarm client. MIT licence. Help: lfg.gm/support or support@lfg.gm.

Metadata

Release files for langchain-lfg 0.2.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 langchain-lfg 0.2.0
File Size Uploaded Provenance Actions
langchain_lfg-0.2.0.tar.gz 4.8 kB Without provenance Details for langchain_lfg-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-lfg 0.2.0
File Interpreter ABI Platform Actions
langchain_lfg-0.2.0-py3-none-any.whl Python 3 none any Details for langchain_lfg-0.2.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / langchain_lfg-0.2.0.tar.gz

Download URL langchain_lfg-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b19cb6ceba7fdcf4d7c3423499610dace16b97ddce46705a51856298bb0ca7e4
BLAKE2b-256 checksum
How to use checksums
e8e6d9af241e77bc49cf9b3c0c2a14168b26ab582343ba0cc3e256b85f6d17f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / langchain_lfg-0.2.0-py3-none-any.whl

Download URL langchain_lfg-0.2.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbdd42aca2709ffcc30a0712e5ce14bc2d4dbe178249b04254a34cfcc052ea1f
BLAKE2b-256 checksum
How to use checksums
52a6b5386c11304a93e2062523c9bb64b12a727eaef00d87627f873810ed0e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for langchain-lfg 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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