agent-instagram
Agent Instagram
An Instagram DM CLI for AI agents. Supports browser cookie extraction (zero-config, extracts from Chromium browsers) and username/password authentication (with 2FA). Uses Instagram's private mobile API to read and send direct messages.
Use one of these entrypoints:
- Global install:
agent-instagram ... - One-off execution:
bunx --package agent-messenger agent-instagram ...
Key Concepts
- Thread ID = Instagram's identifier for a DM conversation. Numeric string returned by
chat list. - Browser cookie extraction = recommended auth method. Extracts cookies from Chromium browsers (Chrome, Chrome Canary, Edge, Arc, Brave, Vivaldi, Chromium) where you're logged into instagram.com. Zero-config.
- Username/password auth = fallback method. Authenticates using Instagram credentials. Supports two-factor authentication via SMS or authenticator app.
- HTTP-based = each command makes HTTP requests and returns. No persistent connection or background process.
- Multi-account = multiple Instagram accounts can be stored. Use
auth listandauth useto switch between them. - DM-only = this CLI focuses on Instagram Direct Messages. It does not manage posts, stories, or followers.
Quick Start
More from devxoul/agent-messenger
agent-slack
Interact with Slack workspaces - send messages, read channels, manage reactions
74agent-slackbot
Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
70agent-discord
Interact with Discord servers - send messages, read channels, manage reactions
68agent-teams
Interact with Microsoft Teams - send messages, read channels, manage reactions
59agent-discordbot
Interact with Discord servers using bot tokens - send messages, read channels, manage reactions
42agent-telegram
Interact with Telegram through TDLib - authenticate, inspect chats, and send messages
8