gram for Openclaw

A powerful Instagram CLI for viewing feeds, profiles, and engaging with content directly from your terminal.

arein
v1.0.0
Jan 25, 2026
5
4.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gram

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gram using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is gram?

gram is a feature-rich command-line interface designed for seamless interaction with Instagram using REST and GraphQL APIs. By leveraging browser-based cookie authentication, it allows developers and power users to access their feed, search for content, and manage engagement without a graphical interface. This tool is a standout among Openclaw Skills for those who prefer the efficiency of the terminal for social media management and data extraction.

gram Use Cases

  • Monitoring Instagram feeds and user profiles directly from the command line.
  • Automating engagement actions like liking, following, or commenting via shell scripts.
  • Extracting Instagram post and user data in JSON format for analysis or integration into other tools.
  • Managing multiple Instagram accounts by specifying different browser profiles or cookie sources.

How gram Works

  1. The user authenticates by either providing session cookies manually or allowing the tool to extract them from a supported browser like Chrome, Safari, or Firefox.
  2. Once authenticated, the user issues commands to the CLI to request specific data from Instagram's internal GraphQL and REST APIs.
  3. The tool processes the responses and formats them into readable terminal output or structured JSON objects.
  4. Users can perform authenticated engagement actions, such as liking a post or following a user, which are sent directly to Instagram's servers.

gram Setup

Install the package globally using npm, pnpm, or bun:

npm install -g @cyberdrk/gram

Alternatively, run it without installation using bunx:

bunx @cyberdrk/gram whoami

To check your authentication status and active cookie sources, run:

gram check

gram Data Schema & Taxonomy

The skill manages configuration and output using the following structure:

  • Configuration Files: Global settings are stored in ~/.config/gram/config.json5, while project-specific settings use .gramrc.json5.
  • Output Modes:
    • --json: Provides a clean, structured JSON object of the requested data.
    • --json-full: Includes the raw API response in an _raw field for debugging.
    • --plain: Removes emojis and ANSI colors, making it ideal for piping into other command-line utilities.

gram Advanced Features

  • Support for multiple cookie sources including Arc, Brave, Chrome, Firefox, and Safari.
  • Manual session overrides using --session-id, --csrf-token, and --ds-user-id for headless environments.
  • Automatic GraphQL query ID caching and refreshing to prevent 404 errors during API changes.
  • Deep search capabilities filtering by users, hashtags, or geographical places.
  • Environment variable support for timeout configurations and cookie extraction limits.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*