instagram-skill

instagram-skill is a skill for Claude Code, Codex from supreme-gg-gg/instagram-cli. It costs 102 tokens per session (1,365 once invoked), scanned A, original, MIT.

A command-line skill for reading and sending Instagram direct messages. It requires an existing Instagram login and can return results as JSON, a machine-readable format.

In plain words
What is it for?
Use it to inspect an inbox, find conversations, send replies, unsend messages, or automate other Instagram direct-message tasks.
Why use it?
It lets an agent handle Instagram inbox tasks from the terminal instead of requiring manual message searches and replies. It also supports direct thread IDs for more reliable follow-up actions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect an inbox, find conversations, send replies, unsend messages, or automate other Instagram direct-message tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/supreme-gg-gg/instagram-cli/instagram-skill
About the project

Instagram CLI is an unofficial command-line and terminal interface for using Instagram without a graphical app. It is for people who want keyboard-controlled access to messages, posts, and stories from a terminal while reducing distractions.

supreme-gg-gg/instagram-cli · 2,135 stars · on GitHub · npmjs.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add supreme-gg-gg/instagram-cli --skill instagram-skill
Clone the repo
git clone --depth 1 https://github.com/supreme-gg-gg/instagram-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for instagram-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/supreme-gg-gg/instagram-cli/instagram-skill.svg)](https://agentmods.dev/skills/supreme-gg-gg/instagram-cli/instagram-skill)
Your own site
<a href="https://agentmods.dev/skills/supreme-gg-gg/instagram-cli/instagram-skill"><img src="https://agentmods.dev/badge/skills/supreme-gg-gg/instagram-cli/instagram-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.01365
Opus 5 $0.00051 $0.00682
Sonnet 5 $0.00020 $0.00273
Haiku 4.5 $0.00010 $0.00136

Measured 9d ago against content hash bd957eb67eb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

instagram-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/instagram-skill/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Instagram CLI — Agent Usage Guide

Instagram CLI (instagram-cli) is a terminal client for Instagram. For agents, it exposes one-turn commands that print to stdout and exit — perfect for scripting and tool-use.

All one-turn commands require the user to already be logged in (instagram-cli auth login). If a command returns an auth error, prompt the user to log in first. Do not attempt to login using the CLI by yourself.


Thread Resolution

Every command that targets a thread accepts a <thread> argument resolved in this order:

  1. Thread ID (20+ digit number like 340282366920938463...) — direct, zero extra API calls
  2. Username — exact Instagram username (e.g. johndoe)
  3. Thread title — fuzzy search across inbox (e.g. "Book Club")

Best practice for multi-step workflows: call inbox --output json first to get thread IDs, then pass those IDs directly to subsequent commands. This avoids redundant search API calls and is more reliable than username/title matching.


JSON Output

All commands accept -o json / --output json. Responses follow this envelope:

{ "ok": true, "data": { ... } }
{ "ok": false, "error": "message" }

Always use --output json when you need to parse results programmatically.


Commands

List inbox

instagram-cli inbox [--limit <n>] [--output json]

Returns recent threads. Each thread includes: id, title, users, lastMessage, lastActivity, unread.

# Get 10 most recent threads as JSON
instagram-cli inbox --limit 10 --output json

Search threads

instagram-cli inbox --search <query> [--limit <n>] [--output json]

Searches by both username and thread title, merging results by relevance score.

instagram-cli inbox --search "alice" --output json

Send a message

instagram-cli send <thread> --text <message> [--output json]
instagram-cli send <thread> --file <path> [--type photo|video] [--output json]

Read the full file on GitHub · 182 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 182 lines · 102 tokens per session scan A bd957eb67eb7

Subscribe to this mod's changes

instagram-skill is a skill published in the GitHub repository supreme-gg-gg/instagram-cli (2,135 stars, last pushed 4d ago), licensed MIT. It adds 102 tokens to every session and 1,365 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories