A simple, human-friendly command-line tool to send and receive Instagram DMs using Python.
- Login securely (password hidden)
- View your Instagram inbox
- Open and read chat threads
- Send direct messages
- Two-factor authentication support
- Logout
- Python 3.11 (recommended)
- Instagram account
- Clone or download this repository.
- Create a virtual environment:
python3.11 -m venv .venv source .venv/bin/activate - Install dependencies:
pip install instagrapi colorama
- Run the CLI:
python main.py
- When prompted, enter your Instagram username and password (password input is hidden).
- Use the menu to view inbox, open chats, send DMs, logout, or exit.
- If two-factor authentication is enabled, enter the verification code when prompted.
- If you see import errors, make sure you have activated your virtual environment and installed all dependencies.
- This tool may not work with Python 3.14 or newer due to package compatibility. Use Python 3.11 for best results.
- Passwords are never stored or displayed.
- No session data is saved locally; you must log in each time you run the CLI.
MIT
Made with ❤️ by Geetansh Goyal