AI agents · 4 min read

Connect LFG Alarm to Codex CLI

To connect LFG Alarm to Codex CLI, run codex mcp add lfg-alarm --url https://mcp.lfg.gm, then codex mcp login lfg-alarm, and sign in with your LFG account. Then ask Codex for an alarm while it works ("ring me in 30 minutes, when this refactor should be done"), and it rings on your phone. LFG is your daily social alarm & curiosity agent for iPhone and Android.

Also called: codex mcp · openai codex alarm · codex config.toml mcp server · codex cli notification phone

Download on the App StoreGet it on Google Play

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.
  • Codex CLI installed and signed in.
  • Have your LFG Alarm sign-in handy. You will sign in once, on lfg.gm, to let Codex use your account.

Connect it

  1. In a terminal, add the server:
codex mcp add lfg-alarm --url https://mcp.lfg.gm

Or open ~/.codex/config.toml (for every project) and add it yourself:

[mcp_servers.lfg-alarm]
url = "https://mcp.lfg.gm"
  1. Sign in:
codex mcp login lfg-alarm

A browser opens on lfg.gm: sign in with your LFG account and tap Allow. Codex registers itself on its own, so there is no client ID to paste.

  1. Start codex and type /mcp. LFG Alarm should be in the list of active servers.

The ChatGPT desktop app and the Codex IDE extension read the same configuration, so once it is added it is there too.

These steps follow OpenAI's own docs; if a flag has changed, run codex mcp --help.

Use it while Codex works

Codex runs long jobs: a refactor across a repo, a test suite, a migration. Ask it to set a one-off alarm for when the job should be done, then step away. A terminal bell is easy to miss from the kitchen; your phone ringing out loud is not.

  • Theo asks Codex to set a 45 minute alarm called "Review the PR" before it starts a big rename, then goes for a walk.
  • Priya runs an overnight data backfill and asks Codex for a webhook alarm. Codex hands back a private link and adds a curl -X POST to it as the script's last line, so her phone rings when the job really ends. See How to make any app, script or feed ring your phone.

Try it

Once it is connected, ask in plain words:

try this

Have your AI agent make it.

Paste this into ChatGPT, Claude, Grok or any AI agent that can add a connector, not into the LFG Alarm app. The setup steps come with it: get the LFG Alarm app, connect it to your agent once, and your agent makes the alarm in your account.

My refactor will take Codex about 30 minutes. Use LFG Alarm to set an alarm for 30 minutes from now called "Check the refactor", so I can step away.

Already have the LFG Alarm app and connected it to your AI agent?

Why it works. A long job in the terminal is the moment to leave your desk: the alarm brings you back when it should be done.

More ideas:

  • "Add a monitor that rings me when tickets for [event] go on sale"
  • "Set a sun & moon alarm for golden hour in [your city] every day"
  • "Wake me at 7:00 every weekday and call it Standup"
  • "Make a friends alarm for Friday at 4:00pm called Release and add my friends [username] and [username]"
  • "List my alarms"

Codex can set time, sun & moon, price, post, event, wallet, trader, monitoring and webhook alarms; list, change, turn on or off and delete them; and add your friends or a group once you confirm. See Using LFG Alarm from your AI agent.

If it does not work

  • The browser never opens. Run codex mcp login lfg-alarm again. Adding the server does not start the sign-in on its own.
  • Codex cannot open a browser (an SSH session or a container). Use a personal key instead. In LFG Alarm, open Settings > AI apps and keys > Make a key. Put the key in an environment variable named LFG_ALARM_KEY, and add bearer_token_env_var = "LFG_ALARM_KEY" under [mcp_servers.lfg-alarm]. The key acts as you, so keep it out of shared machines and CI.
  • LFG Alarm is not in /mcp. Check the address is exactly https://mcp.lfg.gm and that you edited the config.toml Codex is reading.
  • Still stuck? Write to us from the support page.

Disconnect

Run codex mcp remove lfg-alarm, or delete its block from config.toml. Your alarms stay in your LFG account and keep ringing.

Learn more

Sources and further reading

LFG Alarm is not affiliated with OpenAI.

questions people ask
Can Codex ring my phone when a script finishes?

Yes, with a webhook alarm. Ask Codex to make one; it returns a private link, and a POST to that link rings every phone that joined. After a ring the alarm stays quiet for the time chosen when it was made, so a retry loop rings once.

How does it ring?

A time alarm is a real alarm on iPhone and Android and rings through silent mode. A webhook 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. LFG Alarm only receives what Codex sends when it uses LFG Alarm's tools.

keep exploring

One use case opens another.

Never miss the moment.

Free on Android and iPhone.

Download on the App StoreGet it on Google Play