setup

setup is a command for Claude Code from ibrahimhajjaj/ig-dl. It costs 19 tokens per session (610 once invoked), scanned A, original, MIT.

A first-time setup procedure for ig-dl, a tool for downloading Instagram content. It checks the required command-line programs, browser connection, and saved login session.

In plain words
What is it for?
It is for checking ig-dl, gallery-dl, and yt-dlp installations, verifying browser remote debugging, signing in through the browser, and confirming the current session.
Why use it?
It helps identify missing setup pieces before downloading content. It also explains how to let ig-dl use a signed-in browser session when authentication is not available.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ig-dl plugin — 1 skill, 2 commands, 1 MCP server shipped together

Good fit It is for checking ig-dl, gallery-dl, and yt-dlp installations, verifying browser remote debugging, signing in through the browser, and confirming the current session.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ibrahimhajjaj/ig-dl/setup
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.

Clone the repo
git clone --depth 1 https://github.com/ibrahimhajjaj/ig-dl

Made for: Claude Code.

Or install ig-dl, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 MCP server.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/ibrahimhajjaj/ig-dl/setup/github.svg)](https://agentmods.dev/commands/ibrahimhajjaj/ig-dl/setup)
Your own site
<a href="https://agentmods.dev/commands/ibrahimhajjaj/ig-dl/setup"><img src="https://agentmods.dev/badge/commands/ibrahimhajjaj/ig-dl/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/ibrahimhajjaj/ig-dl/setup"><img src="https://agentmods.dev/badge/commands/ibrahimhajjaj/ig-dl/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 610 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.
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.00019 $0.00610
Opus 5.5 $0.00008 $0.00244
Sonnet 5.5 $0.00004 $0.00122
Haiku 4.5 $0.00002 $0.00061

Measured 3mo ago against content hash 756d25fa733b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup 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 3mo 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.

plugin/commands/setup.md · 38 lines

What it actually says

Walk the user through getting ig-dl ready to download Instagram content. Each step runs a real command via the Bash tool and reports its exit status before moving on.

Step 1 — Check the ig-dl binary is on PATH. Run: which ig-dl && ig-dl --help | head -5 If not found, tell the user to install it: go install github.com/ibrahimhajjaj/ig-dl/cmd/ig-dl@latest. Stop.

Step 2 — Check gallery-dl and yt-dlp are on PATH. Run: which gallery-dl yt-dlp If either missing, suggest: brew install gallery-dl yt-dlp. Both are needed — gallery-dl for posts/stories/highlights/profiles, yt-dlp for reels.

Step 3 — Show current session status. Run: ig-dl status If "authed" already, skip to step 6. If "not authed", continue.

Step 4 — Ask the user to enable CDP in their browser. Tell them exactly: "Open chrome://inspect/#remote-debugging (or edge://inspect/#remote-debugging) in your normal browser and toggle 'Allow remote debugging for this browser instance' ON. Make sure instagram.com is open in a tab and you're signed in there."

Wait for the user to confirm they did it.

Step 5 — Verify ig-dl sees the live browser. Run: ig-dl browsers If any entry shows [live], proceed. If every entry is [stale], tell the user the toggle didn't stick — they should try flipping it off and on again, or fall back to the companion extension path (step 7).

Step 6 — Capture the session. Run: ig-dl login Tell the user the browser will pop a permission dialog asking them to allow the remote debugging session — they must click Allow. On success, report "session captured from ".

Step 7 — If CDP didn't work, fall back to the companion extension. Point the user at the repo's extension-companion/ directory, tell them to load it via chrome://extensions → Developer mode → Load unpacked, then click "Export session for CLI" in the extension's options page. Finally: ig-dl login --import ~/Downloads/ig-dl-session.json

Final step — Confirm. Run ig-dl status one more time and verify it reports authed (source=<browser or imported>, age=...s). If so, the setup is complete and the user can now run ig-dl <instagram-url> or use any of the ig_* MCP tools.

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. 3mo ago First seen · 38 lines · 19 tokens per session scan A 756d25fa733b

Subscribe to this mod's changes

setup is a command published in the GitHub repository ibrahimhajjaj/ig-dl (1 stars, last pushed 7mo ago), licensed MIT. It adds 19 tokens to every session and 610 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

setup compared with commands from other repositories

setup next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setupibrahimhajjaj/ig-dlCommand17mo agoMITA19Claude Code
verifyManavarya09/design-extractCommand5.2k6d agoMITA31Claude Code
battleManavarya09/design-extractCommand5.2k6d agoMITA20Claude Code
review-epo-claimsRobThePCGuy/Claude-Patent-CreatorCommand2195d agoMITA26Claude Code
zhtaekchef/claude-code-zh-cnCommand8696d agoMITA19Claude Code
setup-video-visionjordanrendric/claude-video-visionCommand1.5k1mo agoMITA20Claude Code
cli-anything-web:listItamarZand88/CLI-Anything-WEBCommand24922d agoMITA20Claude Code