Instagram Skill via cyberdrk/gram CLI
Instagram CLI for viewing feeds, posts, profiles, and engagement via cookies.
New
Join 0+ developers using this skill
skill
Browser Automation
intermediate
Instagram CLI for viewing feeds, posts, profiles, and engagement via cookies.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Instagram CLI using REST/GraphQL API + cookie auth.
# npm/pnpm/bun npm install -g @cyberdrk/gramOne-shot (no install)
bunx @cyberdrk/gram whoami
gram uses cookie-based auth from your Instagram web session.
Use
--session-id, --csrf-token, and --ds-user-id to pass cookies directly, or --cookie-source for browser cookies.
Run
gram check to see which source is active. For Arc/Brave, use --chrome-profile-dir <path>.
gram whoami # Show logged-in account gram check # Show credential sources gram query-ids --refresh # Refresh GraphQL query ID cache
gram post <shortcode-or-url> # View a post gram <shortcode-or-url> # Shorthand for post gram comments <shortcode> -n 20 # View comments on a post gram likers <shortcode> # View users who liked a post
gram feed -n 20 # Home feed gram explore -n 20 # Explore/discover feed
gram user <username> # View user profile gram user @instagram --json # JSON output gram posts <username> -n 20 # User's posts gram following [username] # Users someone follows (defaults to you) gram followers [username] # Someone's followers (defaults to you)
gram search "query" # Search users, hashtags, places gram search "coffee" --type users gram search "nyc" --type places gram search "#photography" --type hashtags
gram like <shortcode> # Like a post gram unlike <shortcode> # Unlike a post gram save <shortcode> # Save/bookmark a post gram unsave <shortcode> # Unsave a post gram comment <shortcode> "nice!" # Comment on a post gram follow <username> # Follow a user gram unfollow <username> # Unfollow a user
--json # JSON output --json-full # JSON with raw API response in _raw field --plain # No emoji, no color (script-friendly) --no-emoji # Disable emoji --no-color # Disable ANSI colors (or set NO_COLOR=1)
--session-id <token> # Instagram sessionid cookie --csrf-token <token> # Instagram csrftoken cookie --ds-user-id <id> # Instagram ds_user_id cookie --cookie-source <source> # Cookie source for browser cookies (repeatable) --chrome-profile <name> # Chrome profile name --chrome-profile-dir <path> # Chrome/Chromium profile dir or cookie DB path --firefox-profile <name> # Firefox profile --timeout <ms> # Request timeout --cookie-timeout <ms> # Cookie extraction timeout
~/.config/gram/config.json5 (global) or ./.gramrc.json5 (project):
{ cookieSource: ["safari", "chrome"], chromeProfile: "Profile 1", timeoutMs: 60000 }
Environment variables:
GRAM_TIMEOUT_MS, GRAM_COOKIE_TIMEOUT_MS
gram query-ids --refresh
--cookie-source--chrome-profile-dir--session-id, --csrf-token, --ds-user-idTL;DR: View feeds, profiles, search, and engage with Instagram via CLI. 📸
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.