Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-openrouter

БесплатноБез исполняемых скриптовНе проверен

The only OpenRouter CLI built for fleet operations: budgets, anomaly alarms, and failover maps over a local usage ledger — not another chat wrapper. Trigger…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

OpenRouter — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the openrouter-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install openrouter --cli-only
    
  2. Verify: openrouter-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails before this CLI has a public-library category, install Node or use the category-specific Go fallback after publish.

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

Every other OpenRouter tool wraps chat; this one governs it. A synced local mirror of models, generations, and credits powers per-cron cost attribution (usage cost-by), pre-flight budget gates (budget check), degradation watches (providers degraded), and runway projections (credits runway) that no single API call can answer. The full endpoint surface — catalog, keys admin, activity, analytics — ships alongside as typed commands.

When to Use This CLI

Reach for this CLI when the task is operating LLM workloads over OpenRouter: attributing spend to crons or agents, gating scheduled runs on budgets, shortlisting models by capability and price, watching provider health before dispatch, or projecting credit and cap runway. It is the right tool whenever the question spans local history plus the API — anything a single raw HTTP call cannot answer.

Anti-triggers

Do not use this CLI for:

  • Interactive chat sessions or a conversational playground — use a chat client; the chat command here is agent plumbing, not a UX
  • Building application inference paths — use the official OpenRouter SDKs in your app, not shell-outs to a CLI
  • Org member management, SCIM provisioning, or SSO setup — use the OpenRouter dashboard
  • Real-time token streaming displays — the CLI returns complete responses, not stream renderers

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Catalog intelligence

  • models query — Shortlist models by capability, price, and context window with a structured query over the synced catalog — offline and instant.

    Reach for this instead of fetching the full catalog: it answers a shortlist question in ~200 tokens instead of hundreds of KB.

    openrouter-pp-cli models query "tools=true cost.completion<5 ctx>=128k" --agent
    
  • models churn — See what changed in the model catalog between syncs: additions, removals, and repricings with deltas.

    Use this to catch a pinned model repricing or vanishing before the invoice does.

    openrouter-pp-cli models churn --since 7d --agent
    

Cost governance for agent fleets

  • usage cost-by — Attribute spend to the cron, agent, or lineage that incurred it, over any window.

    Use this when the question is 'which job burned the money', not 'which model'.

    openrouter-pp-cli usage cost-by --since 7d --agent
    
  • usage anomaly — Flag per-model cost spikes against the trailing baseline before they compound.

    Run this in a daily cron to catch a misbehaving lineage the day it regresses, not at invoice time.

    openrouter-pp-cli usage anomaly --since 24h --agent
    
  • budget — Set spend caps per cron or agent and enforce them pre-flight with typed exit codes.

    Gate a scheduled run on exit code 0/8 so an over-budget lineage never fires.

    openrouter-pp-cli budget check nightly-drafter
    
  • generation explain — Break one generation into its cost anatomy: tokens, latency, and the delta versus the cheapest provider.

    The next command after an anomaly fires: it turns 'cost spiked' into 'this call, this provider, this delta'.

    openrouter-pp-cli generation explain gen-abc123 --agent
    
  • usage reconcile — Verify the local usage mirror against upstream daily totals and flag days that disagree.

    Run this before trusting any local cost analysis — it is the trust root for the other usage commands.

    openrouter-pp-cli usage reconcile --since 7d --agent
    

Provider health and dispatch

  • providers degraded — See which providers or models are currently degraded be
Полный SKILL.md на GitHub

Установить pp-openrouter в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл pp-openrouter?

The only OpenRouter CLI built for fleet operations: budgets, anomaly alarms, and failover maps over a local usage ledger — not another chat wrapper. Trigger phrases: `which model is cheapest for this task`, `what did my crons spend on openrouter`, `check openrouter credits runway`, `is openrouter degraded right now`, `why did my openrouter cost spike`, `use openrouter`, `run openrouter`.

Как установить скилл pp-openrouter?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-openrouter запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-openrouter с