API Keys
All services used have generous free tiers. No credit card required.
Google Gemini (required)
Used for AI-powered risk analysis of news headlines.
- Go to aistudio.google.com
- Sign in with your Google account
- Click Get API key → Create API key
- Copy the key to
GEMINI_API_KEY
Free tier: 250 requests/day — more than enough for 4 runs/day.
Resend (required)
Used to send HTML email alerts.
- Go to resend.com and create an account
- Go to API Keys → Create API Key
- Copy the key to
RESEND_API_KEY
Free tier: 3,000 emails/month.
Emails are sent from onboarding@resend.dev (Resend’s shared sender) — no domain verification needed.
Telegram (optional)
Sends alerts to a Telegram chat in addition to email.
1. Create a bot
- Open Telegram and message @BotFather
- Send
/newbotand follow the prompts - Copy the bot token to
TELEGRAM_BOT_TOKEN
2. Get your chat ID
- Message @userinfobot on Telegram
- It replies with your chat ID
- Copy it to
TELEGRAM_CHAT_ID
3. Start a conversation
Send any message to your new bot so it can message you back.
Summary
| Secret | Required | Source |
|---|---|---|
GEMINI_API_KEY | Yes | aistudio.google.com |
RESEND_API_KEY | Yes | resend.com |
TELEGRAM_BOT_TOKEN | No | @BotFather |
TELEGRAM_CHAT_ID | No | @userinfobot |