๐Ÿค– Jarvis-IG Setup Tutorial

Step-by-step guide to set up your Instagram auto-reply bot on Android (Termux) and PC. Follow along!

Step 0

๐Ÿ“ฑ Install Termux from F-Droid

First, install Termux on your Android phone. Do NOT use the Play Store version โ€” it's outdated. Use F-Droid instead.

  1. Open your phone browser and go to: f-droid.org/packages/com.termux
  2. Download and install the APK
  3. Allow "Install from unknown sources" if prompted
  4. Open Termux โ€” you'll see a black terminal screen
๐Ÿ’ก Tip: Termux is like a mini Linux terminal on your phone. All commands below are typed in this terminal.
Step 1

๐Ÿ“ฆ Install Required Packages

Copy-paste these commands one by one into Termux. Press Enter after each line.

Termux
~ $ pkg update -y && pkg upgrade -y
Hit:1 https://termux.net stable InRelease
All packages are up to date.
~ $ pkg install python python-pillow libjpeg-turbo -y
python is already the newest version (3.13.x).
Installing: python-pillow libimagequant libraqm
Setting up python-pillow (12.2.0) ...
All done!
โš ๏ธ Important: If you see "already installed" โ€” that's fine, just continue to the next step.
Step 2

โฌ‡๏ธ Download the Bot

This downloads the bot file directly from GitHub โ€” no git clone needed!

Termux
~ $ curl -o ig_bot.py https://raw.githubusercontent.com/mohittt-vermaa/Jarvis-IG/main/jarvis_ig/ig_bot.py
% Total % Received Xferd Time
100 9664 100 9664 0 0 12500 0 --:--:--
Downloaded ig_bot.py (9.6 KB)
Step 3

โ–ถ๏ธ Run the Bot (First Time Setup)

The bot will automatically install dependencies and ask you for your Instagram login. No editing needed!

Termux โ€” First Run
~ $ python ig_bot.py
==============================================================
MOHIT's IG AUTO-REPLY BOT (Termux / Phone / PC)
==============================================================
>>> Installing typing_extensions...
>>> Installing pydantic v1 (Termux-friendly)...
>>> Installing instagrapi...
>>> All dependencies installed!
========================================================
FIRST TIME SETUP
Please enter your Instagram login details.
========================================================
Instagram username (without @): mohittt_vermaa0
Instagram password: ************ (hidden typing)
Auto-reply message (press Enter to use the default):
> Hey! Thanks for messaging me. This is Mohit's auto-reply
bot โ€” I'll get back to you personally very soon!
Custom message (or Enter for default): [Enter]
>>> Saved! You can edit later by running: nano ~/.ig_bot_config.json
๐Ÿ’ก Note: The password is hidden โ€” you won't see anything as you type. That's normal! Just type your real password and press Enter. The bot uses mohittt_vermaa0 as the username (without @).
Step 4

๐Ÿ” 2FA / Login Approval

If you have Two-Factor Authentication enabled on Instagram (recommended!), the bot will ask for your 6-digit code.

Termux โ€” 2FA Prompt
[2fa] Enter the 6-digit code from SMS/Auth app: 847291
[ok] Logged in as @mohittt_vermaa0!
[session] Saved login session -> .ig_session_mohit.json
๐Ÿ’ก Tip: You'll only need to enter 2FA once โ€” the bot saves your session for next time!
โš ๏ธ "Challenge Required"? If Instagram asks for security check โ€” open the Instagram app, approve the login ("Was this you?"), then press Enter in Termux to continue.
Step 5

๐Ÿค– Bot is LIVE! Auto-Replying to DMs

The bot is now running and will auto-reply to every new DM you receive.

Termux โ€” Bot Running
==============================================================
Mohit's IG Auto-Reply is LIVE (Ctrl+C to stop)
Reply message : Hey! Thanks for messaging me...
New threads only : True
Check interval : 20s
==============================================================
[dm] New DM from @random_user: Hey Mohit, love your projects!
-> Auto-reply sent.
[dm] New DM from @coding_fan: Can you help me with Python?
-> Auto-reply sent.
[rate] Instagram asked us to slow down; sleeping 10 minutes...
โœ… Done! The bot is running in the background. Every new DM gets an instant auto-reply. To stop it, press Ctrl+C in Termux.
Step 6 (Optional)

๐Ÿ”„ Running 24/7 in Background

Want the bot to keep running even when you switch apps? Follow these steps:

  1. Go to Android Settings โ†’ Apps โ†’ Termux โ†’ Battery
  2. Select "Unrestricted" (disables battery optimization)
  3. The bot will now keep running in the background!
๐Ÿ’ก Advanced: For true 24/7 (even when phone is off), host the bot on a free cloud like PythonAnywhere or Render. See the README for cloud hosting instructions.
Useful Commands

๐Ÿ› ๏ธ Quick Reference

Termux โ€” Commands
# Start the bot:
~ $ python ig_bot.py
# Change account / re-enter password:
~ $ python ig_bot.py --reset
# Stop the bot:
~ $ Ctrl + C
# Re-download latest version:
~ $ curl -o ig_bot.py https://raw.githubusercontent.com/mohittt-vermaa/Jarvis-IG/main/jarvis_ig/ig_bot.py
Step 0

๐Ÿ’ป Prerequisites

Make sure you have Python 3.9+ installed on your PC.

  • Download Python from python.org (Windows) or use your package manager (Mac/Linux)
  • Make sure to check "Add Python to PATH" during installation (Windows)
  • Open Command Prompt (Windows) or Terminal (Mac/Linux)
Step 1

๐Ÿ“ฆ Install Dependencies

Command Prompt / Terminal
C:\Users\Mohit> pip install Pillow pydantic instagrapi
Collecting Pillow...
Collecting pydantic...
Collecting instagrapi...
Successfully installed Pillow pydantic instagrapi
๐Ÿ’ก Mac/Linux users: Use pip3 instead of pip if needed. If you get permission errors, try pip install --user Pillow pydantic instagrapi
Step 2

โฌ‡๏ธ Download the Bot

Command Prompt / Terminal
C:\Users\Mohit> curl -o ig_bot.py https://raw.githubusercontent.com/mohittt-vermaa/Jarvis-IG/main/jarvis_ig/ig_bot.py
Downloaded ig_bot.py
๐Ÿ’ก No curl on Windows? Right-click the download link, "Save As" โ†’ save as ig_bot.py in any folder.
Step 3

โ–ถ๏ธ Run the Bot

Command Prompt โ€” First Run
C:\Users\Mohit> python ig_bot.py
==============================================================
MOHIT's IG AUTO-REPLY BOT (Termux / Phone / PC)
==============================================================
========================================================
FIRST TIME SETUP
Please enter your Instagram login details.
========================================================
Instagram username (without @): mohittt_vermaa0
Instagram password: **************
Custom message (or Enter for default): [Enter]
>>> Saved!
[2fa] Enter the 6-digit code from SMS/Auth app: 592847
[ok] Logged in as @mohittt_vermaa0!
==============================================================
Mohit's IG Auto-Reply is LIVE (Ctrl+C to stop)
==============================================================
[dm] New DM from @fan_123: Amazing work bro!
-> Auto-reply sent.
โœ… Done! Your bot is running on PC! It will auto-reply to every new Instagram DM.
Useful Commands

๐Ÿ› ๏ธ Quick Reference (PC)

Command Prompt โ€” Commands
# Start the bot:
C:\Users\Mohit> python ig_bot.py
# Change account / re-enter password:
C:\Users\Mohit> python ig_bot.py --reset
# Stop the bot:
C:\Users\Mohit> Ctrl + C
๐Ÿ“ฆ View on GitHub โฌ‡๏ธ Download Bot File