CLI + Skills API @ai-generator/cli

PARA AGENTES PERSONALES

Conecta Grok Bot, Muse y otros agentes personales de IA.

Usa una CLI segura de Node.js y un Skill reutilizable para crear, seguir y descargar tareas de imágenes o vídeos desde el espacio de trabajo de un agente.

CLI de Node.jsSkill reutilizableSalida JSON

INICIO RÁPIDO

Deja que tu agente haga la configuración

1 paso

Copia el breve prompt y envíaselo a tu agente. Leerá la guía, instalará la CLI y mantendrá la Key fuera del chat.

Copia el prompt y envíaselo a tu agente. Los pasos detallados están en la guía Markdown enlazada.

Lee https://aiaigenerator.ai/ai-generator-cli-setup.md y sigue la guía para instalar y configurar AI Generator CLI. Guarda la Key de acceso solo en un archivo local; nunca me pidas pegarla en este chat.

QUÉ PUEDES HACER

Dale a tu agente un flujo multimedia completo

Una CLI para crear, seguir y descargar tareas de imágenes y vídeos.

01

Imágenes y vídeos

Crea, transforma y descarga tareas visuales desde un único flujo de agente.

02

Referencias locales

Pasa imágenes locales a la CLI cuando el prompt necesite contexto visual.

03

Salida para agentes

Usa IDs de tarea JSON, consulta de estado y URLs de resultados en automatizaciones.

04

Cualquier agente con herramientas

Conecta cualquier agente que ejecute comandos, acceda a archivos locales y envíe solicitudes HTTPS.

CÓMO FUNCIONA

Del prompt del agente al contenido terminado

  1. 01

    Carga el Skill content-creation.

  2. 02

    Ejecuta la CLI con salida JSON.

  3. 03

    Consulta la tarea y descarga el resultado.

ACCESO CLI

Inicia sesión para crear una Key de CLI

Tu Key está vinculada a tu cuenta y a su saldo de créditos.

WHAT IS AI GENERATOR CLI

What is AI Generator CLI for Grok Bot and Muse?

AI Generator CLI is a Node.js command-line tool that gives Grok Bot, Muse and other tool-enabled personal Agents a direct workflow for creating, tracking and downloading AI images and videos. It is an independent workflow, not an official Grok Bot or Muse integration.

  • Connect an Agent to image and video generation without building a custom dashboard.
  • Keep the CLI Key and local reference assets under your control.
  • Return JSON task IDs, statuses and result URLs to an Agent workflow.

HOW TO USE AI GENERATOR CLI

Connect Grok Bot, Muse or another Agent in a few steps.

Install the scoped package, keep your Key in a local text file, then let your Agent run predictable commands. The same flow works for a one-off prompt or a repeatable Skill.

  1. 01

    Install @ai-generator/cli with Node.js 18 or newer.

  2. 02

    Save the CLI Key in a local text file and run auth set --key-file without putting the Key in chat.

  3. 03

    Ask Grok Bot, Muse or another Agent to create, monitor and download an image or video task.

AI GENERATOR CLI KEY FEATURES

A focused command surface for Agent workflows.

Agent-ready JSON

Use task IDs, status fields and result URLs in Skills, scripts and automations.

Image and video tasks

Create images, transform references and submit short video jobs from one CLI.

Local reference files

Pass local images to an Agent workflow without uploading them into the conversation first.

Async task control

Wait for an interactive result or poll and download tasks in the background.

WHY CHOOSE AI GENERATOR CLI

A practical bridge between your Agent and media generation.

Grok Bot and Muse are useful when an Agent can reason about a creative request. AI Generator CLI supplies the predictable execution layer: commands, local files, authentication and machine-readable results.

  • Independent and transparent: this is not presented as an official Grok Bot or Muse connector.
  • Easy to reuse: the same commands can be called from a personal Agent, a Skill or a CI job.
  • Built for control: you can inspect task status, keep the task ID and download results when ready.

AI GENERATOR CLI FAQ

Answers about Grok Bot, Muse, Skills and CLI setup.

01What is AI Generator CLI?

It is a Node.js CLI for creating, tracking and downloading AI image and video tasks from a terminal or a tool-enabled Agent.

02Can I use AI Generator CLI with Grok Bot?

Yes. Grok Bot can use it when the Agent environment is allowed to run Node commands, access local files and send HTTPS requests.

03Can I use AI Generator CLI with Muse?

Yes. Muse can use the same independent CLI workflow when it can execute commands and work with local files.

04Is this an official Grok Bot or Muse integration?

No. It is an independent AI Generator workflow that can be used by Grok Bot, Muse and other compatible Agents.

05What does my Agent need before using the CLI?

It needs Node.js 18 or newer, the @ai-generator/cli package, permission to run commands and a configured server URL.

06How do I install the CLI?

Run npm install --global @ai-generator/cli in a Node.js 18 or newer environment.

07How can I keep my CLI Key out of the Agent chat?

Save the Key in a local single-line text file and run ai-generator auth set --key-file <local-key-file>. Do not paste the Key into the conversation.

08Which Node.js versions are supported?

The documented setup requires Node.js 18 or newer.

09Can the CLI create both images and videos?

Yes. Use generate-image for image workflows and generate-video for direct video or image-to-video tasks.

10Can I pass a local reference image?

Yes. Use the --image option and give the CLI the local path to a JPEG, PNG or WebP reference.

11Why should an Agent use JSON output?

JSON gives the Agent stable task IDs, status values and result URLs that are easier to parse than terminal prose.

12How do I handle long-running tasks?

Use --wait for an interactive result, or keep the task ID and call task-status before downloading the result.

13Can I use the CLI in CI or automation?

Yes. Use a secret manager to inject AI_GENERATOR_API_KEY and set AI_GENERATOR_BASE_URL instead of putting a Key in source code.

14Where does the CLI store the local configuration?

After authentication, the default config is stored at ~/.ai-generator/config.json with restricted file permissions where supported.

15Where do I create or revoke a CLI Key?

Sign in on this CLI page to create a Key, copy it once into your local file, and manage or revoke active Keys from the same page.