/openrouter:run-openrouter-experimentfrom OpenRouter
Design and run reproducible OpenRouter model experiments from a natural-language request, including model and parameter matrices, repeated prompts, budget-aware execution, response checks, cost and latency capture, and JSONL, CSV, and Markdown artifacts. Use for prompt tests, model comparisons, research experiments, ablations, structured-output checks, or repeatable evaluations that do not require the full Ori harness.
Ships in OpenRouter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn the user's request into an experiment spec that follows references/spec.md, then use scripts/run_experiment.py. Prefer this lightweight runner for prompt and model comparisons; use spawn-ori-eval when the subject is a complete agent or coding harness.
max_budget_usd. For a hard server-enforced ceiling, recommend a dedicated limited API key; client-side tracking can overshoot by one in-flight request.python3 scripts/run_experiment.py experiment.json --dry-run
python3 scripts/run_experiment.py experiment.json --confirm-budget 2.00
report.md, identify failures or missing cost metadata, and link the artifact directory. Do not hide unsuccessful runs.The runner creates one new directory containing:
experiment.json: normalized, secret-free configuration and provenance.results.jsonl: one complete record per attempted request.summary.csv: per-model counts, success rate, check pass rate, mean latency, and total reported cost.report.md: human-readable comparison and budget status.Never place API keys, management keys, OAuth tokens, authorization headers, or unrelated account data in a spec or artifact. The runner rejects common secret fields and reads OPENROUTER_API_KEY only from the environment.
Keep execution sequential so budget decisions happen between requests. Set reserve_per_request_usd when the user supplies a defensible per-call upper bound. Stop before the next call when the reported cumulative cost or reservation would reach the budget. Stop fail-closed if OpenRouter does not provide usable cost metadata.
Do not enable retries by default. If the user approves retries, set retry_attempts; retry only 429 or 503, honor Retry-After, and record every final failure.
Run python3 scripts/run_experiment.py --self-check after changing the runner.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kyxzhe/openrouter-plugin --plugin openrouter21 skills in this plugin
/create-agent-tuiScaffolds a complete agent TUI in TypeScript using @openrouter/agent — like create-react-app for terminal agents. Generates a customizable terminal interface with three input styles, four tool display modes, ASCII banners, streaming output, session persistence, and configurable tools. Use when building an agent, creating a TUI, scaffolding an agent project, or building a coding assistant./create-headless-agentScaffolds a headless agent in TypeScript using @openrouter/agent and Bun — for CLI tools, API servers, queue workers, and pipelines. No terminal UI. Use when building a headless agent, programmatic agent, CLI tool that uses AI, batch agent, pipeline agent, API agent, agent without a UI, or agent service./