{
  "schemaVersion": "1.0",
  "item": {
    "slug": "grok-image-cli",
    "name": "Grok Image Cli",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/cyberash-dev/grok-image-cli",
    "canonicalUrl": "https://clawhub.ai/cyberash-dev/grok-image-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/grok-image-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=grok-image-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/grok-image-cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/grok-image-cli",
    "agentPageUrl": "https://openagent3.xyz/skills/grok-image-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/grok-image-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/grok-image-cli/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "grok-image-cli",
        "body": "A CLI for generating and editing images using the xAI Grok API. Supports multiple models: grok-imagine-image (default), grok-imagine-image-pro, grok-2-image-1212. Powered by the official @ai-sdk/xai SDK. Credentials are stored in the OS native credential store (macOS Keychain, Windows Credential Manager, Linux Secret Service) via cross-keychain."
      },
      {
        "title": "Installation",
        "body": "Requires Node.js >= 20.19.0. Works on macOS, Windows, and Linux. The package is fully open source under the MIT license: https://github.com/cyberash-dev/grok-image-cli\n\nnpm install -g grok-image-cli\n\nThe npm package is published with provenance attestation, linking each release to its source commit via GitHub Actions. You can verify the published contents before installing:\n\nnpm pack grok-image-cli --dry-run\n\nInstall from source (if you prefer to audit the code before running):\n\ngit clone https://github.com/cyberash-dev/grok-image-cli.git\ncd grok-image-cli\nnpm install && npm run build && npm link\n\nAfter installation the grok-img command is available globally."
      },
      {
        "title": "Quick Start",
        "body": "grok-img auth login                                                      # Interactive prompt: enter xAI API key\ngrok-img generate \"A futuristic city skyline at night\"                   # Generate with default model\ngrok-img generate \"A futuristic city skyline at night\" -m grok-imagine-image-pro  # Use pro model\ngrok-img edit \"Make it a watercolor painting\" -i ./photo.jpg             # Edit an existing image"
      },
      {
        "title": "API Key Management",
        "body": "Store API key (interactive prompt):\n\ngrok-img auth login\n\nShow stored key (masked) and source:\n\ngrok-img auth status\n\nRemove key from credential store:\n\ngrok-img auth logout\n\nThe CLI also supports the XAI_API_KEY environment variable as a fallback when no credential store entry is found."
      },
      {
        "title": "Image Generation",
        "body": "grok-img generate \"A collage of London landmarks in street-art style\"\ngrok-img generate \"Mountain landscape at sunrise\" -n 4 -a 16:9\ngrok-img generate \"A serene Japanese garden\" -o ./my-images\ngrok-img generate \"Photorealistic portrait\" -m grok-imagine-image-pro\ngrok-img generate \"Abstract art\" -m grok-2-image-1212"
      },
      {
        "title": "Image Editing",
        "body": "Edit a local file or a remote URL:\n\ngrok-img edit \"Change the landmarks to New York City\" -i ./landmarks.jpg\ngrok-img edit \"Render as a pencil sketch\" -i https://example.com/portrait.jpg\ngrok-img edit \"Add a vintage film grain effect\" -i ./photo.jpg -a 3:2 -o ./edited"
      },
      {
        "title": "generate",
        "body": "FlagDescriptionDefault-m, --model <model>Model (grok-imagine-image, grok-imagine-image-pro, grok-2-image-1212)grok-imagine-image-a, --aspect-ratio <ratio>Aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20, auto)auto-n, --count <number>Number of images to generate (1-10)1-o, --output <dir>Output directory./grok-images"
      },
      {
        "title": "edit",
        "body": "FlagDescriptionDefault-i, --image <path>Source image (local file path or URL)required-m, --model <model>Model (grok-imagine-image, grok-imagine-image-pro, grok-2-image-1212)grok-imagine-image-a, --aspect-ratio <ratio>Aspect ratioauto-o, --output <dir>Output directory./grok-images"
      },
      {
        "title": "Security and Data Storage",
        "body": "The following properties are by design and can be verified in the source code:\n\nxAI API key: stored in the OS native credential store via cross-keychain (macOS Keychain / Windows Credential Manager / Linux Secret Service; service: grok-image-cli, account: api-key). By design, never written to disk in plaintext. If no credential store entry is found, the CLI falls back to the XAI_API_KEY environment variable. See src/infrastructure/adapters/credential-store.adapter.ts for the implementation.\nNo config files: all settings are passed via CLI flags. Nothing is stored on disk besides the credential store entry.\nNetwork: the API key is only sent to api.x.ai over HTTPS via the official @ai-sdk/xai SDK. When editing images with a remote URL (-i https://...), the SDK makes an additional outbound HTTPS request to fetch the source image. No other outbound connections are made by the CLI itself (npm/git fetches during installation are standard package manager behavior). See src/infrastructure/adapters/grok-api.adapter.ts.\nGenerated images: saved to the local output directory (default: ./grok-images). No images are cached or uploaded elsewhere."
      },
      {
        "title": "API Reference",
        "body": "This CLI wraps the xAI Image Generation API via the Vercel AI SDK:\n\nGeneration: POST /v1/images/generations\nEditing: POST /v1/images/edits\n\nDocumentation: https://docs.x.ai/docs/guides/image-generation"
      }
    ],
    "body": "grok-image-cli\n\nA CLI for generating and editing images using the xAI Grok API. Supports multiple models: grok-imagine-image (default), grok-imagine-image-pro, grok-2-image-1212. Powered by the official @ai-sdk/xai SDK. Credentials are stored in the OS native credential store (macOS Keychain, Windows Credential Manager, Linux Secret Service) via cross-keychain.\n\nInstallation\n\nRequires Node.js >= 20.19.0. Works on macOS, Windows, and Linux. The package is fully open source under the MIT license: https://github.com/cyberash-dev/grok-image-cli\n\nnpm install -g grok-image-cli\n\n\nThe npm package is published with provenance attestation, linking each release to its source commit via GitHub Actions. You can verify the published contents before installing:\n\nnpm pack grok-image-cli --dry-run\n\n\nInstall from source (if you prefer to audit the code before running):\n\ngit clone https://github.com/cyberash-dev/grok-image-cli.git\ncd grok-image-cli\nnpm install && npm run build && npm link\n\n\nAfter installation the grok-img command is available globally.\n\nQuick Start\ngrok-img auth login                                                      # Interactive prompt: enter xAI API key\ngrok-img generate \"A futuristic city skyline at night\"                   # Generate with default model\ngrok-img generate \"A futuristic city skyline at night\" -m grok-imagine-image-pro  # Use pro model\ngrok-img edit \"Make it a watercolor painting\" -i ./photo.jpg             # Edit an existing image\n\nAPI Key Management\n\nStore API key (interactive prompt):\n\ngrok-img auth login\n\n\nShow stored key (masked) and source:\n\ngrok-img auth status\n\n\nRemove key from credential store:\n\ngrok-img auth logout\n\n\nThe CLI also supports the XAI_API_KEY environment variable as a fallback when no credential store entry is found.\n\nImage Generation\ngrok-img generate \"A collage of London landmarks in street-art style\"\ngrok-img generate \"Mountain landscape at sunrise\" -n 4 -a 16:9\ngrok-img generate \"A serene Japanese garden\" -o ./my-images\ngrok-img generate \"Photorealistic portrait\" -m grok-imagine-image-pro\ngrok-img generate \"Abstract art\" -m grok-2-image-1212\n\nImage Editing\n\nEdit a local file or a remote URL:\n\ngrok-img edit \"Change the landmarks to New York City\" -i ./landmarks.jpg\ngrok-img edit \"Render as a pencil sketch\" -i https://example.com/portrait.jpg\ngrok-img edit \"Add a vintage film grain effect\" -i ./photo.jpg -a 3:2 -o ./edited\n\nFlag Reference\ngenerate\nFlag\tDescription\tDefault\n-m, --model <model>\tModel (grok-imagine-image, grok-imagine-image-pro, grok-2-image-1212)\tgrok-imagine-image\n-a, --aspect-ratio <ratio>\tAspect ratio (1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20, auto)\tauto\n-n, --count <number>\tNumber of images to generate (1-10)\t1\n-o, --output <dir>\tOutput directory\t./grok-images\nedit\nFlag\tDescription\tDefault\n-i, --image <path>\tSource image (local file path or URL)\trequired\n-m, --model <model>\tModel (grok-imagine-image, grok-imagine-image-pro, grok-2-image-1212)\tgrok-imagine-image\n-a, --aspect-ratio <ratio>\tAspect ratio\tauto\n-o, --output <dir>\tOutput directory\t./grok-images\nSecurity and Data Storage\n\nThe following properties are by design and can be verified in the source code:\n\nxAI API key: stored in the OS native credential store via cross-keychain (macOS Keychain / Windows Credential Manager / Linux Secret Service; service: grok-image-cli, account: api-key). By design, never written to disk in plaintext. If no credential store entry is found, the CLI falls back to the XAI_API_KEY environment variable. See src/infrastructure/adapters/credential-store.adapter.ts for the implementation.\nNo config files: all settings are passed via CLI flags. Nothing is stored on disk besides the credential store entry.\nNetwork: the API key is only sent to api.x.ai over HTTPS via the official @ai-sdk/xai SDK. When editing images with a remote URL (-i https://...), the SDK makes an additional outbound HTTPS request to fetch the source image. No other outbound connections are made by the CLI itself (npm/git fetches during installation are standard package manager behavior). See src/infrastructure/adapters/grok-api.adapter.ts.\nGenerated images: saved to the local output directory (default: ./grok-images). No images are cached or uploaded elsewhere.\nAPI Reference\n\nThis CLI wraps the xAI Image Generation API via the Vercel AI SDK:\n\nGeneration: POST /v1/images/generations\nEditing: POST /v1/images/edits\n\nDocumentation: https://docs.x.ai/docs/guides/image-generation"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/cyberash-dev/grok-image-cli",
    "publisherUrl": "https://clawhub.ai/cyberash-dev/grok-image-cli",
    "owner": "cyberash-dev",
    "version": "0.2.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/grok-image-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/grok-image-cli",
    "agentUrl": "https://openagent3.xyz/skills/grok-image-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/grok-image-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/grok-image-cli/agent.md"
  }
}