A secure command-line tool for generating and editing high-quality images using the xAI Grok API models.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install grok-image-cli
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install grok-image-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Grok Image CLI is a professional-grade command-line interface designed to streamline the process of generating and editing images through the xAI Grok API. Powered by the official Vercel AI SDK, it provides a robust bridge between your terminal and advanced models like grok-2-image-1212 and grok-imagine-image-pro. As a key utility within the ecosystem of Openclaw Skills, it emphasizes security and developer productivity, offering a seamless way to incorporate AI-driven visual creation into any local or automated workflow.
The tool is built with a focus on cross-platform compatibility and secure data handling. It avoids plaintext storage of sensitive information by leveraging native OS credential stores, such as the macOS Keychain and Windows Credential Manager. Whether you are generating assets for a new project or performing complex edits on existing images, this tool provides the flexibility and power needed for modern AI-assisted development.
Ensure you have Node.js >= 20.19.0 installed. Install the package globally and authenticate with your xAI API key:
npm install -g grok-image-cli
grok-img auth login
You can verify your authentication status at any time using:
grok-img auth status
Grok Image CLI maintains a clean footprint by avoiding local configuration files. Data is managed as follows:
| Data Type | Storage Method | Location |
|---|---|---|
| API Credentials | Native OS Credential Store | macOS Keychain / Windows Credential Manager / Linux Secret Service |
| Output Images | Local File System | Default: ./grok-images (configurable via -o flag) |
| Configuration | CLI Flags | Passed at runtime per execution |
Loading
A command-line interface for monitoring Anthropic Admin API usage and spend directly from your terminal.

A secure macOS command-line tool for auditing Anthropic Admin API usage and token costs with Keychain integration.

A comprehensive command-line interface for managing multiple CalDAV calendar accounts with secure OS keychain integration and JSON output support.

A streamlined toolset for controlling Sparkle VPN and Mihomo core directly from the command line without GUI interaction.

A secure, read-only command-line interface for Telegram that utilizes the MTProto protocol to fetch messages, media, and chat data without Bot API limitations.

An AI-powered project management assistant that automates planning, risk assessment, and performance tracking using professional PMP methodologies.








































