setup-credentials

setup-credentials is a command for Claude Code from danielrosehill/Claude-AI-Video-Producer-Plugin. It costs 58 tokens per session (1,246 once invoked), scanned D, original, MIT.

A one-time setup command for storing API credentials and installing the software needed by the AI video runners. API credentials are secret keys that let tools access services such as fal.ai, Replicate, WaveSpeed, and MiniMax.

In plain words
What is it for?
Use it to check existing credentials, request missing keys, save them in the project’s configuration location, load them from the shell, and install runner dependencies.
Why use it?
It avoids repeatedly configuring provider keys and prepares the local JavaScript and Python tools required to run the included model integrations.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-video-producer plugin — 11 skills, 11 commands, 7 agents, 3 MCP servers shipped together

Good fit Use it to check existing credentials, request missing keys, save them in the project’s configuration location, load them from the shell, and install runner dependencies.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add danielrosehill/Claude-AI-Video-Producer-Plugin
Claude Code
/plugin install ai-video-producer

Made for: Claude Code.

Or install ai-video-producer, the plugin that ships this one along with the rest of its 11 skills, 11 commands, 7 agents, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-credentials

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials/github.svg)](https://agentmods.dev/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials)
Your own site
<a href="https://agentmods.dev/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials"><img src="https://agentmods.dev/badge/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-credentials

Your own site · 80×15
<a href="https://agentmods.dev/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials"><img src="https://agentmods.dev/badge/commands/danielrosehill/claude-ai-video-producer-plugin/setup-credentials.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01246
Opus 5 $0.00029 $0.00623
Sonnet 5 $0.00012 $0.00249
Haiku 4.5 $0.00006 $0.00125

Measured 12d ago against content hash c71b44bdc2d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade D, and why

setup-credentials scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Don't `chmod 600` if the file already has tighter permissions.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- The MiniMax MCP runs via `uvx`; if `uvx` isn't on PATH, install with `curl -LsSf https://astral.sh/uv/install.sh | sh`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- The MiniMax MCP runs via `uvx`; if `uvx` isn't on PATH, install with `curl -LsSf https://astral.sh/uv/install.sh | sh`.
commands/setup-credentials.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set up persistent credentials for the bundled MCP servers (fal.ai, Replicate, MiniMax) and SDK runners (fal-js, WaveSpeed Python), then bootstrap the runner toolchains.

Steps

  1. Check if ~/.config/ai-video-producer/.env already exists.

    • If yes, read it (do not echo the values back) and report which keys are already set. Ask the user if they want to update any.
    • If no, create the directory: mkdir -p ~/.config/ai-video-producer.
  2. Prompt the user for each missing value:

    Accept blank to skip a key. Each provider degrades independently (skipping WAVESPEED_API_KEY just means the wavespeed runner won't work; skipping MINIMAX_API_KEY disables the minimax MCP).

  3. Write ~/.config/ai-video-producer/.env with KEY=value lines. Mode 600.

  4. Ensure the env loader is in the user's shell profile. Detect the shell from $SHELL (default ~/.bashrc; for zsh use ~/.zshrc). The loader line:

    # AI Video Producer credentials
    [ -f "$HOME/.config/ai-video-producer/.env" ] && set -a && . "$HOME/.config/ai-video-producer/.env" && set +a
    
    • If the line is already present, do nothing.
    • If not, append it. Tell the user to either start a new shell or source their profile to pick up the values for the current session.
  5. Verify by running (in a subshell that sources the profile):

    bash -lc 'for k in FAL_KEY REPLICATE_API_TOKEN WAVESPEED_API_KEY MINIMAX_API_KEY MINIMAX_API_HOST; do v="${!k}"; echo "$k: ${v:+set}${v:-MISSING}"; done'
    

    Report which are set and which are MISSING. Do not print the actual key values.

  6. Bootstrap runner toolchains. The SDK runners under runners/ need their own deps installed once per machine. Resolve ${CLAUDE_PLUGIN_ROOT}/runners (or fall back to the repo's runners/ directory if running from a checkout) and:

    • fal-js: cd runners && npm install — installs @fal-ai/client for fal_run.mjs. Skip if runners/node_modules/@fal-ai/client already exists.
    • WaveSpeed Python: prefer a venv. Check for runners/.venv; if absent, create with python3 -m venv runners/.venv. Then runners/.venv/bin/pip install -r runners/requirements.txt. If the user has a global preference for pipx/system pip, ask before creating the venv.

    Skip whichever toolchain corresponds to a key the user left blank.

  7. Tell the user how to confirm the runners work:

    FAL_KEY=$FAL_KEY node runners/fal_run.mjs --help 2>&1 | head -3   # should print usage
    runners/.venv/bin/python runners/wavespeed_run.py --help          # should print usage
    
  8. Remind the user that:

    • Claude Code reads env vars from the process it inherits — so any new Claude Code session started from a shell that has sourced .env will see the keys.
    • To use the keys right now in this session, the user can either restart Claude Code from a fresh shell, or export the values manually for the current process.
    • The MiniMax MCP runs via uvx; if uvx isn't on PATH, install with curl -LsSf https://astral.sh/uv/install.sh | sh.

Read the full file on GitHub · 66 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 66 lines · 58 tokens per session scan D c71b44bdc2d7

Subscribe to this mod's changes

setup-credentials is a command published in the GitHub repository danielrosehill/Claude-AI-Video-Producer-Plugin (4 stars, last pushed 4mo ago), licensed MIT. It adds 58 tokens to every session and 1,246 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.