AI-powered 24/7 diet planning assistant on Telegram. 100% free to run.
- Personalized Meal Plans - AI-generated daily meals based on your goals
- Food Logging - Track what you eat with natural language
- Progress Reports - Weekly stats and recommendations
- 24/7 Notifications - Morning plans, meal reminders, evening summaries
- Multiple Diet Goals - Weight loss, muscle gain, keto, intermittent fasting
- Dietary Restrictions - Vegetarian, vegan, gluten-free, allergies
git clone https://github.com/NSK-syam/diet-agent.git
cd diet-agent
chmod +x setup.sh
./setup.shThe setup script will guide you through everything.
| Service | What to do |
|---|---|
| Telegram Bot | Message @BotFather, send /newbot, get token |
| Supabase | Create account at supabase.com, new project, run SQL |
In Supabase:
- Go to SQL Editor
- Copy contents of
scripts/setup_db.sql - Paste and click Run
source venv/bin/activate
python run.pyThen message your bot on Telegram and send /start!
If you prefer manual setup:
# Clone
git clone https://github.com/NSK-syam/diet-agent.git
cd diet-agent
# Install
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Configure
cp .env.example .env
# Edit .env with your tokens
# Run
python run.py| Command | Description |
|---|---|
/start |
Setup your profile |
/plan |
Get today's meal plan |
/log pizza |
Log food you ate |
/quick |
Quick-log common foods |
/suggest |
Get meal suggestion |
/snack |
Healthy snack ideas |
/water |
Log water intake |
/weight 70 |
Log your weight |
/progress |
Weekly report |
/goals |
Update goals |
/settings |
Change preferences |
/help |
All commands |
All free options:
| Provider | Setup |
|---|---|
| Ollama (Local) | Install ollama.com, run ollama pull llama3.2 |
| Groq (Cloud) | Get free key at groq.com |
| Gemini (Google) | Get free key at ai.google.dev |
| Rule-based | No setup needed, uses built-in meal templates |
Set in .env: AI_PROVIDER=ollama (or groq, gemini, rule_based)
Keep running after closing terminal:
nohup python run.py > bot.log 2>&1 &Check logs:
tail -f bot.logStop bot:
pkill -f "python run.py"| Service | Cost |
|---|---|
| Supabase | $0 (free tier) |
| Telegram | $0 (always free) |
| AI (Ollama/Groq/Gemini) | $0 (free) |
| Total | $0/month |
MIT
Built with Claude Code