pp-openrouter

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenRouter — Printing Press CLI

OpenRouter — Printing Press CLI

Prerequisites: Install the CLI

前提条件:安装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:
    bash
    npx -y @mvanhorn/printing-press install openrouter --cli-only
  2. Verify:
    openrouter-pp-cli --version
  3. Ensure
    $GOPATH/bin
    (or
    $HOME/go/bin
    ) is on
    $PATH
    .
If the
npx
install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.3 or newer):
bash
go install github.com/mvanhorn/printing-press-library/library/ai/openrouter/cmd/openrouter-pp-cli@latest
If
--version
reports "command not found" after install, the install step did not put the binary on
$PATH
. Do not proceed with skill commands until verification succeeds.
Other OpenRouter CLIs are chat REPLs. This one is built for the cron job and the AI agent calling out to
Bash
. Absorbed introspection commands (
credits
,
models
,
key
,
generation
,
providers
) honor the global
--agent
flag (sets --json --compact --no-input). Eight novel commands (
usage cost-by
,
models query
,
key eta
,
providers degraded
,
generation explain
,
usage anomaly
,
endpoints failover
,
budget
) ship a
--llm
mode that returns under 200 tokens of key:value output. A local SQLite catalog lets you query the 400+ model list with
models query "tools=true cost.completion<1"
instead of pasting 425KB of JSON into context.
本Skill驱动
openrouter-pp-cli
二进制文件。在调用本Skill的任何命令之前,您必须确认CLI已安装。 如果未安装,请先执行以下步骤:
  1. 通过Printing Press安装器安装:
    bash
    npx -y @mvanhorn/printing-press install openrouter --cli-only
  2. 验证安装:
    openrouter-pp-cli --version
  3. 确保
    $GOPATH/bin
    (或
    $HOME/go/bin
    )已添加到
    $PATH
    环境变量中。
如果
npx
安装失败(无Node环境、离线等),可改用Go直接安装(要求Go 1.26.3或更高版本):
bash
go install github.com/mvanhorn/printing-press-library/library/ai/openrouter/cmd/openrouter-pp-cli@latest
如果安装后执行
--version
提示“command not found”,说明安装程序未将二进制文件添加到
$PATH
中。在验证成功前,请不要执行Skill命令。
其他OpenRouter CLI多为聊天式REPL工具,而本CLI专为cron任务和调用Bash的AI Agent设计。集成的自省命令(
credits
models
key
generation
providers
)支持全局
--agent
标志(自动设置--json --compact --no-input)。新增的8个命令(
usage cost-by
models query
key eta
providers degraded
generation explain
usage anomaly
endpoints failover
budget
)提供
--llm
模式,返回不超过200个token的键值对输出。本地SQLite目录支持通过
models query "tools=true cost.completion<1"
查询400+模型列表,无需将425KB的JSON内容粘贴到上下文环境中。

When to Use This CLI

何时使用本CLI

Use this CLI when an AI agent needs OpenRouter introspection data and you're optimizing for token efficiency. Absorbed commands accept
--agent
for compact JSON; the 8 novel commands ship
--llm
mode for terse key:value output. Use it when you need cost attribution beyond model+provider (which-cron-fired-the-call). Use it for pre-flight gates in bash compositions and for local-catalog querying that would otherwise blow context. Skip it for chat — use
grahamking/ort
for chat ergonomics.
当AI Agent需要OpenRouter自省数据且您希望优化token效率时,使用本CLI。集成的命令支持
--agent
标志以输出紧凑JSON;8个新增命令提供
--llm
模式以输出简洁键值对。当您需要超越模型+服务商的成本归因(如确定哪个cron任务触发了调用)时使用它。在bash组合中用于预检查,或用于避免上下文过载的本地目录查询。如果是聊天场景,请使用
grahamking/ort
以获得更优的聊天体验。

Unique Capabilities

独特功能

These capabilities aren't available in any other tool for this API.
这些功能是其他同类型API工具所不具备的。

Local state that compounds

可累积的本地状态

  • usage cost-by
    — Group your OpenRouter spend by which cron/agent fired the call, not just by model. Joins local generations with caller tags from your tool-call logger.
    Use this when an agent needs to answer 'which automated job is burning my OpenRouter budget?' before deciding what to throttle.
    bash
    openrouter usage cost-by --group cron --since 7d --llm
  • models query
    — Query the model catalog with structured filters (tools=true, cost.completion<1, ctx>=64k) — compiled to SQL over a local SQLite cache. Works offline.
    Use this when an agent needs to shortlist models for an experiment without hallucinating pricing or pasting 400 model rows into context.
    bash
    openrouter models query "tools=true cost.completion<1 ctx>=64k modality=text" --llm
  • generation explain
    — For a generation id, returns the cost, latency, prompt/completion token counts, AND a delta vs the cheapest provider for the same model+token-count.
    Use this when an agent needs to decide whether a generation was expensive because of the model choice, the prompt size, or the provider markup.
    bash
    openrouter generation explain gen-abc123 --llm
  • usage cost-by
    — 按触发调用的cron/Agent分组统计OpenRouter支出,而非仅按模型分组。将本地生成记录与工具调用日志中的调用者标签关联。
    当Agent需要回答“哪个自动化任务消耗了我的OpenRouter预算?”并决定限流策略时使用此命令。
    bash
    openrouter usage cost-by --group cron --since 7d --llm
  • models query
    — 使用结构化过滤器(tools=true, cost.completion<1, ctx>=64k)查询模型目录——基于本地SQLite缓存编译为SQL查询。支持离线使用。
    当Agent需要为实验筛选模型,且避免生成定价幻觉或在上下文粘贴400条模型记录时使用此命令。
    bash
    openrouter models query "tools=true cost.completion<1 ctx>=64k modality=text" --llm
  • generation explain
    — 针对指定生成ID,返回成本、延迟、提示/完成token数,以及与相同模型+token数下最便宜服务商的差异对比。
    当Agent需要判断生成成本过高是由于模型选择、提示长度还是服务商加价导致时使用此命令。
    bash
    openrouter generation explain gen-abc123 --llm

Agent-native plumbing

原生适配Agent的基础功能

  • providers degraded
    — Returns the set of currently-degraded provider/model pairs by polling /providers and per-model /endpoints. Pipe into your router to preempt 429s.
    Use this in a router or fallback chain when an agent needs to skip degraded provider/model pairs before dispatch instead of after a failed call.
    bash
    openrouter providers degraded --json | jq -r '.[].model_id'
  • usage anomaly
    — Flags days where per-model cost exceeds 2σ of the trailing 7-day mean. Deterministic z-score, no LLM in the loop. Designed for cron.
    Use this in a daily cron when an agent needs to detect cost regressions before a credit-low alarm fires.
    bash
    openrouter usage anomaly --since 24h --baseline 7d --llm
  • key eta
    — Projects when your weekly OpenRouter cap will trip, based on /key.limit_reset, current usage, and your trailing 7-day burn rate.
    Use this in a daily cron when an agent needs to know whether scheduled work will fit in the remaining weekly cap.
    bash
    openrouter key eta --llm
  • budget
    — Set a weekly USD cap per cron job (budget set scan-pipeline 2usd). Pre-flight check returns exit 0 (under cap) or 8 (over) from tagged generations.
    Use this when an agent needs structural budget enforcement per sub-agent or per cron, not aspirational env-var quotas.
    bash
    openrouter budget check scan-pipeline && ./scan-pipeline.mjs
  • endpoints failover
    — For a model id, lists all providers serving it ranked by current status, pricing, and observed p50 latency from local cache. Pipe-feeds routers.
    Use this when an agent needs to choose a provider for a given model based on current availability, not the static config order.
    bash
    openrouter endpoints failover anthropic/claude-opus-4-7 --json
  • providers degraded
    — 通过轮询/providers和各模型的/endpoints接口,返回当前故障的服务商/模型组合。可将结果导入路由工具以提前避免429错误。
    在路由或 fallback 链中使用,让Agent在调度前跳过故障的服务商/模型组合,而非在调用失败后再处理。
    bash
    openrouter providers degraded --json | jq -r '.[].model_id'
  • usage anomaly
    — 标记单模型成本超过过去7天均值2σ的日期。采用确定性z-score算法,无需LLM参与。专为cron任务设计。
    在每日cron任务中使用,让Agent在余额不足警报触发前检测成本异常。
    bash
    openrouter usage anomaly --since 24h --baseline 7d --llm
  • key eta
    — 根据/key.limit_reset、当前使用情况和过去7天的消耗速率,预测每周OpenRouter额度耗尽的时间。
    在每日cron任务中使用,让Agent了解剩余每周额度是否能支撑计划任务。
    bash
    openrouter key eta --llm
  • budget
    — 为每个cron任务设置每周USD额度上限(如budget set scan-pipeline 2usd)。预检查返回退出码0(未超额度)或8(已超额度),基于标记的生成记录判断。
    当Agent需要为子Agent或cron任务设置结构化预算限制,而非依赖环境变量的软性配额时使用此命令。
    bash
    openrouter budget check scan-pipeline && ./scan-pipeline.mjs
  • endpoints failover
    — 针对指定模型ID,列出所有提供该模型的服务商,并按当前状态、定价和本地缓存的p50延迟排序。可直接为路由工具提供数据。
    当Agent需要根据当前可用性选择模型服务商,而非依赖静态配置顺序时使用此命令。
    bash
    openrouter endpoints failover anthropic/claude-opus-4-7 --json

Command Reference

命令参考

activity — Manage activity
  • openrouter-pp-cli activity
    — Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Management...
credits — Credit management endpoints
  • openrouter-pp-cli credits
    — Get total credits purchased and used for the authenticated user. [Management...
endpoints — Endpoint information
  • openrouter-pp-cli endpoints
    — Preview the impact of ZDR on the available endpoints
generation — Generation history endpoints
  • openrouter-pp-cli generation get
    — Get request & usage metadata for a generation
  • openrouter-pp-cli generation list-content
    — Get stored prompt and completion content for a generation
key — Manage key
  • openrouter-pp-cli key
    — Get information on the API key associated with the current authentication session
keys — Manage keys
  • openrouter-pp-cli keys create
    — Create a new API key for the authenticated user. Management key...
  • openrouter-pp-cli keys delete
    — Delete an existing API key. Management key required.
  • openrouter-pp-cli keys get
    — Get a single API key by hash. Management key required.
  • openrouter-pp-cli keys list
    — List all API keys for the authenticated user. Management key required.
  • openrouter-pp-cli keys update
    — Update an existing API key. Management key required.
models — Model information endpoints
  • openrouter-pp-cli models get
    — List all models and their properties
  • openrouter-pp-cli models list-count
    — Get total count of available models
  • openrouter-pp-cli models list-user
    — List models filtered by user provider preferences, [privacy settings](https://openrouter.ai/docs/guides/privacy/provi...
openrouter-auth — Manage openrouter auth
  • openrouter-pp-cli openrouter-auth create-keys-code
    — Create an authorization code for the PKCE flow to generate a user-controlled API key
  • openrouter-pp-cli openrouter-auth exchange-code-for-apikey
    — Exchange an authorization code from the PKCE flow for a user-controlled API key
providers — Provider information endpoints
  • openrouter-pp-cli providers
    — List all providers
activity — 管理活动记录
  • openrouter-pp-cli activity
    — 返回最近30个已完成UTC日的用户活动数据,按端点分组。[管理...
credits — 额度管理端点
  • openrouter-pp-cli credits
    — 获取已认证用户的总购买额度和已使用额度。[管理...
endpoints — 端点信息
  • openrouter-pp-cli endpoints
    — 预览ZDR对可用端点的影响
generation — 生成历史端点
  • openrouter-pp-cli generation get
    — 获取指定生成记录的请求和使用元数据
  • openrouter-pp-cli generation list-content
    — 获取指定生成记录的存储提示和完成内容
key — 管理API密钥
  • openrouter-pp-cli key
    — 获取与当前认证会话关联的API密钥信息
keys — 管理多API密钥
  • openrouter-pp-cli keys create
    — 为已认证用户创建新的API密钥。管理密钥...
  • openrouter-pp-cli keys delete
    — 删除现有API密钥。需要管理密钥
  • openrouter-pp-cli keys get
    — 通过哈希值获取单个API密钥。需要管理密钥
  • openrouter-pp-cli keys list
    — 列出已认证用户的所有API密钥。需要管理密钥
  • openrouter-pp-cli keys update
    — 更新现有API密钥。需要管理密钥
models — 模型信息端点
openrouter-auth — 管理OpenRouter认证
  • openrouter-pp-cli openrouter-auth create-keys-code
    — 创建PKCE流程的授权码,用于生成用户可控的API密钥
  • openrouter-pp-cli openrouter-auth exchange-code-for-apikey
    — 将PKCE流程的授权码兑换为用户可控的API密钥
providers — 服务商信息端点
  • openrouter-pp-cli providers
    — 列出所有服务商

Finding the right command

查找合适的命令

When you know what you want to do but not which command does it, ask the CLI directly:
bash
openrouter-pp-cli which "<capability in your own words>"
which
resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code
0
means at least one match; exit code
2
means no confident match — fall back to
--help
or use a narrower query.
当您知道要执行的操作但不确定对应命令时,可直接询问CLI:
bash
openrouter-pp-cli which "<用您自己的语言描述功能>"
which
命令会将自然语言的功能查询解析为CLI精选功能索引中最匹配的命令。退出码
0
表示至少有一个匹配项;退出码
2
表示无匹配项——此时可使用
--help
或缩小查询范围。

Recipes

使用示例

Pre-flight gate before expensive cron

执行高成本cron任务前的预检查

bash
openrouter budget check scan-pipeline --json
Returns exit 0 if under cap or 8 if over. Compose with && in bash to gate expensive jobs without half-execution.
bash
openrouter budget check scan-pipeline --json
未超额度时返回退出码0,已超额度时返回退出码8。在bash中配合&&使用,可避免任务部分执行。

Cost attribution for the week

本周成本归因分析

bash
openrouter usage cost-by --group cron --since 7d --llm
Returns one row per cron name with total cost — answers 'which automated job is burning my OpenRouter budget'.
bash
openrouter usage cost-by --group cron --since 7d --llm
返回每个cron任务的总成本——回答“哪个自动化任务消耗了我的OpenRouter预算”。

Shortlist tool-capable cheap deep-context models (with --select narrowing)

筛选支持工具、低成本且大上下文的模型(使用--select缩小范围)

bash
openrouter models query "tools=true cost.completion<1 ctx>=64k" --agent --select id,context_length,pricing.completion
Local SQLite + dotted --select narrows ~400 models to a handful of fields. Agent context cost: ~150 tokens vs ~425KB raw.
bash
openrouter models query "tools=true cost.completion<1 ctx>=64k" --agent --select id,context_length,pricing.completion
本地SQLite配合--select参数将约400个模型筛选为少量字段。Agent上下文成本:约150个token,而非约425KB的原始数据。

Detect cost regression before credit-low alarm fires

在余额不足警报触发前检测成本异常

bash
openrouter usage anomaly --since 24h --baseline 7d --llm
Flags per-model days exceeding 2σ over trailing 7-day mean. Daily cron catches runaway loops 1-3 days before /credits hits zero.
bash
openrouter usage anomaly --since 24h --baseline 7d --llm
标记单模型成本超过过去7天均值2σ的日期。每日cron任务可在/credits归零前1-3天发现失控循环。

Pre-empt 429s by skipping degraded providers

通过跳过故障服务商提前避免429错误

bash
openrouter providers degraded --json
Returns {added, degraded, removed} arrays from set-diff vs prior snapshot. Pipe-feeds your router/suspension logic. Replaces reactive 429-and-learn with leading-indicator polling.
bash
openrouter providers degraded --json
返回与上次快照对比的{added, degraded, removed}数组。可将结果导入路由/暂停逻辑,替代“触发429后再处理”的被动方式,转为基于前置指标的主动轮询。

Auth Setup

认证设置

Set
OPENROUTER_API_KEY
for per-call operations (creds, models, usage, generation lookup). For sub-key management (
keys list/create/delete
), set
OPENROUTER_MANAGEMENT_KEY
separately — OpenRouter's API splits these intentionally and this CLI honors the split. Both variables are read fresh per command; nothing is persisted to disk by default.
Run
openrouter-pp-cli doctor
to verify setup.
为单次调用操作(creds、models、usage、generation查询)设置
OPENROUTER_API_KEY
。对于子密钥管理(
keys list/create/delete
),需单独设置
OPENROUTER_MANAGEMENT_KEY
——OpenRouter API有意拆分这两类密钥,本CLI遵循此设计。两个变量均在每次命令执行时读取,默认不会持久化到磁盘。
执行
openrouter-pp-cli doctor
验证设置是否正确。

Agent Mode

Agent模式

Add
--agent
to any command. Expands to:
--json --compact --no-input --no-color --yes
.
  • Pipeable — JSON on stdout, errors on stderr
  • Filterable
    --select
    keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
    bash
    openrouter-pp-cli credits --agent --select id,name,status
  • Previewable
    --dry-run
    shows the request without sending
  • Offline-friendly — sync/search commands can use the local SQLite store when available
  • Non-interactive — never prompts, every input is a flag
  • Explicit retries — use
    --idempotent
    only when an already-existing create should count as success, and
    --ignore-missing
    only when a missing delete target should count as success
在任何命令后添加
--agent
标志,等效于设置:
--json --compact --no-input --no-color --yes
  • 可管道传输 — 标准输出为JSON,错误信息输出到标准错误
  • 可筛选
    --select
    参数保留指定字段。点路径可深入嵌套结构;数组可遍历元素。对于输出冗长的API,这是缩小上下文的关键:
    bash
    openrouter-pp-cli credits --agent --select id,name,status
  • 可预览
    --dry-run
    参数显示请求内容但不发送
  • 离线友好 — 同步/搜索命令可在本地SQLite存储可用时使用该存储
  • 非交互式 — 从不弹出提示,所有输入均通过标志传递
  • 显式重试 — 仅当已存在的创建操作应视为成功时使用
    --idempotent
    ;仅当删除目标不存在应视为成功时使用
    --ignore-missing

Response envelope

响应包

Commands that read from the local store or the API wrap output in a provenance envelope:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
Parse
.results
for data and
.meta.source
to know whether it's live or local. A human-readable
N results (live)
summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
从本地存储或API读取数据的命令会将输出包装在来源信息包中:
json
{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}
解析
.results
获取数据,
.meta.source
表示数据来自实时API还是本地存储。仅当标准输出为终端时,才会在标准错误输出打印人类可读的
N results (live)
摘要;管道/Agent消费者仅会在标准输出获取纯JSON。

Agent Feedback

Agent反馈

When you (or the agent) notice something off about this CLI, record it:
openrouter-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
openrouter-pp-cli feedback --stdin < notes.txt
openrouter-pp-cli feedback list --json --limit 10
Entries are stored locally at
~/.openrouter-pp-cli/feedback.jsonl
. They are never POSTed unless
OPENROUTER_FEEDBACK_ENDPOINT
is set AND either
--send
is passed or
OPENROUTER_FEEDBACK_AUTO_SEND=true
. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
当您(或Agent)发现本CLI存在问题时,可记录反馈:
openrouter-pp-cli feedback "--since标志是包含性的,但文档说是排他性的"
openrouter-pp-cli feedback --stdin < notes.txt
openrouter-pp-cli feedback list --json --limit 10
反馈条目存储在本地
~/.openrouter-pp-cli/feedback.jsonl
文件中。除非设置了
OPENROUTER_FEEDBACK_ENDPOINT
且传递了
--send
参数或设置
OPENROUTER_FEEDBACK_AUTO_SEND=true
,否则反馈不会被POST提交。默认仅存储在本地。
请记录让您感到意外的内容,而非正式的bug报告。简短、具体、单行描述:这类反馈的价值会不断累积。

Output Delivery

输出交付

Every command accepts
--deliver <sink>
. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
SinkEffect
stdout
Default; write to stdout only
file:<path>
Atomically write output to
<path>
(tmp + rename)
webhook:<url>
POST the output body to the URL (
application/json
or
application/x-ndjson
when
--compact
)
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
每个命令均支持
--deliver <sink>
参数。输出会发送到指定目标,同时(或替代)输出到标准输出,以便Agent无需手动管道即可路由命令结果。支持三种目标:
目标效果
stdout
默认值;仅输出到标准输出
file:<path>
原子性地将输出写入
<path>
(先写入临时文件再重命名)
webhook:<url>
将输出体POST到指定URL(当使用
--compact
时为
application/json
application/x-ndjson
格式)
不支持的协议会返回结构化错误,并列出支持的目标类型。Webhook失败时返回非零退出码,并在标准错误输出记录URL和HTTP状态码。

Named Profiles

命名配置文件

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
openrouter-pp-cli profile save briefing --json
openrouter-pp-cli --profile briefing credits
openrouter-pp-cli profile list --json
openrouter-pp-cli profile show briefing
openrouter-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults.
agent-context
lists all available profiles under
available_profiles
so introspecting agents discover them at runtime.
配置文件是一组保存的标志值,可在多次调用中复用。当定时Agent每次运行都使用相同配置调用同一命令时使用此功能——即HeyGen的“Beacon”模式。
openrouter-pp-cli profile save briefing --json
openrouter-pp-cli --profile briefing credits
openrouter-pp-cli profile list --json
openrouter-pp-cli profile show briefing
openrouter-pp-cli profile delete briefing --yes
显式标志始终优先于配置文件值;配置文件值优先于默认值。
agent-context
会在
available_profiles
下列出所有可用配置文件,以便自省Agent在运行时发现它们。

Exit Codes

退出码

CodeMeaning
0Success
2Usage error (wrong arguments)
3Resource not found
4Authentication required
5API error (upstream issue)
7Rate limited (wait and retry)
10Config error
代码含义
0成功
2使用错误(参数错误)
3资源未找到
4需要认证
5API错误(上游问题)
7速率限制(请等待后重试)
10配置错误

Argument Parsing

参数解析

Parse
$ARGUMENTS
:
  1. Empty,
    help
    , or
    --help
    → show
    openrouter-pp-cli --help
    output
  2. Starts with
    install
    → ends with
    mcp
    → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with
    --agent
    )
解析
$ARGUMENTS
的逻辑:
  1. 为空、
    help
    --help
    → 显示
    openrouter-pp-cli --help
    输出
  2. install
    开头
    → 若结尾为
    mcp
    → 安装MCP;否则 → 参考顶部的前提条件部分
  3. 其他情况 → 直接使用(添加
    --agent
    标志执行CLI命令)

MCP Server Installation

MCP服务器安装

Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
bash
claude mcp add openrouter-pp-mcp -- openrouter-pp-mcp
Verify:
claude mcp list
从本CLI的公开库条目或预构建版本安装MCP二进制文件,然后注册:
bash
claude mcp add openrouter-pp-mcp -- openrouter-pp-mcp
验证安装:
claude mcp list

Direct Use

直接使用

  1. Check if installed:
    which openrouter-pp-cli
    If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the
    --agent
    flag:
    bash
    openrouter-pp-cli <command> [subcommand] [args] --agent
  4. If ambiguous, drill into subcommand help:
    openrouter-pp-cli <command> --help
    .
  1. 检查是否已安装:
    which openrouter-pp-cli
    若未找到,提供安装选项(参考顶部前提条件部分)。
  2. 将用户查询与上述独特功能和命令参考中的最佳命令匹配。
  3. 添加
    --agent
    标志执行命令:
    bash
    openrouter-pp-cli <command> [subcommand] [args] --agent
  4. 若存在歧义,查看子命令帮助:
    openrouter-pp-cli <command> --help