# Connect LFG Alarm to Gemini CLI and Antigravity CLI

AI agents · https://lfg.gm/agents/gemini-cli · Updated 2026-10-19

To connect LFG Alarm to Gemini CLI, add `https://mcp.lfg.gm` as an `httpUrl` server in Gemini CLI's `settings.json` (or run `gemini mcp add --transport http -s user lfg-alarm https://mcp.lfg.gm`), then run `/mcp auth lfg-alarm` and sign in with your LFG Alarm account. If Google moved you to Antigravity CLI, the address is the same but the file and key differ; both are below. LFG Alarm is a social alarm clock for iPhone and Android, and Gemini can then set alarms that ring on your phone.

## Before you start

- **Get the LFG Alarm app on your phone** from Google Play or the App Store, and sign in. Your AI agent makes the alarms; the app is what rings them.
- **Know which CLI you have.** Google replaced Gemini CLI with Antigravity CLI (the `agy` command) for people signed in with a personal Google account on 18 June 2026. Gemini CLI's docs still describe using it with a Gemini API key or Vertex AI.
- Have your LFG Alarm sign-in handy. You sign in once, on lfg.gm.

## Connect Gemini CLI

1. In a terminal:

```bash
gemini mcp add --transport http -s user lfg-alarm https://mcp.lfg.gm
```

Or add it to `~/.gemini/settings.json` yourself. Use `httpUrl`, which is Gemini CLI's key for Streamable HTTP (`url` means the older SSE transport):

```json
{ "mcpServers": { "lfg-alarm": { "httpUrl": "https://mcp.lfg.gm" } } }
```

2. Start `gemini` and run `/mcp auth lfg-alarm`. A browser opens on lfg.gm: sign in with your LFG Alarm account and tap **Allow**. Gemini CLI finds the sign-in on its own, so there is no `oauth` block to write.
3. Run `/mcp` to see LFG Alarm and its tools.

## Connect Antigravity CLI

1. Open `~/.gemini/config/mcp_config.json` (shared by the Antigravity app, IDE and CLI), or `.agents/mcp_config.json` in one project.
2. Add LFG Alarm with `serverUrl`. Antigravity does not accept `url` or `httpUrl`:

```json
{ "mcpServers": { "lfg-alarm": { "serverUrl": "https://mcp.lfg.gm" } } }
```

3. Type `/mcp` in the CLI to open its MCP manager. Antigravity handles sign-in on its own for servers like LFG Alarm that register clients automatically; when it asks, sign in on lfg.gm and tap **Allow**. In the Antigravity app or IDE, the **Authenticate** button is under agent settings, on the **Customizations** tab.

These steps follow Google's own docs. Both tools change quickly; if a label differs, look for MCP servers in `/mcp`.

## Use it from the terminal

Ask Gemini for a one-off alarm when a long job should be done, and walk away. Lena sets one called "Model done training" for 50 minutes before a fine-tune finishes. Jun asks Gemini for an anything alarm, gets a private link back, and has Gemini add a `curl -X POST` to it at the end of his deploy script, so his phone rings when the deploy really finishes. See [How to make any app, script or feed ring your phone](https://lfg.gm/webhook-alarm).

## Try it

**Try this.** Paste it into ChatGPT, Claude, Grok or another AI agent that has the LFG Alarm connector (https://mcp.lfg.gm), not into the LFG Alarm app. The person needs the LFG Alarm app on their phone.

> Use LFG Alarm to set a one-off time alarm for 40 minutes from now called "Check the build". Then tell me the date and time it will ring.

Why it works: A one-off from now for a wait in the terminal, and the agent tells you the exact time, so you know the connection works.

More ideas: "Wake me at 7:00 every weekday and call it Standup", or "List my alarms". See [Using LFG Alarm from your AI agent](https://lfg.gm/wiki/ai-agents) for everything it can do.

## If it does not work

- **No browser on this machine** (SSH or a container). Sign-in needs a local browser. Use a personal key instead: in LFG Alarm, open **Settings** > **Connected AI apps** > **Make a key**, then add `"headers": { "Authorization": "Bearer lfg_pat_..." }` to the server entry. The key is stored in plain text and acts as you, so keep it off shared machines.
- **LFG Alarm is ignored in Antigravity.** Check the key is `serverUrl`, not `httpUrl` or `url`.
- **Still stuck?** Write to us from the [support page](https://lfg.gm/support).

## Questions

### Is this the Gemini app?
No. This page is for Google's command line tools. For the Gemini app, see [Connect LFG Alarm to Gemini](https://lfg.gm/agents/gemini).

### How does it ring?
A time alarm is a real alarm on iPhone and Android and rings through silent mode. An anything alarm rings full screen on Android; on iPhone it arrives as a time-sensitive alert with the alarm's sound, so keep the ringer on.

### Does LFG Alarm see my code?
No. It only receives what the CLI sends when it uses LFG Alarm's tools.

## Learn more

- [Using LFG Alarm from your AI agent](https://lfg.gm/wiki/ai-agents) and [Time alarms](https://lfg.gm/wiki/time-alarms)
- [Connect LFG Alarm to Codex CLI](https://lfg.gm/agents/codex-cli)
- [Connect LFG Alarm to another AI app](https://lfg.gm/agents)

## Sources and further reading

- [Gemini CLI docs: MCP servers](https://geminicli.com/docs/tools/mcp-server/)
- [Gemini CLI on GitHub](https://github.com/google-gemini/gemini-cli)
- [Antigravity docs: MCP](https://antigravity.google/docs/mcp?tab=cli)

LFG Alarm is not affiliated with Google.

## Keep exploring

- [Connect LFG Alarm to your AI app](https://lfg.gm/agents.md): The LFG Alarm MCP server: set alarms from ChatGPT, Claude, Grok, Gemini, OpenClaw and more, and they ring on your phone.
- [Connect LFG Alarm to ChatGPT](https://lfg.gm/agents/chatgpt.md): Add LFG Alarm to ChatGPT with the address mcp.lfg.gm, sign in once, and ask ChatGPT to set alarms that ring on your phone.
- [Connect LFG Alarm to Claude](https://lfg.gm/agents/claude.md): Add LFG Alarm to Claude as a custom connector, sign in once, and ask Claude to set alarms that ring on your phone. Claude Code too.
- [Connect LFG Alarm to Grok](https://lfg.gm/agents/grok.md): Add LFG Alarm to Grok as a custom connector, sign in once, and ask Grok to set alarms that ring on your phone.
- [Connect LFG Alarm to Gemini](https://lfg.gm/agents/gemini.md): Add LFG Alarm to Gemini as a custom app, sign in once, and ask Gemini to set alarms that ring on your phone.
- [Connect LFG Alarm to Perplexity](https://lfg.gm/agents/perplexity.md): Add LFG Alarm to Perplexity as a custom remote connector, sign in once, and ask Perplexity to set alarms.

## About LFG Alarm

LFG Alarm is a social alarm clock for iPhone, iPad and Android. It rings for times and for moments (a post on X, a stream going live, a token price, a wallet buying, an event starting), and one shared link makes every phone that joined ring together. Rocco, the cat inside the app, keeps watch and wakes you up.

- Get it on Google Play: https://play.google.com/store/apps/details?id=gm.lfg.app
- Download on the App Store: https://apps.apple.com/app/id6821089085
- Use it from an AI agent: add the MCP server https://mcp.lfg.gm as a connector, then ask in plain words.
- Every page for agents: https://lfg.gm/llms.txt
