AI Skill Hub 强烈推荐:生成媒体CLI 是一款优质的Agent工作流。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的Agent工作流解决方案,这是一个值得深入了解的选择。
生成媒体CLI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
生成媒体CLI 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g genmedia-cli # 方式二:npx 直接运行(无需安装) npx genmedia-cli --help # 方式三:项目依赖安装 npm install genmedia-cli # 方式四:从源码运行 git clone https://github.com/fal-ai-community/genmedia-cli cd genmedia-cli npm install npm start
# 命令行使用
genmedia-cli --help
# 基本用法
genmedia-cli [options] <input>
# Node.js 代码中使用
const genmedia_cli = require('genmedia-cli');
const result = await genmedia_cli.run(options);
console.log(result);
# genmedia-cli 配置说明 # 查看配置选项 genmedia-cli --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export GENMEDIA_CLI_CONFIG="/path/to/config.yml"
Agent-first CLI for fal.ai — search, run, and manage 1200+ model endpoints.
Works great for humans in a terminal and equally well for AI agents via shell commands. In a TTY, commands display a lightweight pretty view; when piped or called with --json, they emit structured JSON. No MCP required.
For Linux and macOS:
curl https://genmedia.sh/install -fsS | bash
For Windows:
irm https://genmedia.sh/install.ps1 | iex
genmedia setup
Interactive wizard that configures:
FAL_KEY in your environment).env — automatically load FAL_KEY and related vars from a project .env fileauto (pretty in TTY, JSON when piped), json (always structured), or standard (always human-readable)GENMEDIA_NO_UPDATE=1 to disable)Get your API key at fal.ai/dashboard/keys.
To skip the wizard, set the key in your environment:
export FAL_KEY=your_fal_api_key
genmedia setup --non-interactive --api-key "$FAL_KEY"
genmedia setup --non-interactive --output-format json --no-auto-load-env --auto-update
Every flag is optional — fields you don't pass keep their current values, so repeated invocations are idempotent.
| Flag | Description |
|---|---|
--non-interactive, -y | Skip all prompts. Required when there is no TTY. |
--api-key <key> | API key to save. Pass "" to clear the saved key. |
--no-save-key | With --api-key, don't persist the key to config.json (use FAL_KEY at runtime instead). |
--output-format <auto\|json\|standard> | Default output mode. |
--auto-load-env / --no-auto-load-env | Toggle auto-loading FAL_KEY from a project .env. |
--auto-update / --no-auto-update | Toggle background update checks. |
genmedia init
genmedia init --force # overwrite existing files
Installs the default genmedia skill bundle:
| Skill | Purpose |
|---|---|
genmedia | Guided workflow for model discovery, schema inspection, and execution |
The bundle is installed into .agents/skills/ if the project has a .agents/ directory, otherwise into .claude/skills/. If neither directory exists, the command exits with a message asking you to create one and try again.
After running init, compatible agent sessions in that project can use the installed skills without needing to call --help. Commit the installed skills directory so teammates and other agents get the same context.
genmedia skills list # list everything in the registry
genmedia skills list image # full-text search name + description
genmedia skills install genmedia
genmedia skills update
genmedia skills remove genmedia
Installs, updates, lists, and removes agent skills from the genmedia registry. skills list <query> runs full-text search via the hosted index API (GENMEDIA_SKILLS_API_URL, default https://genmedia.sh/skills); the no-query form fetches index.json directly from the registry.
Every successful genmedia run (and genmedia status --download) records its outputs into a per-session, self-contained static HTML page under ~/.genmedia/gallery/sessions/<session_id>/index.html. The page aggregates every image / video / audio / 3D asset produced inside one agent session — across many runs and many endpoints — into a filterable grid with a lightbox view. No server, no dependencies, opens straight from file://.
genmedia gallery # pretty TTY: prints `→ Open: <url>`. JSON / non-TTY: full info payload.
genmedia gallery --json # structured info payload, agent-safe
genmedia gallery info # full info payload, even from a TTY (devs)
genmedia gallery open # open the all-sessions index in the default browser
genmedia gallery open current # open the current session
genmedia gallery open latest # open the most-recently recorded session (works across shells)
genmedia gallery open <session_id> # open a specific session
genmedia gallery open latest --print # resolve path/url without launching the browser
genmedia gallery list # list every recorded session (newest first, JSON-friendly)
genmedia gallery list --limit 10 # cap the list (default: 50)
genmedia gallery rename --label "demo run" # rename the current session (cosmetic — id stays the same)
genmedia gallery rename latest --label "x" # rename the most-recent session
genmedia gallery rename <session_id> --clear # remove a session's label
genmedia gallery clear --yes # delete the current session (--yes is required)
genmedia gallery clear latest --yes # delete the most-recently recorded session
genmedia gallery clear <session_id> --yes # delete a specific session
genmedia gallery clear all --yes # delete every recorded session
The page auto-refreshes via a tiny client-side poll on ./data.json while a session is "live" (updated in the last 5 min), so new runs land in the open tab without a manual reload.
gallery clearalways requires--yesand never prompts interactively — same shape for agents and humans.GENMEDIA_NO_GALLERY=1only disables recording;list/open/clearstill work so you can inspect or purge prior galleries.
The run and status --download responses include the gallery info too:
{
"status": "completed",
"endpoint_id": "fal-ai/flux/dev",
"request_id": "…",
"gallery": {
"session_id": "a1b2c3d4e5f6",
"path": "/Users/you/.genmedia/gallery/sessions/a1b2c3d4e5f6/index.html",
"url": "file:///Users/you/.genmedia/gallery/sessions/a1b2c3d4e5f6/index.html"
}
}
Session detection (agent-agnostic). The session id is resolved in this order, so the gallery groups outputs correctly across Claude Code, Codex, Cursor, Amp, Gemini, Aider, and anything else:
GENMEDIA_SESSION_ID — explicit override (e.g. set from a hook script).CODEX_THREAD_ID, CLAUDE_SESSION_ID, AMP_THREAD_ID, CURSOR_TRACE_ID.ps -e. Critical for Claude Code, whose Bash tool spawns a fresh shell per call: process.ppid changes every invocation, but the Claude process itself lives for the whole conversation and becomes the stable anchor.TERM_SESSION_ID / ITERM_SESSION_ID / WT_SESSION / TMUX_PANE.<agent>:<ppid>.| Env var | Description |
|---|---|
GENMEDIA_NO_GALLERY=1 | Disable gallery recording and rendering entirely. |
GENMEDIA_SESSION_ID=<anchor> | Force a specific session id (any string; it's hashed into the on-disk slug). |
GENMEDIA_GALLERY_RETENTION_DAYS=<n> | Prune session directories older than n days (default: 60). |
genmedia setup # (toggle is currently file-only — set "analyticsOptOut": true) ```
Builds from source without a POSTHOG_KEY environment variable (the open-source default) report nothing — the analytics module no-ops at runtime.
高质量的AI工作流工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,生成媒体CLI 是一款质量优秀的Agent工作流,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | genmedia-cli |
| 原始描述 | 开源AI工作流:Agent-first CLI for fal.ai — search, run, and manage 1000+ generative AI models。⭐46 · TypeScript |
| Topics | AICLITypeScript生成模型 |
| GitHub | https://github.com/fal-ai-community/genmedia-cli |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端